필터 지우기
필터 지우기

Problem with gui code

조회 수: 3 (최근 30일)
sha
sha 2012년 12월 7일
[RESTORED, Jan, this has been either accidently or intentionally replaced by the character "l"]
My code managed to execute. However, i have one problem. i have tried several times solving this but to no avail.
i have 6 axes of images and another axes (7th axes)to display my final calculation of using 'imagesc' command and i wanted the 6 images to appear as it is. The final calculation image manage to appear at 7th axes BUT all my 6 images change to 'imagesc' as well.
________________________________________________
thickness = str2num(get (handles.thickness, 'String'));
theta1=I5c-I3c;
theta2=I4c-I6c;
ftheta=(1/2)*atan(theta1.*theta2);
delta1=I5c-I4c;
delta2=I1c-I2c;
delta3=sin(2.*ftheta)-cos(2.*ftheta);
fdelta=atan(2.*(delta1./(delta2.*delta3)));
N=fdelta./(2*pi);
stress=(N.*f)/thickness;
axes(handles.axes11);
imagesc(abs(stress)), title('Stress distribution'), xlabel('Pixel'), ylabel('Pixel'), colorbar, colormap(jet);
________________________________________________
PLS HELP. Thanks.
  댓글 수: 1
Jan
Jan 2012년 12월 10일
Dear sha, if this question has been deleted intentionally: Please do not do this. Image Analyst has spent time to create an answer. The nature of this forum is to share solutions with others. If you delete a question after a solution is posted, nobody can profit from this thread anymore. And this is neither friendly to the ones who spend there spare time to help you to solve your problems, nor is this wanted here.

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

답변 (1개)

Image Analyst
Image Analyst 2012년 12월 7일
I don't know what you're saying. I see one call to imagesc(), not 6 or 7. I see one axis, called handles.axes11, not 7 axes handles. You'll need to supply more info. It does not make sense when you say that images change into the imagesc() function - images can't change into functions. Perhaps if you got a native English speaker to translate I could understand more.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by