matlab 改变数据,MATLAb怎么实现对表格数据的修改

在MATLAB中,可以通过xlsread函数读取表格数据,修改完成后利用xlswrite函数写回。此外,可以使用vpa或者format命令改变数据显示格式,如vpa(c,6)设置c为6位小数,format long eng用于16位有效数字的工程格式显示。了解更多详情,建议查阅MATLAB的帮助文档。" 100180081,7379479,C++入门教程:头文件、命名空间、#号用法解析,"['C++编程', '编译原理', '编程基础', '数据结构', 'C++标准库']

MATLAb怎么实现对表格数据的修改

关注:176  答案:2  mip版

解决时间 2021-01-11 09:07

e6cb1a03ad541b3098697807b7bf1798.png

提问者阳光在浪尖跳动

2021-01-10 09:50

MATLAb怎么实现对表格数据的修改

最佳答案

e6cb1a03ad541b3098697807b7bf1798.png

二级知识专家癡情菂尐豬豬

2021-01-10 10:55

用xlsread函数读进来,修改,改完了用xlswrite函数再写回去。

全部回答

e6cb1a03ad541b3098697807b7bf1798.png

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.

我要举报

如以上问答内容为低俗/色情/暴力/不良/侵权的信息,可以点下面链接进行举报,我们会做出相应处理,感谢你的支持!

→点此我要举报以上信息!←

推荐资讯

大家都在看

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值