Convert .mat file into .csv file

조회 수: 2 (최근 30일)
amit matlab
amit matlab 2020년 8월 9일
댓글: amit matlab 2020년 8월 9일
Hi,
I am try to convert the attached mat file into csv file. I check some previous answer but it didnot work in my case.

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 8월 9일
편집: per isakson 2020년 8월 9일
Hi,
For your data, converting into xls or xlsx would be easier. If you'd need only csv, then you'd need to use the syntax as this one:
Data = load('TestingTDStatic1.mat');
csvwrite('CSVDATA_Index.csv', Data.TestIndex); % 1st csv file
for ii=1:36 % given 36 sets of structure type of data size in ROI
% 2nd csv file
csvwrite('CSVDATA_ROI.csv', Data.ROI{1, ii}.Xaddress', Data.ROI{1, ii}.Yaddress'); % similarly for Polarity, TimeStamp
end
  댓글 수: 2
amit matlab
amit matlab 2020년 8월 9일
Each Data.ROI{1, ii}.Xaddress contains 1×14813 double fields. How i can extract that 14813 records?
amit matlab
amit matlab 2020년 8월 9일
Hi,
Can you please give me the command for xls??

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by