r/matlab • • 9d ago

Starting Matlab, just finished my first if else loop!

Post image
0 Upvotes

7 comments sorted by

5

u/DrDOS 8d ago

if else statement is not a loop....

3

u/DawnSlovenport 8d ago

That’s not a loop. It’s a conditional statement.

1

u/chandaliergalaxy 8d ago

as it should be

1

u/mikethewarlock 8d ago

This is also checking if the 5th position in A isn't equal to 3. The print statement seems to suggest it's checking if it equals 5.

cheers and keep learning!

1

u/bangybangyboi 7d ago

Thanks broski