Embedded matlab function error
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello!
How can I resolve this error:
"Computed maximum size of the output of function 'eye' is not bounded.
Static memory allocation requires all sizes to be bounded.
The computed size is [:? x :?]."
I use this code:
function y = fcn(a,b,c)
I = eye(a);
y = 1;
end
(I show u the worst part of my code)
I tried to use this one:
function y = fcn(a,b,c)
coder.varsize('I', [10 10]);
I = eye(a);
end
But it is still not working...
Any ideas?
Thx!
0 Kommentare
Antworten (3)
Walter Roberson
am 10 Jun. 2017
Try
function y = fcn(a,b,c)
I = zeros(10,10);
I = eye(a);
end
0 Kommentare
Siehe auch
Kategorien
Mehr zu Block Libraries finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!