Values instead of functions
Show older comments
I'm attempting to plot y(x)=sin^2(a*sin(x))/sin^2(sin(x)), where a is some nonzero constant, but can't generate a plot becuase y is being returned as a constant. y should be a function that varies with x, not a constant numerical value, so what am I doing wrong?
Code:
x=0:10
r=sin(x)
y=sin(3*r).^2/sin(r).^2
plot(x,y)
Accepted Answer
More Answers (0)
Categories
Find more on Change Markers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!