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