How is this written?

 Accepted Answer

x=2;
y= sin(2*x)/5 + sin(x).^2 - 2*sin(x).*cos(x);

1 Comment

CJL
CJL on 20 Jan 2015
Thanks. Issue was not placing the periods after the trig functions.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

CJL
on 20 Jan 2015

Commented:

CJL
on 20 Jan 2015

Community Treasure Hunt

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

Start Hunting!