simple matlab GUI to display the plot and a count value

조회 수: 4 (최근 30일)
Stefan
Stefan 2013년 11월 28일
댓글: Walter Roberson 2013년 12월 2일
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.

답변 (1개)

Walter Roberson
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.
  댓글 수: 6
Stefan
Stefan 2013년 12월 1일
Hi walter,
Sorry,for not explaning the thing I need clearly as I want to have a window showing a plot in the 70 to 80% of the window and the other smaller portion of the window showing box(which should be outside the plot and the one you demonstrated was displaying the peak value inside the plot) with title above it showing the peak value in the box.
The vincent code is a bit complicated for me to understand.As I want to start with a simpler one first. Thanks.
Walter Roberson
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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by