Effacer les filtres
Effacer les filtres

Getting an indexing error in my matlab program. Please help.

1 vue (au cours des 30 derniers jours)
Virajan Verma
Virajan Verma le 15 Oct 2018
Commenté : KSSV le 15 Oct 2018
for i=0:8
for j=0:27
N_matrix(i)(j)=0;(ERROR HERE)
end
end
()-indexing must appear last in an index expression.

Réponse acceptée

KSSV
KSSV le 15 Oct 2018
for i=1:8
for j=1:27
N_matrix(i,j)=0;(ERROR HERE)
end
end
  6 commentaires
Virajan Verma
Virajan Verma le 15 Oct 2018
Yes. I have a C code.
KSSV
KSSV le 15 Oct 2018
YOu ay find it useful :<https://in.mathworks.com/matlabcentral/answers/91303-how-to-convert-a-code-from-c-language-to-matlab>

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by