阅读背景:

在MATLAB中绘制循环内部时连续绘图

来源:互联网 

I am trying to plot variables dynamically in MATLAB. I have an array (set of states) that needs to be plotted with time. I tried plot(time,theta), where theta is a 1*5 array. With this command, I get an error saying that theta should be a scalar because time is a scalar. I then tried using for-loop to plot(time,theta(i)). The problem with this is that I get data points at discrete time intervals on my plot. However I need a continuous plot. I wonder how this can be done.I am trying to plot variables dynamically in MA




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: