How do i plot this in matlab

1 Ansicht (letzte 30 Tage)
Ian Wilson
Ian Wilson am 9 Sep. 2019
Kommentiert: madhan ravi am 9 Sep. 2019
x = [0:pi/2:2*pi]
y = -(sin(pi/2*cos(x))(-pi/2*sin(x))/cos(x)
Keep getting the "Error: ()-indexing must appear last in an index expression." I understand what the error means, but I've tried replacing some of the () with {}, and I'm still getting the same error. I guess I am unsure which () need to be replaced to {}.

Akzeptierte Antwort

madhan ravi
madhan ravi am 9 Sep. 2019
y = -(sin(pi/2*cos(x))Operator missing here(-pi/2*sin(x))./cos(x)

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by