MATLAB转存adtx文件

读取adtx文件

1
A=fread(fopen('0631.adtx'));

保存为csv格式

1
writematrix(A,'0631.csv');

保存为txt格式

1
save 0631.txt -ascii A;

读取并分组保存

1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;
clear;

A=fread(fopen('0631.adtx')); %总计800000000行数据
B=buffer(A,1000000); %每1000000个数据为一列,分为800组

% If you have the Signal Processing Toolbox, use buffer();
% If not, use B = reshape(A,1000000,800);

for i=1:800
FileName=['0631-',num2str(i),'.csv'];
writematrix(B(:,i),FileName);
end

参考链接:

https://blog.csdn.net/iqizheng/article/details/11853919

https://blog.csdn.net/u013555719/article/details/105520735