Effacer les filtres
Effacer les filtres

MATLAB 7.5 doesn't calculate the whole operation

1 vue (au cours des 30 derniers jours)
María
María le 3 Avr 2013
Hello! I'm working with MATLAB 7.5 and, in some occasions, when I make operations like sin(9283471987573/982489578238954) and press enter, it only writes it, but not the solution. How can I avoid it?
Sorry if I made some grammatical mistake, english is not my first language.

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Avr 2013
If you are using the symbolic toolbox, use vpa() to evaluate it as decimal.
If the symbolic expression does not contain any symbols, then you can use double() to convert it to a double precision number.
  1 commentaire
María
María le 3 Avr 2013
Wow! That works! Thank you very much, I've been fighting with it for weeks

Connectez-vous pour commenter.

Plus de réponses (1)

Carlos
Carlos le 3 Avr 2013
Modifié(e) : Carlos le 3 Avr 2013
Try typing
format long
in your command window.
  1 commentaire
María
María le 3 Avr 2013
Sorry, it doesn't change with any format

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by