# How can we plot different signals S1 S2 and S3 on same y-axis with different values? I have attached a figure for reference.

2 Ansichten (letzte 30 Tage)
BIPIN SAMUEL am 16 Dez. 2022
Bearbeitet: Davide Masiello am 16 Dez. 2022
S1, S2 and S3 indicated in yellow color represent different signals.
##### 0 Kommentare-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Davide Masiello am 16 Dez. 2022
Bearbeitet: Davide Masiello am 16 Dez. 2022
Assume you have three signals which may overlap when plotted like so
x = linspace(154,157,100);
s1 = rand(1,100);
s2 = rand(1,100);
s3 = rand(1,100);
plot(x,s1,x,s2,x,s3)
In order to separate them, you could use an offset of a certain value. In the picture you attached, it seems the offset might be around 150.
offset = 150;
plot(x,s1,x,offset+s2,x,2*offset+s3)
##### 0 Kommentare-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Kategorien

Find more on Multirate Signal Processing in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by