how to fix "Error using plot. Data must be a single input of y-values or one or more pairs of x- and y-values." error.

49 ビュー (過去 30 日間)
Hector
Hector 2024 年 3 月 30 日
コメント済み: Voss 2024 年 3 月 30 日
figure(4)
plot(uv_model,y(1:N-1),'LineWidth',2,uv,y,'LineWidth',2,uv_model2,y(1:N-1),'g','LineWidth',2)
axis([-.01 .01 -1.05 1])
title('uv varying lm model')
xlabel('uv') % x-axis label
ylabel('y') % y-axis label
legend('lm=const','exact','Lm=f(yy/L)')

回答 (1 件)

Voss
Voss 2024 年 3 月 30 日
plot(uv_model,y(1:N-1),uv,y,uv_model2,y(1:N-1),'g','LineWidth',2)
  1 件のコメント
Voss
Voss 2024 年 3 月 30 日
Property/value pairs of arguments (like "'Linewidth',2") must come at the end of the argument list and apply to all lines plotted with that call to plot().

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

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by