フィルターのクリア

not displaying eval in command window

8 ビュー (過去 30 日間)
Nidhal Bouzouita
Nidhal Bouzouita 2021 年 11 月 29 日
回答済み: Chunru 2021 年 11 月 29 日
Hello dear readers,
i am using this code
for i =1 : length (signal_names)
ImportedSignals = genvarname(cell2mat(signal_names(i)), who);
eval([ImportedSignals ' = signals.(cell2mat(signal_names(i))).data']);
end
each time the eval is executed , i got the result alsso in the command window , how can i get rid of it ? i mean i dont want to display those results on the command window , what should i add in the code ?
thanks in advance for your help

採用された回答

Chunru
Chunru 2021 年 11 月 29 日
Try this:
for i =1 : length (signal_names)
ImportedSignals = genvarname(cell2mat(signal_names(i)), who);
eval([ImportedSignals ' = signals.(cell2mat(signal_names(i))).data;']);
% semicolon here ^
end

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by