Hello,
I am trying to access a variable within a struct named
behaviours{1,1}.pedestrian1
Is it possible to access this variable if I have a string named "pedestrian1" ? Basically something like this
ped = 'pedestrian1'
display(behaviours{1,1}.ped)

 Akzeptierte Antwort

Adam
Adam am 7 Dez. 2018
Bearbeitet: Adam am 7 Dez. 2018

1 Stimme

behaviours{1,1}.( ped )
should work

Weitere Antworten (0)

Kategorien

Tags

Gefragt:

am 7 Dez. 2018

Bearbeitet:

am 7 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by