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.
MATLAB: How to format matlab such that vectors have whole number entries
#formatwholenumbers
Best Answer