Inferred size ('[1 13]') for data ***** (#32) does not match back propagated size ('[13]') from Simulink.
138 views (last 30 days)
Show older comments
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
1 Comment
Answers (4)
Shailesh Raturi
on 2 Sep 2016
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 Comments
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!