MATLAB Answers

Hi, how can i proceed with this question, everytime i plot it, it doesn't show me my line. Can u guys help me

1 view (last 30 days)
x = -10 : 0.01 : 10;
y = (exp(x)/ sin(x)) + 0.3;
plot(x,y)

More Answers (1)

the cyclist
the cyclist on 8 Nov 2019
Edited: the cyclist on 8 Nov 2019
It's because you used a matrix division instead of an element-wise division to calculate y. Try this instead:
y = (exp(x)./ sin(x)) + 0.3;
Note the use of ./ in place of just / in the formula.
See this documentation for more details.

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by