What is wrong with my code?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Raiven Balderas
il 5 Mar 2018
Risposto: per isakson
il 5 Mar 2018
Attached is my code. It should be a brief animation , but its not. Can anyone debug?
0 Commenti
Risposta accettata
per isakson
il 5 Mar 2018
I get an image and
>> game_of_evolution
Operands to the || and && operators must be convertible to logical scalar values.
Error in game_of_evolution (line 52)
if M==1 && S==1
and
>> game_of_evolution
52 if M==1 && S==1
K>> whos M S
Name Size Bytes Class Attributes
M 50x100 5000 logical
S 50x100 40000 double
The error message says: Operands to the and && operators must be convertible to logical scalar values.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Animation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!