필터 지우기
필터 지우기

writetable write data column wise

조회 수: 5 (최근 30일)
BILLAL Hossain
BILLAL Hossain 2020년 9월 5일
답변: madhan ravi 2020년 9월 8일
Hello, I am going to save table data into a csv file by writetable . However, it write data by columnwise only. My tbale dimention is :
Predicted Value Ground truth
286x1 categorical 286x1 categorical
Please see the attached image to see how it saves data. The code associated is
feature_string={'Predicted Value','Ground truth'};
label={pred_labels, validation_lbl};
T = cell2table(label, 'VariableNames',feature_string);
writetable(T, 'LABEL.csv');
  댓글 수: 1
Anmol Dhiman
Anmol Dhiman 2020년 9월 8일
Hi Billal,
It is unclear from the question , how you want your output to look like. Can you explain about that for better resolution?

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

답변 (1개)

madhan ravi
madhan ravi 2020년 9월 8일
label={pred_labels(:), validation_lbl(:)}; % shot in the dark

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by