How to export cell array to excel

조회 수: 1 (최근 30일)
Shannon
Shannon 2020년 2월 4일
답변: Bhaskar R 2020년 2월 4일
I have a cell array, A = {'matlab' 'ver' 12},
When I export it to excel file, number 12 is text type, how to change the type to number instead of text?
Thanks,
Shannon

채택된 답변

Bhaskar R
Bhaskar R 2020년 2월 4일
A = {'matlab' 'ver' num2str(12)}; % actually no need of number to string conversion
writecell(A, 'filemname.xlsx');

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by