필터 지우기
필터 지우기

Error using Horzcat. Undefined function or variable 'opaque' for input arguements of type double.

조회 수: 3 (최근 30일)
I have a sim command which is calling my simulink model from my MATLAB script. The arguements are all assignin to the base workspace for the simulink model so it should be calling them ok.
However when trying to run the script I get the error:
Error evaluating expression '[list of inputs]' for 'Input' specified in the Configuration Parameters dialog for block diagram 'my model' : The following error occurred converting from double to opaque:
Error using horzcat
Undefined function 'opaque' for input arguements of type 'double'.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 10월 27일
Try to Ctrl+D (update) your model or run the simulation of your model by click the "Run" button, Simulink will report the error regarding the particular block and you need to resolve the error first.
  댓글 수: 2
Amardeep
Amardeep 2011년 10월 28일
Thanks for that. One of my inports is supposed to be pulling in data which is [1*9] array and it is resolving the dimensionality as 1. Is there a way to force it to resolve as 2D as with the constant blocks?
Amardeep
Amardeep 2011년 10월 28일
Sorted it ... just used constants =P
Thanks for all your help
Amardeep

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by