Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me understand Matlab operators for an equation

Status
Not open for further replies.

Dragonfly

Newbie level 4
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top