Decimals
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello.i have a vector that is: C=[1;1.0000;1.0000;1.0000]
how can i see if there is any approssimations?
0 Commenti
Risposta accettata
Walter Roberson
il 26 Gen 2012
C ~= round(C)
will return 1 for any position that is not an integer.
You may also want to try something like
fprintf('%.99g\n', C)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!