Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
进入a=[70001999 0.086 0.003 0.1]MATLAB 结果如下:
a=[70001999 0.086 0.003 0.1]
a = 1.0e+07 * 7.0002 0.0000 0.0000 0.0000
我不希望它被这样看,因为我的第一列存储 id 编号,而第 2-4 列存储概率。我需要做什么来解决这个问题?
完整的精度仍然存在,只是没有显示。显示更多类型
format longg
例如,在我的 Matlab 上(我format longg的startup.m文件中有)
startup.m
>> a=[70001999 0.086 0.003 0.1] a = 70001999 0.086 0.003 0.1
如果需要,您还可以尝试其他一些显示选项。例如,看看您是否喜欢以下各项后的显示。
format shortg; a format shorteng; a format longeng; a
当然,使用help format更多细节。
help format