I want to plot a graph of the composition vs time. Can anyone help me please?

2 ビュー (過去 30 日間)
Itqan Ismail
Itqan Ismail 2023 年 1 月 31 日
コメント済み: Itqan Ismail 2023 年 1 月 31 日
x=[0:1:20];
%Composition
y=[44.0789 44.0 41.77 36.976 32.894 27.492 25.893 21.583 16.492 11.473 8.424 4.242 2.29 1.542 0.7241 0.524 0.4131 0.353 0.155 0.086 0.0506];%FFA
z=[90.4422 90.563 90.834 90.952 91.245 91.356 91.464 91.523 91.627 91.804 92.472 92.597 92.778 92.893 92.945 93.283 93.622 93.877 94.472 94.5719 94.663];%TAG
plot(x,y,'-b',x,z,'--r')
title('composition vs time');
xlabel('time');
ylabel('Composition');
legend('a) FFA','b)TAG');

採用された回答

Aritra
Aritra 2023 年 1 月 31 日
Hi,
I am able to generate the plot at my end.
If this is not something you are looking for please provide the platform details and MATLAB version along with the error if any.
Hope this helps!
  3 件のコメント
Rik
Rik 2023 年 1 月 31 日
Your code already runs as-is, as you can see in your question now that the code was run.
Itqan Ismail
Itqan Ismail 2023 年 1 月 31 日
Thank you for your response, I guess my laptop just got some problem just now. Anyways,its good now.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by