Inferred size ('[1 13]') for data ***** (#32) does not match back propagated size ('[13]') from Simulink.

57 ビュー (過去 30 日間)
swapnil
swapnil 2011 年 10 月 10 日
コメント済み: VIGNESH BALAJI 2023 年 10 月 11 日
Hi, I am using embedded Matlab function block in Simulink. Function returns the row vector from input matrix (NxN).
function y=RowVector(x)
y =(x(1,:));
end
Following error is received: Inferred size ('[1 13]') for data *** (#32) does not match back propagated size ('[13]') from Simulink.
Can you help me in resolving this error? Regards Swapnil

回答 (4 件)

Shailesh Raturi
Shailesh Raturi 2016 年 9 月 2 日
hello. step 1- click right on Matlab function and go to Explore. step 2 - there click on y, right side in general there will be size block. there is -1 written step 3- change that to [1 3] you will no get now no error njoy!!
  5 件のコメント
Muhammad Adil
Muhammad Adil 2022 年 10 月 5 日
Many thnaks for answering I just tried it and solved my problem .
VIGNESH BALAJI
VIGNESH BALAJI 2023 年 10 月 11 日
Thank you, it was resolved. Your explanation was good :)

サインインしてコメントする。


Walter Roberson
Walter Roberson 2017 年 2 月 3 日
y = zeros(13, 1);
y(:) = x(1,:);

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 10 日
Can you try y=x(1,:)';?

swapnil
swapnil 2011 年 10 月 10 日
I have tried with y =x(1,:); It was just typo mistake. But it doesn't work.
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2011 年 10 月 10 日
No, I meant with the transpose.
craq
craq 2014 年 4 月 30 日
the transpose doesn't work for me. I tried transposing inside the Embedded Matlab Function and with a simulink block between the Embedded Matlab Function and the DeMux.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNaming Conventions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by