How to find variable strings within a structure?
Hi! I have a workspace variable named ‘simulation’ which houses 6 fields. These fields have a varying number of fields within them. Is it possible to search every ‘branch’ of this ‘simulation’ structure to find string values that contain ‘.m’?
For example, to find that:
simulation.system{1, 1}.system{1, 1}.system{1, 1}.initialization{1, 1}.name
contains the string ‘drv_ctrl_look_ahead_init.m’Hi! I have a workspace variable named ‘simulation’ which houses 6 fields. These fields have a varying number of fields within them. Is it possible to search every ‘branch’ of this ‘simulation’ structure to find string values that contain ‘.m’?
For example, to find that:
simulation.system{1, 1}.system{1, 1}.system{1, 1}.initialization{1, 1}.name
contains the string ‘drv_ctrl_look_ahead_init.m’ Hi! I have a workspace variable named ‘simulation’ which houses 6 fields. These fields have a varying number of fields within them. Is it possible to search every ‘branch’ of this ‘simulation’ structure to find string values that contain ‘.m’?
For example, to find that:
simulation.system{1, 1}.system{1, 1}.system{1, 1}.initialization{1, 1}.name
contains the string ‘drv_ctrl_look_ahead_init.m’ structure, index, search MATLAB Answers — New Questions