Plotting real-time from function

3 views (last 30 days)
Adam Horvath
Adam Horvath on 28 Apr 2020
Hello Everyone!
I got a question for you. I have a function, and I want to plot it in GUI real-time. As you can see below, (fi_t) is my function which I got with solve and subs.(fipont_t) is the derivative of (fi_t). I got these two functions like ( t, the time is here the only variable). I want to plot (fi_t) first, with "for", where ( fi(i) )is the numeric form of ( fi_t ) for every ( tnum(i)). tnum is time so I want to plot from 0 to 10 s, get the numeric form of fi_t of every 0.01 s, but it doesnt work with subs. Can anyone help me? Thanks a lot.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!