when I compute the matrix determinant, I face with numbers like 6247838915024199/2251799813685248. which is simply equal to 2.7746 ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
when I compute the matrix determinant, I face with numbers like 6247838915024199/2251799813685248. which is simply equal to 2.7746 ? how can I get rid of this kind of numbers?
Thanks in Advanced
0 Kommentare
Antworten (1)
Walter Roberson
am 30 Okt. 2012
You might have
format rat
in effect to cause it to display floating point numbers as rationals.
Alternately you might be using the symbolic toolbox, which computes as rationals unless told otherwise. To convert such a symbolic rational number, use vpa() or double()
0 Kommentare
Siehe auch
Kategorien
Mehr zu Numbers and Precision finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!