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