How to plot like this????????

1 view (last 30 days)
Sadiq Akbar
Sadiq Akbar on 1 Jul 2022
Commented: Sadiq Akbar on 4 Jul 2022
I want to draw my plot like the one shown in the attachment. I tried but in vain.

Accepted Answer

the cyclist
the cyclist on 1 Jul 2022
There are examples in the documentation for the plot command that are very similar to this, for example:
x = 0:pi/10:2*pi;
y1 = sin(x);
y2 = sin(x-0.25);
y3 = sin(x-0.5);
You'll also need the legend command.
Sadiq Akbar
Sadiq Akbar on 4 Jul 2022
Ok dear the cycllist thank you very much for your help.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!