How to format matlab such that vectors have whole number entries?
Mostra commenti meno recenti
I am wondering how to get matlab to produce vectors with whole numbers. For example, when I'm trying to find the eigenvectors of a matrix, one eigenvector in the output is (0.4472, -0.4472, 0.4472, 0.4472, 0.4472, 0)', which is obviously just (equivalent to) (1, -1, 1, 1, 1, 0)'. How do I get matlab to output the latter vector instead? Thanks very much.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su App Building in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!