Creating an embedded MATLAB function block in Simulink

조회 수: 1 (최근 30일)
Anastasios
Anastasios 2014년 6월 26일
댓글: Anastasios 2014년 6월 26일
Hello,
I am trying to create an embedded MATLAB function block that has 8 constant inputs and one output (vector). However I get a few errors when I try to compile it in Simulink (Size mismatch (size [2205001 x 1] ~= size [1 x :?]). The size to the left is the size of the left-hand side of the assignment. ). The code by itself works fine in MATLAB. I have attached the .slx file with my block.
I would appreciate if someone could give me some advice regarding that.
Thank you
Tasos
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2014년 6월 26일
Could you please paste the snippet of the code that the failure occurs on? Also, you may find this discussion useful: http://www.mathworks.com/matlabcentral/answers/69970-matlab-coder-size-mismatch-issue
PS: Note that in general, you have greater chance of having your question answered if you have all the relevant information in your question. Some of us are wary of downloading files :)
Anastasios
Anastasios 2014년 6월 26일
Thank you for your response !
I have attached some snippets of my code and the errors that I am getting

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by