フィルターのクリア

Loop through field variables named AnB, where n is an arithmetic value

1 回表示 (過去 30 日間)
Ioannis Voultsos
Ioannis Voultsos 2022 年 1 月 25 日
編集済み: Stephen23 2022 年 1 月 25 日
Dear all,
I am trying to loop field variables whose name are: Stdwind_pstill.OutputChannels(k).B1NnFy, where n is a number between 1 and 9. I would like to create a loop, which takes all 9 variables by looping their names. I tried to convert numbers to strings via num2str but without any result. Also, I tried the solution posted here: https://www.mathworks.com/matlabcentral/answers/114785-loop-over-variables-with-just-a-number-in-the-name-different but again Matlab did not recognise the field name.
Does anyone have an clue how to do it?
Best regards,
Ioannis Voultsos.

採用された回答

Stephen23
Stephen23 2022 年 1 月 25 日
編集済み: Stephen23 2022 年 1 月 25 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by