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 件のコメント

Calvin Williams
Calvin Williams 2019 年 1 月 26 日
Thank you!
madhan ravi
madhan ravi 2019 年 1 月 27 日
That's why reading documentation is encouraged therefore no guessing is needed

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeVariables についてさらに検索

質問済み:

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