Hello guys,
I'm developing a code for an aerodynamic project and there is an error showing up in the range of the axis value that i used in the graphic.
The axis range that i wrote is:
figure
axis ([0 Jmax 0 1.1*Tmax ]);
plot(J,CT,J,CQ,J,CP);
title('Thrust, Torque and Power Coefficients');
xlabel('Advanced Ratio (J)');
ylabel('Ct, Cq and Cp');
As Tmax being equal to max(T).
Can anyone help me with the error?
If i don´t use the range valuespecification for the axis, the values cannot be measured with high accurancy.

回答 (2 件)

Star Strider
Star Strider 2021 年 8 月 23 日

1 投票

The axis call should go after the plot call:
Jmax = 5;
Tmax = 2;
J = 0:Jmax;
CT = rand(size(J));
CQ = rand(size(J));
CP = rand(size(J));
figure
plot(J,CT,J,CQ,J,CP);
axis ([0 Jmax 0 1.1*Tmax ]);
xlabel('Advanced Ratio (J)');
ylabel('Ct, Cq and Cp');
.

1 件のコメント

Star Strider
Star Strider 2021 年 8 月 24 日
My pleasure!

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

Julio Cesar Miranda
Julio Cesar Miranda 2021 年 8 月 24 日

0 投票

Thank you for the help!

カテゴリ

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

製品

リリース

R2015a

質問済み:

2021 年 8 月 23 日

コメント済み:

2021 年 8 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by