I want to go through the code to find out where variables are used in the model and what functions are available.
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Fangping
el 26 de Jun. de 2024
Respondida: Fangping
el 15 de Jul. de 2024
I want to go through the code to find out where variables are used in the model and what functions are available. Equivalent to the following operation is implemented using code.
0 comentarios
Respuesta aceptada
Más respuestas (2)
Dheeraj
el 26 de Jun. de 2024
Hi Fangping,
I understand you want to programmatically find where variables are used in a Simulink model.
This can be acheived using MATLAB's "find_system" function. This function allows you to search for models, blocks, lines, ports, and annotations directly from MATLAB scripts.
To know more about how to use "find_system" and the functional parameters that can be passed, you could refer to the below MATLAB's documentation.
Matlab Pro
el 26 de Jun. de 2024
Well - maybe this is obvious ...:
"where variables are used"
type Ctrl-Shift-F which opens the "Find in files" GUI.
I have attached an image with the GUI and marked places you need to change/configure according to your needs
" what functions are available"
If you can open the file in Matlab editor - all you need to do is click on the "GoTo" button (see another attached image)
Good luck
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!