How to make a signal vector?

조회 수: 12 (최근 30일)
Harini
Harini 2013년 4월 4일
I have a basic question in Matlab. Iknow it will be too trivial for most of you, but I just started coding in MATLAB.
S1 and S2 are two signals. I know how to code these. Next I have to make a vector S = [S1 S2]. How do I do this? Suppose S1 and S2 both have 40 samples of data, writing S = [S1 S2] gives me a row vect or of 80 columns, which is not what I want. I want S(n) = [S1(n) S2(n)]. How do I do that? My Ultimate aim is to make a Vector S(dimension Lx1) of source signals and then multiply it with another Matrix(NxL)to get a vector Nx1. Please help ASAP. A lot needs to be done after this basic baby step!! Basically I don't know how to make a signal vector!

채택된 답변

ChristianW
ChristianW 2013년 4월 4일
  댓글 수: 2
Harini
Harini 2013년 4월 4일
Now I have got a matrix of dim 2x40, how do I separate these as vectors at 1st interval, second interval etc? I am not sure if this is how it should be used in digital signal processing?
ChristianW
ChristianW 2013년 4월 4일
편집: ChristianW 2013년 4월 4일
You can transpose S for column wise signal channels.
S = [S1;S2].';

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by