input to structures
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Domain.x='xxxxx';
Domain.y='18 May 2012';
Domain.z='zzz';
Domain.t='tttttt';
Hi, i know how i make structure like up. But i dont know how i can use input function and take "x","y","z","t" variables from users with my GUI ?
0 Commenti
Risposta accettata
Più risposte (1)
Walter Roberson
il 20 Mag 2012
thisfieldname = input('Enter the field you want to change','s');
thisval = input(['Enter the value you want to associate with ' thisfieldname]);
Domain.(thisfieldname) = thisval;
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!