Effacer les filtres
Effacer les filtres

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 vue (au cours des 30 derniers jours)
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 commentaire
Rutvik Shete
Rutvik Shete le 4 Déc 2020
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?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by