GUIDE help
조회 수: 2 (최근 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!