Can anyone tell me why im getting an "invalid data argument" error when trying to change the line thickness. The commented out line works fine.
%plot(x,f,'r',x,fh,'b')
plot(x,f,'r','LineWidth',3,x,fh,'b','LineWidth',1)
legend('f','fh','Location','best')

답변 (1개)

madhan ravi
madhan ravi 2019년 1월 26일

1 개 추천

plot(x,f,'r','LineWidth',3)
hold on
plot(x,fh,'b','LineWidth',1)

댓글 수: 2

Thank you!
madhan ravi
madhan ravi 2019년 1월 27일
That's why reading documentation is encouraged therefore no guessing is needed

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Variables에 대해 자세히 알아보기

질문:

2019년 1월 26일

댓글:

2019년 1월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by