MATLAb怎么实现对表格数据的修改
关注:176 答案:2 mip版
解决时间 2021-01-11 09:07

提问者阳光在浪尖跳动
2021-01-10 09:50
MATLAb怎么实现对表格数据的修改
最佳答案

二级知识专家癡情菂尐豬豬
2021-01-10 10:55
用xlsread函数读进来,修改,改完了用xlswrite函数再写回去。
全部回答

1楼错过の花开
2021-01-10 12:30
数据显示格式可以由命令:vpa,format等改变另外还有fprintf格式与c基本一致,format rational最接近的有理数,format long 14位小数,format恢复。vap(c,6)设置c为6位小数。fprintf(‘%20.6f’,c)。
至于你的问题,你可以使用vap(最好)也可以使用format long eng,如果问题允许你也可以事先处理数据使之再适合范围。推荐你使用help,其中有详细介绍。
format命令参数:
short
scaled fixed point format, with 4 digits after the decimal point. for example, 3.1416.
long
scaled fixed point format with 14 to 15 digits after the decimal point for double; and 7 digits after the decimal point for single. for example, 3.141592653589793.
short e
floating point format, with 4 digits after the decimal point. for example, 3.1416e+000.
long e
floating point format, with 14 to 15 digits after the decimal point for double; and 7 digits after the decimal point for single. for example, 3.141592653589793e+000.
short g
best of fixed or floating point, with 4 digits after the decimal point. for example, 3.1416.
long g
best of fixed or floating point, with 14 to 15 digits after the decimal point for double; and 7 digits after the decimal point for single. for example, 3.14159265358979.
short eng
engineering format that has 4 digits after the decimal point, and a power that is a multiple of three. for example, 3.1416e+000.
long eng
engineering format that has exactly 16 significant digits and a power that is a multiple of three. for example, 3.14159265358979e+000.
我要举报
如以上问答内容为低俗/色情/暴力/不良/侵权的信息,可以点下面链接进行举报,我们会做出相应处理,感谢你的支持!
→点此我要举报以上信息!←
推荐资讯
大家都在看
在MATLAB中,可以通过xlsread函数读取表格数据,修改完成后利用xlswrite函数写回。此外,可以使用vpa或者format命令改变数据显示格式,如vpa(c,6)设置c为6位小数,format long eng用于16位有效数字的工程格式显示。了解更多详情,建议查阅MATLAB的帮助文档。"
100180081,7379479,C++入门教程:头文件、命名空间、#号用法解析,"['C++编程', '编译原理', '编程基础', '数据结构', 'C++标准库']
535

被折叠的 条评论
为什么被折叠?



