Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Applying function to a cell value

2 visualizzazioni (ultimi 30 giorni)
kash
kash il 16 Ott 2012
I have a code
for k = 1:(length(dirlist))
img = imread([pathname, dirlist(k).name]);
flatImg = double(reshape(img,size(img,1)*size(img,2),size(img,3)));
idx = kmeans(flatImg,3);
N{k}=(reshape(idx,size(img,1),size(img,2)))
end
save('final_result','N')
now i want to apply the follwing code to the N variable
y = diric(N,k),k=3
the size of N is 1x80
the values is
Columns 1 ..........Column80
[256x256 double] [256x256 double]

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by