看板 MATLAB 關於我們 聯絡資訊
請參照下面的 code 我想把 Result 給寫入一個 Cell array "Feature", Result 會是一個 1 x 6656 的向量, 然後在我的迴圈內 總共會有 150個 Result. 請問要如何將這150 Result 按順序寫入 一個 150 * 6656的 Cell array? ########################################################### load data; for i = 1:10 for j = 1:15 Result = hist(double(A_Set1{i,j})', 0:5:255)'./length(B_Set1{i,j}); Feature = Result(:)'; < ---- 如何才能每次都寫入這個 Cell array? end end ########################################################### 謝謝 -- Sent from my Windows -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 137.44.90.69 ※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1461430239.A.457.html
celestialgod: 為啥feature不用matrix 04/24 01:48
celestialgod: 要存cell的話 可以改成 Feature(i*15+j,) = 04/24 01:49
celestialgod: num2cell(Result(:)'); 04/24 01:49
celestialgod: 少一個:,應該是Feature(i*15+j,:) = 04/24 01:52