simple matlab GUI to display the plot and a count value
4 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am working with reading the values form serial comport and I want to display the plot generated from the values fro every 1 sec or 2 sec. Aslo I want to display the value of count updating on the GUI. Can someone guide me with the building.
Thanks.
0 件のコメント
回答 (1 件)
Walter Roberson
2013 年 11 月 29 日
For something like this you might not need more than a figure() with an axes() that is plotted into; perhaps with a text() or uicontrol('Style', 'text') object thrown in to display the count.
For the serial port portion, see your other question http://www.mathworks.co.uk/matlabcentral/answers/107921-reading-with-serial-port-in-matlab
6 件のコメント
Walter Roberson
2013 年 12 月 2 日
For thisax use [0 0 1 0.75]
I think I got the two box positions roughly right, but their width and relative positioning might need to be adjusted.
If you want one box to be above the other instead of to the left of the other, make sure the two have the same x coordinate instead of having the same y coordinate. The order goes [x, y, width, height]
If you don't want the title inside the plot at all, remove the title() call.
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!