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 ?

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 5월 20일

0 개 추천

thisfieldname = input('Enter the field you want to change','s');
thisval = input(['Enter the value you want to associate with ' thisfieldname]);
Domain.(thisfieldname) = thisval;

댓글 수: 2

Özgür Karagülle
Özgür Karagülle 2012년 5월 20일
thank you for answer. so i will all use this function each of ( x,y,z,t) ?
Özgür Karagülle
Özgür Karagülle 2012년 5월 20일
i am sorry i ask wrong :( i want to learn i will create structures of
Domain.Name, Domain.Expire, Domain.Owner and taking the variables for this structures and then show with a simple gui ?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Just for fun에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by