How to reference in a warning string to the name that changes depending on the result?

2 ビュー (過去 30 日間)
Valeska Pearson
Valeska Pearson 2014 年 7 月 23 日
Hi this is my code:
SimuFILE=SystemLib.Type;
ActiveValue=char(Comms_LB1_content(Comms_LB1_index));
ff=load([ActiveValue,'.mat'])
testValue=ff.SystemLib.RedSystem;
for i=1:length(testValue)
dd=char(testValue(1,i).System);
if strcmp(dd, SimuFILE)==1;
warndlg('This System is a requested system in %SimuFILE,'! Warning !')
end
end
SIMUFILE can change and is not fixed, how can I reference SimuFILE's value. At the moment it directly prints out SimuFILE, I want it to print out aircraft which is the SimuFILE value.

回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by