Simulink Image From File parametrization
조회 수: 3 (최근 30일)
이전 댓글 표시
In my Simulink model I have a Image From File block to load an image to process and I've created a mask to choose the image file to load.
I want to change the FileName field of the block with the file name chosen, but it seems that the FileName field can be changed only opening the block and writing the name by hand, If I try to change with the command:
set_param('myModel/ImageFromFile','FileName','pippo.jpg')
or
set_param('myModel/ImageFromFile','FileName',fileName)
I get the error:
Error in 'myModel/ImageFromFile': Failed to evaluate mask initialization commands.
Caused by:
One or more output arguments not assigned during call to "varargout".
It seems that the block field is read-only
Can anybody suggest me what to do?
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!