how to manage inputs in a dialogbox

3 views (last 30 days)
sanky kumar
sanky kumar on 11 Sep 2013
prompt={'Enter the matrix size for x^2:',... 'Enter the colormap name:'};
name='Input for Peaks function';
IN THIS CODE INSTEAD OF using "defaultanswer" how to leave the textbox blank & also where will we see the stored answers ?

Answers (1)

Arthur on 11 Sep 2013
To leave the textbox blank, you can either do this:
defaultanswer = {'',''};
or this
You will find the answers in, well, answer. This will be a cell array, with answer{1} being the inserted string in box 1, and answer{2} the contents of box 2.

Community Treasure Hunt

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

Start Hunting!