How to plot this eqaution

can any one create a matlab code for ploting this

1 Comment

I suggest you look for information on logical indexing.

Sign in to comment.

 Accepted Answer

t=0:.001:1.0;
s4 = cos(80*pi*t-10*pi).*(t>0.5 && t<=1.0);

2 Comments

You need to use just & and not the "short-circuit" && here.
Thank you

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!