How do you insert a variable into a menu title ?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!