find the value matriks

조회 수: 10 (최근 30일)
Internazionale
Internazionale 2013년 2월 25일
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
Image Analyst
Image Analyst 2013년 2월 25일
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 2013년 2월 26일
d{i} (dim 16x16) and e{i} (dim 8x8) ?
Do you ask why d-e won't work?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 PHY Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by