tufumaster 发表于 2006-5-16 15:41

请教:这个怎么做??

<P><FONT color=#0033ff>function</FONT> ytx_push_Callback(hObject, eventdata, handles)</P>
<P>SC = {<FONT color=#d52bd5>'*.tif;*.jpg;*.bmp;*.gif;*.png','FILES(*.tif,*.jpg,*.bmp,*.gif,*.png)'</FONT>;<br>   <FONT color=#f709f7>'*.tif', 'TIF/TIFF(*.tif)'</FONT>;<br>   <FONT color=#cc33cc>'*.jpg', 'JPG/JPEG(*.jpg)'</FONT>;<br>   <FONT color=#d52bd5>'*.bmp', 'BMP(*.bmp)'</FONT>;<br>   <FONT color=#d52bd5>'*.gif', 'GIF(*.gif)'</FONT>;<br>      <FONT color=#dd22dd>'*.png', 'PNG(*.png)'</FONT>;}<br>ytx = uigetfile(SC,' ')<br>imshow(ytx)<br><br><FONT color=#4d9eb3>% hObject    handle to yuantuxiang_push (see GCBO)<br>% eventdatareserved - to be defined in a future version of MATLAB<br>% handles    structure with handles and user data (see GUIDATA)</FONT></P>
<P><br><FONT color=#4d9eb3>% --- Executes on button press in zengqiang_push.<br></FONT><br><FONT color=#0909f7>function</FONT> zq_push_Callback(hObject, eventdata, handles)<br><FONT color=#ff0033 size=4>%请教在这个函数中,怎么调用上一个函数中的"ytx",以便对它进行处理????<br></FONT>   J = imadjust(............,,[]);<br>   imshow(J)<br><br><br><FONT color=#ff0000 size=5>谢谢!!!!</FONT></P>
[此贴子已经被作者于2006-5-16 15:42:55编辑过]

feichang61 发表于 2006-5-16 16:05

<P>把 ytx定义为全局变量</P>
<P>global ytx</P>
页: [1]
查看完整版本: 请教:这个怎么做??