# 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 visualizzazione (ultimi 30 giorni)
Roman Azrael Balgobin il 8 Nov 2019
x = -10 : 0.01 : 10;
y = (exp(x)/ sin(x)) + 0.3;
plot(x,y)
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposta accettata

Jan Studnicka il 8 Nov 2019
You are missing . before /. See:
x = -10 : 0.01 : 10;
y = (exp(x)./ sin(x)) + 0.3; % use ./ instead of /
plot(x,y)
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
Roman Azrael Balgobin il 8 Nov 2019
How can i differentiate this equation to find its stationary points in the x>0

Accedi per commentare.

### Più risposte (1)

the cyclist il 8 Nov 2019
Modificato: the cyclist il 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.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

R2019b

### Community Treasure Hunt

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

Start Hunting!

Translated by