作者mouse851016 (沁仔)
看板MATLAB
標題[討論] 查看cell的內容
時間Mon Dec 10 22:50:30 2018
想要請問版上的大家,要怎麼樣才能將cell改成double,我嘗試用下面的語法但還是無法。
麻煩大家幫幫忙
J=cell2mat(K);
Error using cat
Dimensions of arrays being concatenated are not consistent.
Error in cell2mat (line 75)
m{n} = cat(2,c{n,:});
https://i.imgur.com/tEH0LHT.jpg
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.139.242.52
※ 文章網址: https://webptt.com/m.aspx?n=bbs/MATLAB/M.1544453433.A.3A5.html
※ 編輯: mouse851016 (223.139.242.52), 12/10/2018 23:11:34
1F:推 Cshap: 可能要用for迴圈,把cell中每個元素轉成double 10/06 20:51