フィルターのクリア

save a data as mat file

1 回表示 (過去 30 日間)
Rica
Rica 2012 年 11 月 6 日
i have this code:
%
if true
% code
%
for i=113:113
data=[];
fileID = fopen(['Printout_' num2str(i) '.txt']);
block = textscan(fileID, '%s','Delimiter','\n');
data=[data; block];
fclose(fileID);
compact_data=vertcat(data{:});
compact_data(1:29:end)=[];
compact_data(1:28:end)=[];
result_file=fopen(['result_probe_' num2str(i) '.txt'],'w');
fprintf(result_file,'%s\r\n',compact_data{1:1:end});
clear all
end
end code
I want to save the compact data as mat-file. that means i dont want to save it as text file (fprint.....)
I hope you could help me
thanks

採用された回答

Kye Taylor
Kye Taylor 2012 年 11 月 6 日
try
save yourMatFile.mat compact_data

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by