필터 지우기
필터 지우기

how to convert like : fisheriris data conversion from .csv to .mat

조회 수: 67 (최근 30일)
Siti Suhaila
Siti Suhaila 2018년 8월 27일
댓글: Siti Suhaila 2018년 8월 28일
Below are the sample I get from matlab toolbox. How the fisheriris .csv that have 4 attributes converted into 2 variables (meas and species). I've tried csvread but display no text. Tried readtable, manage to read all but I've got to access the attributes independently and got to create a different table. Please guide me. Thank you.

답변 (1개)

KSSV
KSSV 2018년 8월 27일
S = load('fisheriris.mat') ;
T = struct2table(S) ;
writetable(T,'test.xlsx')
  댓글 수: 1
Siti Suhaila
Siti Suhaila 2018년 8월 28일
Thank you KSSV, but unfortunately, I want it to be from CSV to mat files because my intention is to create my own load files that able to hold multiple attributes in 1 variables' name just like 'meas' did that hold 4 variables from the xls files.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by