embedded matlab function
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm using embedded matlab function for my project. How to initialize the parameter just once at the beginning? some sort like this: j = 0 (initialize once only) j=j+1 (the value of j is updated after every loop running)
0 commentaires
Réponses (1)
Rick Rosson
le 22 Déc 2011
Please try:
persistent j
if isempty(j)
j = 0;
end
j = j + 1;
HTH.
Rick
0 commentaires
Voir également
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!