Animate a plot upon a timer
古いコメントを表示
Hello,
I have an existing array (1st column contains time, 2nd column pressure values), and I would like to plot this in my GUI at a chosen rate (and not using a FOR loop that goes from the 1st row to the last row of the data set).
For example, I would like that when I press a pushbutton in my GUI, the pressure value is plotted against time (the time value in my array), and the plot keeps updating itself until it reaches the max time value in my array or that the user presses another pushbutton to stop the process. The user should then be able to resume the plotting of the data.
I have to add that the sampling rate of my pressure reading was 1000Hz, and that I would like to show the pressure value 2 times per second (this can be 3 or 4, but not more), so let's say 4Hz.
How can I do something like that?
回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!