I'm writing one script for my education purpose, in that script i need to create multiple choice string input dialog box to get user input and Then i have to display that string…
I can do that by quetdlg command but this command is limited for only 3 input strings….
Script and errors shown below…plz help
Working Code is below…
clcclear allX=questdlg('Select Your Favourite','Input Choise','Chocolate','Candy','Nothing','Nothing');Y=sprintf('%s is My Favourite',X);disp(Y);
Non-Working code and error is below…
clcclear allX=questdlg('Select Your Favourite','Input Choise','Chocolate','Candy','Muffin','Lolipop','Nothing','Nothing');Y=sprintf('%s is My Favourite',X);disp(Y);Error using questdlgToo many input arguments.Error in Untitled (line 3)X=questdlg('Select Your Favourite','InputChoise','Chocolate','Candy','Muffin','Lolipop','Nothing','Nothing');
Is there any solution for this or any other way to do so…?
Thx in Advance…
Best Answer