How to plot this eqaution

1 view (last 30 days)
wahid laib
wahid laib on 14 Sep 2020
Commented: wahid laib on 14 Sep 2020
can any one create a matlab code for ploting this
  1 Comment
Walter Roberson
Walter Roberson on 14 Sep 2020
I suggest you look for information on logical indexing.

Sign in to comment.

Accepted Answer

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam on 14 Sep 2020
t=0:.001:1.0;
s4 = cos(80*pi*t-10*pi).*(t>0.5 && t<=1.0);
  2 Comments
the cyclist
the cyclist on 14 Sep 2020
You need to use just & and not the "short-circuit" && here.

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!