Help me understand Matlab operators for an equation

Status
Not open for further replies.

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
 

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
 

    Dragonfly

    Points: 2
    Helpful Answer Positive Rating
Re: Help in Matlab.

THANKS VERY MUCH
 

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.

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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…