GUIDE help
1 次查看(过去 30 天)
显示 更早的评论
How I can import a variable of my workspace into a line to my guide *.m
function btnSaltaPepper_Callback(hObject, eventdata, handles)
set(handles.truido,'string','Salt & Pepper Noise')
axes(handles.iruido);
J = imnoise(I,'salt & pepper');
imshow(J,'InitialMagnification','fit')
assignin('base','J',J)
I need import I from my workspace for apply the imnoise
Thanks
0 个评论
采纳的回答
Walter Roberson
2011-11-10
I = evalin('base','I');
Provided, that is, that you put I in the base workspace to begin with. There are a lot of other workspaces you might have put it in.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!