How do you insert a variable into a menu title ?
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!