how to change the linewidth of one line of the figure generated from using compare function?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi Matlab community! I Have a graph of the measured vs predicted values created with compare function. I wanna highlight the measured values with a linewidth of 1 and leave the others with a linewidth of 0.5, how can I do that? I tried to use the command line and set and it didn't work. Thanks for your help
댓글 수: 0
답변 (1개)
Amy
2017년 12월 12일
Hi Gina,
See accessing object properties using dot notation. I took the first example from the documentation for compare:
load iddata1 z1;
sys = ssest(z1,3);
prediction_horizon = 10;
compare(z1,sys,prediction_horizon);
and I changed the width of one line with the following command:
hFig = gcf;
hFig.Children(4).Children(1).Children.LineWidth = 1;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Analyze Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!