How can I insert a separate line of text with inputdlg?
22 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all!
Some help needed with the inputdlg option. I want to pose options on 3 variables in one dialog box, but all have one overlapping question. Is it possible to insert an enter in the first question, so that it looks like that is the main one? So something like this:
Please fill in the following variables
Age
[______________]
Height
[______________]
Weight
[______________]
I currently have the top line of text as title of the dialog box, but I believe it would be clearer if it was inside.
Thanks! ~ Judith
0 commentaires
Réponses (2)
Star Strider
le 15 Juil 2020
Try this:
dlgtitle = 'Please fill in the following variables: ';
prompt = {'Age','Height','Weight'};
vc = inputdlg(prompt, dlgtitle, [1 60]);
v = str2double(vc);
.
0 commentaires
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!