Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Subscript indices must either be real positive integers or logicals by using Eval

1 vue (au cours des 30 derniers jours)
Abdelmajid Mettari
Abdelmajid Mettari le 13 Sep 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi People,
I m getting this error when i try to run my simulation,i had an excel table which i want to import in my skript and excute the strings into each cell an abstact of my loop look like this
elem1=table2cell(excelDataTable(1:113,'Export'))
for ii=1:length(elem1)
eval(elem{i})
i=i+1;
end
i don T know what i did Wrong
can any body help? Thank you .
  2 commentaires
Stephen23
Stephen23 le 13 Sep 2017
Modifié(e) : Stephen23 le 13 Sep 2017
"i don T know what i did Wrong"
Evil eval.
Abdelmajid Mettari
Abdelmajid Mettari le 13 Sep 2017
Hi, thank you for replying.
i just mistype the ii,I wrote the programm with one i and i still got this error, is there any alternativ of Eval?

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by