フィルターのクリア

Plotting 2 curves in a single graph

1 回表示 (過去 30 日間)
Student new
Student new 2016 年 2 月 4 日
コメント済み: Image Analyst 2016 年 2 月 4 日
How can i plot the following graph in matlab. I have tried plot(x,y) but in vain. Y axis shows the frequencies for the x axis.
Thanks

回答 (1 件)

Image Analyst
Image Analyst 2016 年 2 月 4 日
Try these
====================================================================== Adapt this one to use the y axis instead of having the break in the x axis:
Several more similar ones can be found in the File Exchange if you search for "break y axis": http://www.mathworks.com/matlabcentral/fileexchange/45760-break-y-axis
  2 件のコメント
Student new
Student new 2016 年 2 月 4 日
NO success... used the following code
ws=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25];
freq=[85 205 387 527 641 774 821 927 881 925 792 625 413 246 209 160 56 43 33 10 0 0 0 0 0];
hold on
plot(ws,freq)
% plotyy(ws,freq)
hold off
Image Analyst
Image Analyst 2016 年 2 月 4 日
Huh????????????
Where is your second set of y data?
You say "NO success" as if you actually tried some of the File Exchange submissions. But where are you using anything like that in your code?
And what do you want? I'm assuming you want a break in the Y axis between 500 and 2000. Is that right? Or do you want something else? If so, what????
Try this next: a must read

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

カテゴリ

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