How do you insert a variable into a menu title ?
Show older comments
Let me clarify;
instead of writing 'You have chosen a car which travels at 70mph'
is there any way of writing a generic title 'You have chosen a car which travels at __mph' and fill in the gaps with specific data from a data file.
My script as it stands:
choice = menu('How are you travelling?', 'Thrust SSC', 'North American X-15', 'Walking', 'Space Shuttle','Millenium Falcon','None of the above');
if choice ==1;
menu('You are travelling from Mercury to Venus, this journey is *** Km or *** Miles. You have chosen to travel by the Thrust SSC, which travels at *** Km/h or *** mph. You will arrive at your destination in ***','Done','Plot Distance v Time graph');
end;
The *** is where i would like to reference a value from a datafile.
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic 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!