writeascii

版本 1.0.0.0 (1.8 KB) 作者: Alex Sanchez
Saves vector, matrix (up to 3 dimensions) ...
3.3K 次下载
更新时间 2006/4/3

无许可证

Easy function to write ASCII files

USAGE:
show = writeascii(outfile,data,dataformat,outperm)

DESCRIPTION:
Saves vector, matrix (up to 3 dimensions), string,
or cell array data into an ASCII file.

INPUT VARIABLES:
outfile = Name of out-file
default 'data.asc'
data = Vector, matrix (up to 3 dimensions), string,
or cell array data
dataformat = format used for all columns of numeric data
e.g. '%5.6f ', ' %2g\t'
default is calculated using the highest decimal or
used in each column of data or 8 which ever is lower
if the data is a string, '%s' is used as the format
or delimiter to be used between columns
e.g. ' ', '\t'
default '\t' %tab, helps makes it easier to import to excel
outperm = Permision for out-file used with fopen
e.g. 'a', 'w+'
default 'w'

OUTPUT VARIABLES:
show = string saying the name of the out-file and
where it was saved

VALID INPUT FORMATS:
writeascii(data)
writeascii(outfile,data)
writeascii(outfile,data,dataformat)
writeascii(outfile,data,dataformat,outperm)

引用格式

Alex Sanchez (2024). writeascii (https://www.mathworks.com/matlabcentral/fileexchange/4138-writeascii), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Text Files 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

update