How can I plot multiple signals in a single plot? Please give me suggestions which functions have used for this.
Show older comments
Accepted Answer
More Answers (1)
Walter Roberson
on 24 Nov 2023
1 vote
See stackedplot
4 Comments
Komal
on 25 Nov 2023
Walter Roberson
on 27 Nov 2023
Edited: Walter Roberson
on 27 Nov 2023
Create a timetable() object with variable names {'Input Signal', 'Clean Signal', 'Artifact'} and with 'RowTimes' set to the time vector.
Now stackedplot() that timetable object.
For example,
TT = timetable(input_signal(:), clean_signal(:), artifact(:), 'VariableNames', {'Input Signal', 'Clean Signal', 'Artifact'}, 'RowTimes', t);
stackedplot(TT);
Komal
on 28 Nov 2023
Categories
Find more on Line Plots 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!




