Computed maximum size of the output of function 'cat' exceeds maximum allowed number of elements (134217728). The computed size is [:15000 x :15004]. Function 'Trial' (#235.3696.3716), line 88, column 20: "[tm1 tm1 tm1 tm1 V3]" Launch diagnostic r

1 次查看(过去 30 天)
I am facing this error when using Embedded Coder in matlab. I am calling Matlab function in state flow. The piece of code is as given,
H = [tm1 tm1 tm1 tm1 V3];
tm1 is 1x1 double and V3 is also 1x1 double which is either defined or calculated above this line. Can anyone give some solution for this? When debugged in matlab with Generic coder it shows array of size 1x5 .
Thanx in advance.
  1 个评论
Rutvik Shete
Rutvik Shete 2020-12-4
For example: Following is my piece of code:
function [Tcont, T] = timeArrayVelo(Tarray,dt)
Tcont = cell(5,1);
T = cell(5,1);
% arrays for velocity time array
Tcont{1} = Tarray(1):dt:Tarray(2)-dt;
Tcont{2} = Tarray(2):dt:Tarray(3)-dt;
Tcont{3} = Tarray(3):dt:Tarray(4)-dt;
Tcont{4} = Tarray(4):dt:Tarray(5)-dt;
Tcont{5} = Tarray(5):dt:Tarray(6);
% arrays for calculation
T{1} = 0:dt:(Tarray(2)-Tarray(1))-dt;
T{2} = 0:dt:(Tarray(3)-Tarray(2))-dt;
T{3} = 0:dt:(Tarray(4)-Tarray(3))-dt;
T{4} = 0:dt:(Tarray(5)-Tarray(4))-dt;
T{5} = 0:dt:(Tarray(6)-Tarray(5));
end
And I am getting following error:
Can anyone give any solution?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by