MATLAB: Hi every one, I wrote a simple code in GUI that ask the user to enter a string such as (I.2) usin inputdlg then convert it to binary , but i got an error !! the code is provided below .

gui dec2bin

elseif button_state == get(hObject,'Min') address=inputdlg('enter an address');
d=double(address);
s=dec2bin(d,8)

Best Answer

The documentation of inputdlg shows an example. So please read this again:
doc inputdlg
Then:
address = inputdlg('enter an address');
d = str2double(address{1});
Related Question