Problem in using the "While" loop function
Show older comments
Hello, I have a function, say x=x(t) where x(t=0)=xo and x(t=1)=x(t=0)-fun(t), and x(t=2)=x(t=1)-fun(t), and so on. I want to make a loop function to calculate x(t) till x(t)=0. How can I do that?
Thank you.
4 Comments
A Jenkins
on 18 Sep 2014
Amr Sadek
on 22 Sep 2014
Rick Rosson
on 22 Sep 2014
- Is the time domain continuous or discrete?
- If discrete, what is the time increment?
Amr Sadek
on 22 Sep 2014
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!