Creating Message Box for Variable selection Instead of command window request.
Show older comments
Hi guys,
I am wanting to make my script produce a message window to ask for a key input to select a variable. the only function of this is to populate 1 cell in an excel sheet as I do alot of test data. each data set has to havea contents page and title. it is the title that I am wanting to change,
Currently the script is
***********************************************************
variable={'variable 1' variable 2' 'variable 3' ' variable 4'....'Variable 9'}
option=input('Please indicate the name of the variable to be analysed: 1=variable 1\ 2 = variable 2\ 3= variable 3\ 4 = variable 4\....\9 = Variable 9
if option >= 1 && option <= 9
T = Vehicletitle{option};
end
***********************************************************
the variable then is used to be inserted to excel.
many thanks
James
Accepted Answer
More Answers (1)
James hall
on 8 Aug 2012
0 votes
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!