find the value matriks

12 vues (au cours des 30 derniers jours)
Internazionale
Internazionale le 25 Fév 2013
this is my program. ihave 2 cells c and d. next, i got process rms in mintemp and i got the minimum value and the coordinate of minimum value from cell c and d
d = mat2cell(Temp, [16 16 16 16 16 16 16 16 16 16 16 16 16] , ...
[16 16 16 16 16 16 16 16 16 16 16 16 16]);
e = mat2cell(Y, [8 8 8 8 8 8 8 8] , [8 8 8 8 8 8 8 8]);
for yy=1:13
for zz=1:13
for aa=1:8
for bb=1:8
kurang{yy,zz,aa,bb}=d{yy,zz}-e{aa,bb};
rms{yy,zz,aa,bb}=(sqrt((sum(sum((kurang{yy,zz,aa,bb}))))^2))/64;
mintemp(yy,zz,aa,bb)=rms{yy,zz,aa,bb};
end
end
end
end
[ii1,ii2,ii3,ii4]=size(mintemp);
count=0;
id=zeros(ii3*ii4,4);
for k=1:ii3
for p=1:ii4
count=count+1;
v=mintemp(:,:,k,p);
[val,idx]=min(v(:));
[id1,id2]=ind2sub(size(v),idx);
minval(count)=val;
idx1(count)=id1;
idx2(count)=id2;
idx3(count)=k;
idx4(count)=p;
id(count,:)=[id1 id2 k p];
end
end
next problem is, variable id is the coordinates of blok d and e from minimum value of mintemp. i want to process them z=d-e, where d and e is coordinates of cells from id. i dont have idea to call the same coordinates from variable id.
  3 commentaires
Image Analyst
Image Analyst le 25 Fév 2013
You still don't know how to describe it, as the absence of comments proves. I have no idea what "process them z=d-e" means. I don't know what to do with your program. Can you describe your code better (add comments), and describe your question better?
ChristianW
ChristianW le 26 Fév 2013
d{i} (dim 16x16) and e{i} (dim 8x8) ?
Do you ask why d-e won't work?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur PHY Components dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by