Have you an example like phonebook
古いコメントを表示
Hello from Turkey, I am working on a project. i search from google but i can't find any example like : a phone book. For example there are name,phonenumber,address in matlabphonebook. User enter input variables ( name,phonenumber,address) and when i press to myphonelist from gui , it will display all of phonelist.. Thank you for your answer
4 件のコメント
Walter Roberson
2012 年 5 月 20 日
http://www.mathworks.com/matlabcentral/fileexchange/24861
Özgür Karagülle
2012 年 5 月 20 日
Walter Roberson
2012 年 5 月 20 日
Oh, How do you solve a problem like a phonebook?
How do you hold an structure in your hand?
Özgür Karagülle
2012 年 5 月 20 日
回答 (2 件)
Walter Roberson
2012 年 5 月 20 日
Fields = fieldnames(PHONE);
Content = struct2cell(PHONE) .';
uitable('Data', Content, 'ColumnName', Fields);
3 件のコメント
Özgür Karagülle
2012 年 5 月 20 日
Walter Roberson
2012 年 5 月 20 日
Read the documentation on fieldnames() and struct2cell() and uitable(). Experiment with the code using a PHONE structure array that you have created.
I have already shown you the input() command for reading input from the user.
Walter Roberson
2012 年 5 月 21 日
thisname = input('Enter the name', 's');
thisnumber = input('Enter the phone number','s');
thisaddress = input('Enter the address','s');
PHONE.name = thisname; PHONE.number = thisnumber; PHONE.address = thisaddress;
カテゴリ
ヘルプ センター および File Exchange で Call Python from MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!