Home / Expert Answers / Computer Science / in-this-we-have-a-list-of-values-from-a-signal-we-39-ve-uploaded-the-values-to-a-txt-file-where-ther-pa220

(Solved): In this we have a list of values from a signal. We've uploaded the values to a txt file where ther ...



In this we have a list of values from a signal. We've uploaded the values to a txt file where there are 2 columns: one for the time stamp and another for the signal. what I need is the know how to take a list of values with 2 columns in a .txt file and use that to create a sine wave figure in MATLAB. Below are instructions and hints of how it should be done. In your answer you can use any list of values I just need to know how to apply that list with two columns to create a plot of those values as a signal of time. Task 2: (Re)sampling the stored signal To accomplish this task: a) Load the stored signal into MATLAB by using the “load” command; use the “-ascii” option. Plot your signal as a function of time. Hint: the first column in the file is the “time stamp”; the second column is the signal. Hint: if your file also includes the header and/or comments, you need to delete them from the file before loading it. Hint: the “whos” command may be handyne channel of the oscilloscope. b) Although coming from the “Analog” Discovery module, the signal is digital, i.e., consists of samples. Re-sample the signal by discarding 9 out of 10 original samples. Plot the result as a function of time. Hint: perhaps, the simplest way to accomplish this is by using the colon notation. Remember, you need to re-sample both the signal and the time stamp for the correct representation. Hint: store the re-sampled signal as a different variable. Hint: to accentuate the non-continuous nature of the signal, use the ‘.’ option while plotting. c) Further re-sample the signal by discarding 19 out of 20 samples of the signal you obtained in b) (I.e., of the resampled version). Plot the result as a function of time. Hint: use the ‘*’ option while plotting. d) Plot all three signals on the same axes. Use different colors and the above options for the resampled signals.



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe