Error question :The expression to the left of the equals sign is not a valid target for an assignment

1 vue (au cours des 30 derniers jours)
Trying to debug this loop (I am pretty new with matlab). I get the error for the last line. Any tips?
for i=2:length(text)
roi=text{i};
eval([roi,'_sani=table2(indici_cnt,i);']);
eval([roi,'_fep=table(indici_fep,i);']);
eval(['table_out.',roi,'=[',roi,'_fep;',roi,'_sani];']);
end
  5 commentaires
Stephen23
Stephen23 le 2 Mar 2016
@M.Gloria: screenshots are not very useful for us. Please upload the code using the paperclip button. Then click Choose file and Attach file buttons.

Connectez-vous pour commenter.

Réponse acceptée

Stephen23
Stephen23 le 2 Mar 2016
Modifié(e) : Stephen23 le 25 Juin 2019
  1 commentaire
Jan
Jan le 2 Mar 2016
@Stephen: What about posting this perfect answer as an own thread and inserting a link to it, when the next one asks for eval? This would allow us to upvote your answer enough.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by