Problem with gui code

3 visualizzazioni (ultimi 30 giorni)
sha
sha il 7 Dic 2012
[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 Commento
Jan
Jan il 10 Dic 2012
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.

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 7 Dic 2012
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.

Categorie

Scopri di più su Images in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by