If the element is non zero then it will be manipulated as logical one. else it is taken as zero.
Example Program:
%% Generate a Matrix
A=[3 5 6; 4.5 0 6;0 0 1.3]
%% Convert the matrix into the logical array
B=logical (A)
Example Program:
%% Generate a Matrix
A=[3 5 6; 4.5 0 6;0 0 1.3]
%% Convert the matrix into the logical array
B=logical (A)
No comments:
Post a Comment