About this blog

I feel this blog as a reflection of my thoughts to myself , and sometimes as a public diary, and the is my only friend to share my thoughts who says never a "oh no! ,you shouldn't....That is boring...."

matlab generate matrix with alternating +1 -1 in rows and columns with simple line





for an MxN matrix  A

u= ( - 1) . ^ [1:M] ;
v= ( - 1) . ^ [1:N];
A= u ' * v ;

కామెంట్‌లు లేవు: