필터 지우기
필터 지우기

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