Plotting on the same graph
古いコメントを表示
Hi, I am trying to plot graphs in a for loop over one another for which, I am using the following code:
for secs=0.75:0.25:1.50
[ etf , decayFct , etfFreq , buildUpNorm , PNR ]=calcEtfSch(data,f_sampl,secs,data_point);
lgSch=10*log10(decayFct);
plT(lgSch,etfFreq);
hold on;
axis([ 0 1.5 -60 0 ]);
xticks([0 .25 0.5 0.75 1.00 1.25 1.50 ])
title( 'Schroeder curves with differing upper integration limits' )
end
However, I get 4 different plots rather than them being on the same graph. I will be glad to get some help.
2 件のコメント
KSSV
2017 年 10 月 5 日
Where are you plotting?
SARVESH AGRAWAL
2017 年 10 月 5 日
編集済み: Walter Roberson
2017 年 10 月 5 日
採用された回答
その他の回答 (1 件)
Ewout van der Feltz
2017 年 10 月 5 日
編集済み: Ewout van der Feltz
2017 年 10 月 5 日
0 投票
When plotting recursively it is often practical to use 'hold all' rather than 'hold on'. Include that before plotting the functions and the plots should end up in the same graph.
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!