Variable function names in Simulink
이전 댓글 표시
Hi,
I have created a model in Simulink which uses the Matlab Function block. Usuually I would enter the name of my function into this block and run the model. However I would like to automate my simulations which requires me to keep the function names variable. I have tried creating a cell array of function names and attempting to access these in the 'Matlab Function' parameter line:
SimControllers{ControllerRun}
But this does not seem to work.
Any ideas on how I could accomplish this?
Regards,
Avi
답변 (2개)
Kaustubha Govind
2011년 5월 3일
You could try entering something like:
feval(SimControllers{ControllerRun},u(1))
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!