How to read mpt.parameter present in workspace

3 件のコメント

KSSV
KSSV 2020 年 6 月 9 日
Read about structure.
V Manohar
V Manohar 2020 年 6 月 9 日
In my workspace im having both constants and mpt.parameters,when im reading from workspace,i can jus access the names but not other fields of mpt.parameter
All_Data=whos
for i=1:length(All_Data)
All{i,2}=All_Data(i).class;
All{i,1}=All_Data(i).name;
if(strcmp(All{i,2},'mpt.Parameter'))
All_DataType=All_Data(i).DataType;
%All_value=evalin('base',All{i,1});
All_value=All_Data(i).Value
All{i,2}=strcat(All_DataType,'(',num2str(All_value),')');
else
All_value=evalin('base',All{i,1});
All{i,2}=strcat(All{i,2},'(',num2str(All_value),')');
end
end

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

回答 (0 件)

カテゴリ

タグ

質問済み:

2020 年 6 月 9 日

コメント済み:

2020 年 6 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by