フィルターのクリア

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 Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by