How can the ConstantLine LineWidth property default be set?
이전 댓글 표시
Using
set(groot,'defaultConstantLineLineWidth',2)
should set the ConstantLine's LineWidth default property to 2, but it gives the following error:
Error using matlab.ui.Root/set
constantlinelinewidth is an invalid class name
How can this default property be set?
This property would affect the vertical line drawn by xline(), for example:
x=[1:10];
y=x.^2;
plot(x,y);
xline(4);
I am following this resource
댓글 수: 2
Adam Danz
2020년 1월 13일
I'm guessing that your matlab release is prior to r2018b which is when the constantLine objects were released.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Integration with Online Platforms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!