Clear Filters
Clear Filters

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

3 views (last 30 days)
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'.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 27 Oct 2011
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 Comments
Amardeep
Amardeep on 28 Oct 2011
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?

Sign in to comment.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!