how do i append two sine waves in matlab

Status
Not open for further replies.

raghuvamsiram

Newbie level 3
Joined
Jun 21, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
hyd
Activity points
1,298
matlab append

hey can any one get me the code for how do i join two signals in matlab....plzzzz post it as early as possible....its very urgent
 

adding two sine waves in matlab

append, join, do you mean add ? or connect one sine wave after certain time duration. This this case try using the unit step function with the two sine waves. If you cant understand the logic, then tell me
 

different waves in matlab

use CAT command as shown:

>> x=[1 2 3 4 5 6]

x =

1 2 3 4 5 6

>> y=[7 8 9 10 11 12]

y =

7 8 9 10 11 12

>> cat(2,x,y)

ans =

1 2 3 4 5 6 7 8 9 10 11 12

>>
 

matlab row append

cant get you ...could u clear me wid the code how to use the step function plzzzz......
 

matlab append vector

suppose you hav two signals S1, S2;

Let S1 have 1000 samples;

S2 have 2000 samples;

just use the command as below:

SIG=cat(2,s1,s2)

here 2 means that the we are going to add them is in row wise, then SIG will be a row vector having 3000 samples.

while 1 means we wanna add them column wise
and hence 3 will mean any other dimension.
 

add 2 waves in matlab

thanx for the explanation but bro im interested in an analog signal that has to be appended to another analog signal...and not wid the samples of the original signal....could u help me out with this....plzzzzz
 

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