Attached is my code. It should be a brief animation , but its not. Can anyone debug?

 채택된 답변

per isakson
per isakson 2018년 3월 5일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

태그

질문:

2018년 3월 5일

답변:

2018년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by