Effacer les filtres
Effacer les filtres

Empty sym: 0-by-1

2 vues (au cours des 30 derniers jours)
Max Insect
Max Insect le 20 Mai 2020
Commenté : Max Insect le 21 Mai 2020
Im very new to Matlab, than please, can anybody help/
This is the part of the code
syms x1;
solve(x.^2+4*sin(x)==0,x1)
and this is ans
ans =
Empty sym: 0-by-1
What can i fo to fix it?
(The solutions of this equation are:0 and smthng abot -1.93)
  1 commentaire
Max Insect
Max Insect le 20 Mai 2020
LOL. ama n idiot. the problem was in x and x1. now the qstn is how to display the second solution? (i have zero, need th -1.93)

Connectez-vous pour commenter.

Réponses (1)

DEEPAK SHARMA
DEEPAK SHARMA le 20 Mai 2020
vpasolve(x^2+4*sin(x)==0,x, [-2 -1])
ans =
-1.9337537628270212533084756690907
  1 commentaire
Max Insect
Max Insect le 21 Mai 2020
deep thx))

Connectez-vous pour commenter.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by