Summary
In this lesson you have:
- learnt that in MATLAB, 1 represent a logical true and 0 represents a logical false;
- learnt about the relational operators < , <= , > , >= , == , and ~= ;
- learnt how to combine logical statements with the and & and or | operators;
- learnt than relational operators apply element by element when the arguments are arrays;
- learnt how to use if-statements for conditional execution of a group of statements;
- learnt how to use for-loops to repeatedly execute a group of statements;
- learnt that sometimes a for-loop may be replaced by a vector operation.
MATLAB online test 8
You should now complete MATLAB online test 8 which you will find on Mobius .