当前位置:网站首页>MATLAB data writing file common functions
MATLAB data writing file common functions
2022-07-20 18:59:00 【A-Chin】
List of articles
1 xlswrite write in excel file
grammar | describe |
---|---|
xlswrite(filename,A) | The matrix A write in Excel In the first table of the workbook . |
xlswrite(filename,A,sheet) | Write to the specified table . |
xlswrite(filename,A,xlRange) | Write to the first table in the workbook xlRange Specified rectangular area , Such as “A1:C3”. |
xlswrite(filename,A,sheet,xlRange) | Write to the specified table in the workbook xlRange Specified rectangular area . |
status = xlswrite(___) | Use any input parameter in the above syntax to return the status of the write operation . When the operation is successful , Status as 1. otherwise , Status as 0. |
[status,message] = xlswrite(___) | Any warning or error messages generated by the write operation in the extra return structure message . |
2 csvwrite write in csv file
grammar | describe |
---|---|
csvwrite(filename,M) | The matrix M Write comma separated values to the file . |
csvwrite(filename,M,row,col) | Start with the specified row and column offsets , The matrix M write file . |
csvwrite Up to... Can be written 5 Significant digits . If higher accuracy is required , You can use dlmwrite.
csvwrite Do not accept input cell Array . To export an array of cells containing only numeric data , Please call csvwrite Before using cell2mat take cell The array is converted into a numerical matrix .
3 dlmwrite write in ASCII file
grammar | describe |
---|---|
dlmwrite(filename,M) | Will array M Write the numerical data in ASCII Format file , Use the default separator (,) Separate array elements . If the file name file already exists , Then the file is overwritten . |
dlmwrite(filename,M,’-append’) | Append data to the end of the existing file . |
dlmwrite(___,Name,Value) | Use one or more names - Value specifies another separator for the parameter 、 A newline 、 Offset and precision options . |
dlmwrite(filename,M,delimiter) | Will array M write file , Use the specified separator . |
dlmwrite(filename,M,delimiter,row,col) | Rows and columns specified from the target file row and col Start writing array , Empty elements separated by delimiters fill leading rows and columns . |
4 writetable Write table to file
grammar | describe |
---|---|
writetable(T) | Will table T Write to a comma separated text file . The file name is the workspace variable name of the table , Add extension .txt. T Each column of each variable in will become a column in the output file .T The variable name of becomes the column header in the first line of the file . |
writetable(T,filename) | Write to the file with the specified name and extension . .txt、.dat or .csv text file . .xls、.xlsm or .xlsx file . .xlsb Spreadsheet files . |
writetable(___,Name,Value) | Use one or more names 、 The additional option specified by the value on the parameter writes the table to the file , And it can include any input parameter in the above syntax . |
边栏推荐
- Geoscience academic resources III (zoning data)
- 关于Visual Code终端乱码问题的解决方案
- 浏览器兼容性问题及常见的解决方法
- Curd of odoo basic development (add, delete, check, change)
- JMeter practical operation -- database data drive
- 电子协会 C语言 2级 60 、整数奇偶排序(2021年 6月真题)
- Matlab cell保存为.csv格式
- Docker configuration mysql, redis
- 疫情之下,软件测试的出路在哪?
- Cut rope
猜你喜欢
[software testing] what kind of resume can HR like at a glance
Under the epidemic, where is the way out for software testing?
记一次爬取搜索引擎缩略图并保存到本地
批量下载数据——以TRMM数据为例
mysql迁移金仓数据库主键、索引丢失问题解决方案
Large screen: the display adaptation and font of the page on different scale screens change with the screen change (the font changes adaptively with the screen resolution)
JMeter practical operation -- database data drive
How to choose an open source automated testing framework? You must know these 9 open source tools
统计学习——朴素贝叶斯法
The first bullet of FPGA Development: vivado software installation, development, use and engineering establishment
随机推荐
浏览器查看.md文件强烈推荐Markdown Viewer
Is there a requirement for the number of rows in ODPs SQL in dataworks? Will an error be reported if it is too long
Rambus宣布面向数据中心和PC的DDR5内存接口芯片产品组合
vscode 保存设置配置参数到用户与工作区的区别
Matlab实现优劣解距离法(TOPSIS法)
Draw 95% confidence interval diagram with MATLAB
疫情之下,软件测试的出路在哪?
Interviewer: what are the three cache update strategies of redis & MySQL?
Jmeter实践操作——数据库数据驱动
背后的力量 | 加强数字政府建设 华云数据助力华中某省民政厅提升便民服务能力
常见浏览器兼容性问题及解决办法总结
Arcpy batch conversion data projection (taking Albers as an example)
Software testing post - can you stand the torture of the three souls during the interview?
Matlab计算质心
Fix the error reported by the redis connection of the celery configuration under windows (typeerror: _initu () got an unexpected keyword argument)
面试官:Redis&MySQL的三种缓存更新策略是怎样的?
降水数据汇总
第七章:集合
MySQL migration gold warehouse database primary key, index loss solution
asp函数split()对应php函数explode() 字符串变数组