Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Applying function to a cell value

1 vue (au cours des 30 derniers jours)
kash
kash le 16 Oct 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]

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by