Final answer:
To plot the signal x(t) in MATLAB, first load the file, create a time vector based on the sampling frequency, then plot the signal using MATLAB's plot function.
Step-by-step explanation:
To plot the signal x(t) described as x(t) = x1(t) + x2(t) = sin(2πf1t) + 3cos(2πf2t) in MATLAB, you need to load the given SigQ1.mat file, extract the signal, and then create a time vector to correspond with the sampling frequency of 1 kHz. Assuming you have already loaded the file, you would typically create a time vector 't' based on the length of the signal 'x' and the sampling frequency 'fs'. Once the time vector is established, you can then use the plot function to visually represent the signal in the time domain. Here is an example of MATLAB code that accomplishes this:
load('SigQ1.mat');
fs = 1000;
t = (0:length(x)-1)/fs;
plot(t, x);
xlabel('Time (seconds)');
ylabel('Signal amplitude');
title('Signal x(t) vs. t');
This code will generate a plot showing the variation of signal amplitude over time.