why can't I get a simpel solve function to work
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
this is my code:
syms x
eqn = sin(x) == 1;
solx = solve(eqn,x)
I have copied it of Matlabs own site.
This is what it is supposed to give: pi/2
this is what i get: x
what am i doing wrong?
2 commentaires
Torsten
le 25 Avr 2018
Which MATLAB version do you use ?
Jacob Markussen
le 25 Avr 2018
Modifié(e) : Matt J
le 25 Avr 2018
Réponses (1)
syms t z
p = 0.6827;
o = exp(-z^2/2);
h = 1/sqrt(2*pi)*int(o,z,[-t t]);
sol = solve(h == p,t)
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!