How Can I Plot Matrix each graph individual

3 ビュー (過去 30 日間)
Fatima Ali
Fatima Ali 2019 年 4 月 27 日
回答済み: Star Strider 2019 年 4 月 27 日
I have a matrix and the size ot it > 672528x25 double
and I use these functions:
>> [s,h] = mexSLOAD('A01T.gdf');
//and to plot it I write:
>> plot(s)
--------
the problem that its ploting for me all the graphs in one graoph (combining them), and I want wach graph to be plotted individualy. Can someone help me on that
In the followin picture its show how the graphs are combied together in one plot ---> since I used plot(s)
  1 件のコメント
madhan ravi
madhan ravi 2019 年 4 月 27 日
Perhaps?
for k = 1:size(s,2)
figure
plot(s(:,k))
end

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

回答 (1 件)

Star Strider
Star Strider 2019 年 4 月 27 日
If you want to plot them all in one set of axes, try this:
s = 800*(rand(672528,25)-0.5); % Create Matrix
sv = bsxfun(@plus, s, (0:24)*1000); % Add Offset Of 1000 To Each Column
figure
plot(sv)
grid
Experiment to get the result you want.

カテゴリ

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