Hi,
I am new to MATLAB. the following is my code I am unable to understand
the operation perfromed B = S(A); and C = S(~A);
B has size 15×1 double
C has size 285×1 double
S is 20×15 double
A is 20×15 logical
my question is what operation has been performed in B and C and how did they get that size?
Please help me understand this!
clear all;clc;A = false( 20,9 );sP = generate_pilots( 15 , 4, 'deterministic' );G = [4:4:11 12:4:21]';H = (2:7:20)';A( G, H-1 ) = true;S = zeros( size(A) );B = S(A);C = S(~A);D = sP(1:15);S( A ) = sP(1:15);
Regards,
Gnanesh
Best Answer