GUIDE help

2 visualizaciones (últimos 30 días)
Sergio
Sergio el 10 de Nov. de 2011
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Nov. de 2011
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.

Más respuestas (1)

Sergio
Sergio el 10 de Nov. de 2011
I got it. Thanks.
If someone needs the Answer is I=evelin('base','I')

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by