plot between two variables
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I want to plot the (PR) vs. the (PR_ave) where (PR)changes daily while (PR_ave) is the aferage of the (PR), please change the code below to the desired goal, thank you
PR = (Md_MSF_seclatent_steam)./(Ncqsum); % Performance Ratio PR_ave=sum(PR)/365; % Average Performance Ratio plot(PR,PR_ave); ylabel("PR") xlabel("Days") title("Performance Ratio profile")
2 件のコメント
Constantino Carlos Reyes-Aldasoro
2023 年 5 月 31 日
What exactly is the problem for which you need help?
回答 (1 件)
Torsten
2023 年 5 月 31 日
Use
plot(1:365,[PR;ones(1,365)*PR_ave]);
instead of
plot(PR,PR_ave);
if PR is a row vector, or
plot((1:365).',[PR,ones(365,1)*PR_ave]);
if PR is a column vector.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!