Issue with matlab function block (Simulink)

조회 수: 3 (최근 30일)
bethel o
bethel o 2012년 9월 8일
Hi, Why does my row vectors become column vectors in matlab function block? This is causing problems in my equations because even the signal vector which is not frame based arrive in the matlab function block as column vectors, this makes my matrix operations in my equations to fail.
Is there a proper solution to this? I really don't want to open several blocks and transpose all the variables that were fine when I was using S-function block.
Is this do to code generation, the fact that C would differentiate a column from a row? If this is the case? what is the best practice when using the matlab function block?
Thanks
Bethel

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 8일
if you are using constant blocs uncheck 'interpret as 1D'

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by