state events – changing the function of the solution after a certain time value
Hello everyone!
I’m using MATLAB for a university project, where I have the following problem: I have two similar functions let’s call them ‘a’ and ‘b’. The only difference between them is that ‘b’ consists of one additional constant parameter in the same equation. In the beginning the function ‘a’ is called and the integration is done accordingly. After a certain time value (e.g.: t =200s) the program should stop using ‘a’ for the solution and continue the integration with ‘b’. Is it possible to do it by using state-events and if yes, then how? I would be very grateful, if you could help me how to do that.Hello everyone!
I’m using MATLAB for a university project, where I have the following problem: I have two similar functions let’s call them ‘a’ and ‘b’. The only difference between them is that ‘b’ consists of one additional constant parameter in the same equation. In the beginning the function ‘a’ is called and the integration is done accordingly. After a certain time value (e.g.: t =200s) the program should stop using ‘a’ for the solution and continue the integration with ‘b’. Is it possible to do it by using state-events and if yes, then how? I would be very grateful, if you could help me how to do that. Hello everyone!
I’m using MATLAB for a university project, where I have the following problem: I have two similar functions let’s call them ‘a’ and ‘b’. The only difference between them is that ‘b’ consists of one additional constant parameter in the same equation. In the beginning the function ‘a’ is called and the integration is done accordingly. After a certain time value (e.g.: t =200s) the program should stop using ‘a’ for the solution and continue the integration with ‘b’. Is it possible to do it by using state-events and if yes, then how? I would be very grateful, if you could help me how to do that. events, integration, function, state MATLAB Answers — New Questions