Subscripting into an mxArray is not supported
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gautham Nachimuthu
le 9 Fév 2015
Commenté : Gautham Nachimuthu
le 11 Fév 2015
This is the part where i am getting error while converting to C code using Codegen.
w = 1;
yw1 = zeros(3,3);
r2 = 1;
c2 = 1;
for r3 = (r1-w) : (r1+w)
for c3 = (c1-w) : (c1+w)
_ *yw1(r2,c2) = y1(r3,c3);* _
c2 = c2 + 1;
if(c2 > g)
c2 = 1;
end
end
r2 = r2 + 1;
end
And y1 is a 512x512 matrix.
2 commentaires
Erik S.
le 9 Fév 2015
Hi,
In the second for loop you have underlines and stars, what are those? How does your C code look like?
Réponse acceptée
Ryan Livingston
le 9 Fév 2015
It sounds like you are using an extrinsic function and need to pre-assign the output.
3 commentaires
Ryan Livingston
le 10 Fév 2015
coder.varsize('y');
y = zeros(...);
y = callExtrinsicFunction(...);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!