# how to matlab discrete signal

Discussion in 'Homework Help' started by stupid, Aug 14, 2010.

1. ### stupid Thread Starter Active Member

Oct 18, 2009
81
0
hi,
i just started with matlab.

suppose the inputs were:
x1(t), x2(t) & x3(t).
y(t)=x1(t)* x2(t)* x3(t) where y(t) is a multiplier output

how to write a code for y[n]=y(nT) for sampling at T=1sec?

2. ### Papabravo Expert

Feb 24, 2006
11,986
2,572
There is a special multiplication operator that multiplies the corresponding elements of a vector producing a new vector with the same number of elements as the original input vectors.

3. ### stupid Thread Starter Active Member

Oct 18, 2009
81
0
thanks for the response,papabravo

my problem is how to write a code for y[n]=y(nT) for sampling at T=1sec

my understanding of y[n] is a discrete signal.

thanks

4. ### Papabravo Expert

Feb 24, 2006
11,986
2,572
y[n] = y[nT] = x1[nT] * x2[nT] * x3[nT]

5. ### Georacer Moderator

Nov 25, 2009
5,154
1,280
You can calculate the continuous y(t) through a continuous transfer function and then use the tf G=tf(1,1,1) to sample it every second.