필터 지우기
필터 지우기

Exporting data to CSV file

조회 수: 57 (최근 30일)
Neesha
Neesha 2013년 12월 30일
댓글: Mohammad Farhad Aryan 2020년 3월 10일
Hi Friends, I am getting my output in CSV file as follow:
export(output,'file', char(qtrOutput),'Delimiter',',');
It has about 88000 rows.
My program works fine when i test it with small data say 200 rows. But when i run with my actual data which results into 88000 rows, it gets stalled on above mentioned code.
Now I thought may be i have too many rows but i waited like 10 minutes and it still does not come out. I go and open output file where I am writing in while program is still stalled , it has all the data.
I fail to figure why?
Please help and let me know what more info u need
  댓글 수: 3
Priya Natarajan
Priya Natarajan 2013년 12월 31일
you can write your data to a CSV file using csvwrite(filename,M)
ES
ES 2013년 12월 31일
you could use dlmwrite or csvwrite or xlswrite instead. ActiveX server is even faster!!!

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

채택된 답변

Neesha
Neesha 2014년 2월 24일
Thanks all for the comments and suggestion. I was able to resolve problem by deleting old output and after that my export did not have an issue. Not sure why that old file was getting on way of new export.
I have not tried other options you have suggested hence not able to mark anything as answer

추가 답변 (1개)

AMITH P C
AMITH P C 2017년 11월 22일
How to convert .mat file into csv file
  댓글 수: 1
Mohammad Farhad Aryan
Mohammad Farhad Aryan 2020년 3월 10일
Use the following code.
load('filename.mat');
writematrix(filename, 'newfilename.csv');

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by