Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

function call from guide

1 Ansicht (letzte 30 Tage)
kush
kush am 12 Apr. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Walter Roberson
Walter Roberson am 12 Apr. 2012
key = str2double( get(handles.scramblekey,'string') );

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by