MATLAB: Read GUI Edit Text without any additional chars

string

password = get(handles.pass,'string')
pass is an edit text but when i try to get it's string I got it like that:
'Any Text'
how can I get rid of these single quotations?

Best Answer

The quotes are not really there. You are not displaying the string, you are displaying a cell array that contains the string. You need to index the cell array to get the string itself.
password{1}
Related Question