MATLAB: Hi, how can i proceed with this question, everytime i plot it, it doesn’t show me the line. Can u guys help me

exponential graphMATLABplotting

x = -10 : 0.01 : 10;
y = (exp(x)/ sin(x)) + 0.3;
plot(x,y)

Best Answer

You are missing . before /. See:
x = -10 : 0.01 : 10;
y = (exp(x)./ sin(x)) + 0.3; % use ./ instead of /
plot(x,y)