필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

function call from guide

조회 수: 1 (최근 30일)
kush
kush 2012년 4월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
i am calling a function
'function watermarkedImage = fembed (originalImage,watermark,key)'
from the callback of a gui fig.here key is the value entered in text box by user which is collecter by
key= get(handles.scramblekey,'string');
now i am passing this key value to function fembed as:
watermarkedImage=fembed (orgImage,wtrImage,key);
but the value which actually gets passed to function is a char 'key' so it gives error while executing function.can anyone help plz

답변 (1개)

Walter Roberson
Walter Roberson 2012년 4월 12일
key = str2double( get(handles.scramblekey,'string') );

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by