How to store more than 4 decimal places in an array in MATLAB

柔情痞子 提交于 2019-11-27 16:22:43
Vuwox

Matlab on default settings stores up to 15 digits. It only your display format. Have a look at the format command.

Or just type at the Matlab command prompt:

format long

If you know you have only 6 digits you can use

 sprintf('%0.6f', W(l,i))

instead of disp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!