I want to plot multiple graphs in a single plot with some space between each signal

I want to plot multiple graphs in a single plot with some space between each signal

7 件のコメント

jonas
jonas 2018 年 9 月 14 日
Can you show an example?
sandhya sandhya
sandhya sandhya 2018 年 9 月 14 日
Walter Roberson
Walter Roberson 2018 年 9 月 14 日
sandhya sandhya
sandhya sandhya 2018 年 9 月 14 日
編集済み: sandhya sandhya 2018 年 9 月 14 日
In my plot all graphs are merged,but i want to see each graph individually.
sandhya sandhya
sandhya sandhya 2018 年 9 月 14 日
i want the graph like stacked plot
Walter Roberson
Walter Roberson 2018 年 9 月 14 日
Have a look at the new stackedplot() https://www.mathworks.com/help/matlab/ref/stackedplot.html . This may require using a table object
jonas
jonas 2018 年 9 月 14 日
I mean, the figure you uploaded is literally taken from the doc on stackedplot, so try it :)

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

回答 (1 件)

KSSV
KSSV 2018 年 9 月 14 日
How about adding some number to the y values and plotting?
A = rand(10,10) ;
figure
hold on
x = 1:10 ;
for i = 1:10
plot(x,A(i,:)+i)
end

6 件のコメント

sandhya sandhya
sandhya sandhya 2018 年 9 月 14 日
I want my plot like the output which i got with your code.But how to insert my .mat signal files in the above code.
sandhya sandhya
sandhya sandhya 2018 年 9 月 14 日
KSSV
KSSV 2018 年 9 月 14 日
:) I gave you a pseudo code......A should be your data.
sandhya sandhya
sandhya sandhya 2018 年 9 月 14 日
I inserted my signal in the place of variable 'A' but in command window it is displaying that unable to read.please guide me how to load one or more mat signals in a single variable and how to plot like your plot.
KSSV
KSSV 2018 年 9 月 14 日
Share you mat file.
sandhya sandhya
sandhya sandhya 2018 年 9 月 15 日
I attached my mat files and i want to plot all these mat signals in a single plot(like the plot in your previous comment)and i think we should reduce the amplitude of the signals also.

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

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

製品

質問済み:

2018 年 9 月 14 日

コメント済み:

2018 年 9 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by