csv to .mat file

조회 수: 5 (최근 30일)
aaliyan javaid
aaliyan javaid 2021년 5월 2일
댓글: Image Analyst 2021년 5월 3일
i want to convert data having 3 colums and rows 13000 how can i do that kindly help
  댓글 수: 1
Image Analyst
Image Analyst 2021년 5월 3일
Convert it from what into a 13000-by-3 matrix?

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

답변 (2개)

John D'Errico
John D'Errico 2021년 5월 2일
help csvread
help save
Perhaps you need to do the Onramp MATLAB tutorial?
  댓글 수: 1
aaliyan javaid
aaliyan javaid 2021년 5월 2일
no help found for csv read

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


EmirBeg
EmirBeg 2021년 5월 2일
편집: EmirBeg 2021년 5월 2일
To get the .csv data try
readtable('filename'); %imports the .csv data
If you need to specify your delimiters you need to change the opts file but usually it's not needed.
doc opts; % all the information you need
To save it in a .mat file try
save('Data'); % saves Workspace in a .mat file named Data
As John said, those are basics you can learn by looking at the docs.
You can also import the data via the Import-Data Button when you press Home, and then create a function of your Import that does it automatically.

카테고리

Help CenterFile Exchange에서 Standard File Formats에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by