Dec 3, 2006 #1 D Dragonfly Newbie level 4 Joined Oct 8, 2006 Messages 5 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,322 I need help as I need to do the follwoing operation I dont know to opraaters of matlab I have LSB = [ 3, 4, 0, 6, 7, 8] MSB = [ 0 ,7 ,8 ,9,0] I want to get result as 30 47 08 79 80 so this way... Urgently rquired
I need help as I need to do the follwoing operation I dont know to opraaters of matlab I have LSB = [ 3, 4, 0, 6, 7, 8] MSB = [ 0 ,7 ,8 ,9,0] I want to get result as 30 47 08 79 80 so this way... Urgently rquired
Dec 3, 2006 #2 Robinenemy Advanced Member level 4 Joined Jul 10, 2006 Messages 110 Helped 26 Reputation 52 Reaction score 11 Trophy points 1,298 Activity points 1,915 Re: Help in Matlab. %I Have used a and b as arrays a = [ 1 2 3 4 5] a = 1 2 3 4 5 >> b = [ 0 2 4 6 8] b = 0 2 4 6 8 >> R = cat(1,a,b) R = 1 2 3 4 5 0 2 4 6 8 R,1) ans = 1 0 IN THIS WAY U CAN ACCESS THE ELEMENTS of any column. Regards Robin
Re: Help in Matlab. %I Have used a and b as arrays a = [ 1 2 3 4 5] a = 1 2 3 4 5 >> b = [ 0 2 4 6 8] b = 0 2 4 6 8 >> R = cat(1,a,b) R = 1 2 3 4 5 0 2 4 6 8 R,1) ans = 1 0 IN THIS WAY U CAN ACCESS THE ELEMENTS of any column. Regards Robin
Dec 3, 2006 #3 D Dragonfly Newbie level 4 Joined Oct 8, 2006 Messages 5 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,322 Re: Help in Matlab. THANKS VERY MUCH
Dec 3, 2006 #4 P pixel Advanced Member level 2 Joined Sep 16, 2004 Messages 508 Helped 69 Reputation 138 Reaction score 16 Trophy points 1,298 Activity points 3,993 Re: Help in Matlab. Result=LSB+10*MSB, where LSB is least singnificant digit and MSB is most significant digit... >> a=[1 2 3 4 5 6] >> b=[7 8 9 0 1 2] >> res=a+b*10 res = 71 82 93 4 15 26
Re: Help in Matlab. Result=LSB+10*MSB, where LSB is least singnificant digit and MSB is most significant digit... >> a=[1 2 3 4 5 6] >> b=[7 8 9 0 1 2] >> res=a+b*10 res = 71 82 93 4 15 26
Dec 3, 2006 #5 D Dragonfly Newbie level 4 Joined Oct 8, 2006 Messages 5 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,322 Re: Help in Matlab. Pixel I neded the no 0 also i.e 0, 1 shoud give 01 but didnt get it dat way if i usd a+b*10 anyhow the probis sold thanks all
Re: Help in Matlab. Pixel I neded the no 0 also i.e 0, 1 shoud give 01 but didnt get it dat way if i usd a+b*10 anyhow the probis sold thanks all