double型配列をcell型配列に変更する方法
24 views (last 30 days)
Show older comments
xlsread関数で、
[num,txt,raw] = xlsread('file_name');
とコードを書いた際、numはdouble型、txtとrawはcell型として配列が生成されます。
数値データであるdouble型配列のnumを、cell型に変換することは出来ますでしょうか。
0 Comments
Accepted Answer
Kenta
on 28 Sep 2019
こちらのnum2cellで、doubleからcell型に変換できると思います。
例)a = magic(3);c = num2cell(a)
2 Comments
More Answers (0)
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!