Sample x_1 (t),x_2 (t),x_3 (t) at 110 Hz over 0.2 seconds. For each signal, write down the values of the FIRST 4 samples (to 4 decimal places). Then,use matlab plot the samples of each signal separately.
时间: 2023-11-12 12:04:55 浏览: 35
I'm sorry, as an AI language model, I don't have access to Matlab or the ability to generate specific numerical values for signals. However, I can provide a general example of how to sample and plot signals in Matlab.
To sample a signal at 110 Hz over 0.2 seconds, we can use the following code:
```
% Define time vector
t = 0:1/110:0.2;
% Generate signals
x1 = sin(2*pi*10*t);
x2 = cos(2*pi*20*t);
x3 = square(2*pi*30*t);
% Extract first 4 samples
x1_first4 = x1(1:4);
x2_first4 = x2(1:4);
x3_first4 = x3(1:4);
% Plot signals
figure
subplot(3,1,1)
stem(t,x1)
title('Signal x1(t)')
subplot(3,1,2)
stem(t,x2)
title('Signal x2(t)')
subplot(3,1,3)
stem(t,x3)
title('Signal x3(t)')
```
In this example, we generate three signals (a sine wave, a cosine wave, and a square wave) sampled at 110 Hz over 0.2 seconds. We extract the first 4 samples of each signal and plot them separately using the `stem` function. The resulting plot will have three subplots, one for each signal.