GUIDE-Axes
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi. How can I plot two or more graphs or curve in a single axes in GUIDE? What code should I write under the callback function of a push button, for example? thank you very much..
댓글 수: 0
답변 (1개)
Paul
2012년 3월 22일
You will notice in guide when you check the axes properties that the "NextPlot" property is set to replace. Change it to "add" or you could set it manually. I prefer setting lines manually as shown below.
x = 1:100;
hline1 = line(x,x.^2);
hline2 = line(x,x.^3);
set(handles.axes1,'children',[hline1 hline2;
You could set the line properties as well, e.g., color, marker, etc.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!