Dec 17, 2009 #1 moonnightingale Full Member level 6 Joined Sep 17, 2009 Messages 362 Helped 5 Reputation 10 Reaction score 5 Trophy points 1,298 Activity points 3,832 I am having matrix A of about 2000 rows like following A = 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 1 I want to make a new matrib B in which first three columns are finished and last three columns stay there like this B = 0 1 0 1 1 1 0 1 1 1 1 1 kindly help me in matlab
I am having matrix A of about 2000 rows like following A = 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 1 I want to make a new matrib B in which first three columns are finished and last three columns stay there like this B = 0 1 0 1 1 1 0 1 1 1 1 1 kindly help me in matlab
Dec 17, 2009 #2 E engr_najam Full Member level 2 Joined Aug 10, 2006 Messages 128 Helped 7 Reputation 14 Reaction score 1 Trophy points 1,298 Activity points 1,939 A = 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 1 B=A,4:6) B = 0 1 0 1 1 1 0 1 1 1 1 1 if that is ur answer then click help button
A = 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 1 B=A,4:6) B = 0 1 0 1 1 1 0 1 1 1 1 1 if that is ur answer then click help button
Dec 17, 2009 #3 s_cihan_tek Full Member level 2 Joined Mar 8, 2006 Messages 125 Helped 19 Reputation 38 Reaction score 4 Trophy points 1,298 Location Turkey Activity points 2,206 x = size(A,2); B= A,x-2:x);