How to use macro in Simulink

5 visualizaciones (últimos 30 días)
legendbb
legendbb el 28 de Jul. de 2012
Tried CUR_DIR = pwd;
In Matlab I can do >> ls(CUR_DIR); I can strcat to for a file name and operate on the file.
But In Simulink I was trying to use the same method to get "Image from File" block to import a image from this relative path. The block complains "The specified file does not exist in MATLAB's search path".
Not able to dereference a file from a variable.
All I want is ${FILE_NAME_WITH_PATH} to use in simulink so I don't have to be locked by absolute path.
Thanks,

Respuestas (0)

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by