Access Structure Array through using String names

5 ビュー (過去 30 日間)
cemsi888
cemsi888 2015 年 3 月 9 日
編集済み: Stephen23 2015 年 5 月 22 日
hi everyone. i am using gui and with gui i am choosing file ,reading texts making calculations and finaly i would like to plot my results.before after chosing files and reading Parameters and related values i create structure Array on work space.these are Info and Mappe_1 (if i choose 2 files, it would be Mappe_2 created too...) In info i stored Informations about Pfad Name, Mappe_i Name and file Name.in order to start thermodynamic calculation i have call or reach Mappe_i structure Array. My solution was: Because i have Mappe names in my Info structure Array as a string i can reach this Name and i can make a Loop in my calculation file. i am going to Show my example too...
name_of_struct=Info.info{2,3}
T=temperature
Maps=Info.info{2,3}.readinparameters.T2{1,1]
But it gives me error massage but if use like that
a=readinparameters
Maps=Mappe_1.a.T2{1,1} i can get the value. could you please help me about this problem
  1 件のコメント
cemsi888
cemsi888 2015 年 3 月 9 日
編集済み: cemsi888 2015 年 3 月 9 日
do not you have any idea? i got this error massage Attempt to reference field of non-structure array.

サインインしてコメントする。

回答 (1 件)

Stephen23
Stephen23 2015 年 3 月 9 日
編集済み: Stephen23 2015 年 5 月 22 日

カテゴリ

Help Center および File ExchangeThermodynamics and Heat Transfer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by