Matlab 的fwrite()函数和fread()函数
2010-11-15 22:17
369 查看
Matlab的fwrite()函数和fread()函数都是将从文件中读进来的数据按列顺序存放在矩阵中的。
A = FREAD(FID,SIZE) reads the number of elements specified by SIZE. Valid entries for SIZE are:
N read N elements into a column vector.
inf read to the end of the file.
[M,N] read elements to fill an M-by-N matrix, in column order.
N can be inf, but M can't.
COUNT = FWRITE(FID,A,PRECISION) writes the elements of matrix A to the specified file, translating MATLAB values to the specified precision.
The data are written in column order. COUNT is the number of elements successfully written.
A = FREAD(FID,SIZE) reads the number of elements specified by SIZE. Valid entries for SIZE are:
N read N elements into a column vector.
inf read to the end of the file.
[M,N] read elements to fill an M-by-N matrix, in column order.
N can be inf, but M can't.
COUNT = FWRITE(FID,A,PRECISION) writes the elements of matrix A to the specified file, translating MATLAB values to the specified precision.
The data are written in column order. COUNT is the number of elements successfully written.
相关文章推荐
- 函数fgets和fputs、fread和fwrite、fscanf和fprintf用法小结
- fseek fread()和fwrite()函数分析
- C语言 fread()与fwrite()函数说明与示例
- fread函数和fwrite函数
- C语言fwrite()函数和fread()函数
- fopen()、fwrite()、fread()函数使用说明与示例
- 如何使用Fread和Fwrite写一个复制文件的函数
- fwrite()、fread()函数使用小结
- c语言中所有文件操作函数详解fopen、fwrite、fread、fgetc、fputc、fscanf、fprintf、ftell、fseek等函数
- C++文件读写函数之——fopen、fread和fwrite、fgetc和fputc、fgets和fputs、ftellf和fseek、rewind
- c 函数fopen,fwrite,fread
- fread()与fwrite()函数说明
- Linux 标准IO操作函数fopen fclose fread fwrite fgetc fputc fgets fputs
- C语言 fread()与fwrite()函数说明与示例
- fread()和fwrite()函数分析
- c语言中所有文件操作函数详解fopen、fwrite、fread、fgetc、fputc、fscanf、fprintf、ftell、fseek等函数
- c 函数fopen,fwrite,fread
- Matlab中fread函数用法
- 转载_linux-fopen-fclose-fread-fwrite等函数
- C++文件读写函数之——fopen、fread和fwrite、fgetc和fputc、fgets和fputs、ftellf和fseek、rewind