Create structure path from string and cell array

I have a nested structure called S. The data I want to access is in:
S.Signal_00.values.y_values
The path always stays the same but the values for Signal_00 differs. I have these Signal names stored in a cell array like below.
sigNames = {'Signal_00'; 'Signal_01';'Signal_02'...}
How do I create the above structure path using the Signal names I have stored in the cell array sigNames?

3 件のコメント

madhan ravi
madhan ravi 2019 年 6 月 13 日
Let me clarify , do you want to access the data from structure using sigNames??
John Doe
John Doe 2019 年 6 月 13 日
Yes, that's correct.

回答 (0 件)

この質問は閉じられています。

製品

リリース

R2018a

タグ

質問済み:

2019 年 6 月 13 日

閉鎖済み:

2019 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by