"

12 How to make a matrix using logical array:

How to make a matrix using logical array:

1. First make a logical variable. To do so type the variable into the command window. Use a semicolon to
indicate the start of a new row. For example a=logical([1,1,0,1,2 ; 1,0,0,0,1]) (Note: to create a matrix
using a logical variable you can only use 0,1. Inputting any other number will automatically change to 1 as
seen below)

 

License

Tech Tangerine Guide - Matlab Copyright © by pranjalsaloni. All Rights Reserved.