writetable write data column wise

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일

0 개 추천

label={pred_labels(:), validation_lbl(:)}; % shot in the dark

카테고리

제품

릴리스

R2020a

질문:

2020년 9월 5일

답변:

2020년 9월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by