00:01
In this question, we have to make sure that we save the provided measured signal in the file that is output .mat.
00:19
So, in the same directory as the matlab code before running the code.
00:25
So the, now what we'll have a look what our code will do.
00:29
So, our code will calculate the absorption rate for the 20 sinusoidal, that is signs you can say, based on the measured signal and display them in the command window.
01:41
So, this is what we have to do.
01:44
And for this, we have to write a code in matlab.
01:48
So, i'll let you see what the code is in a basic compiler.
01:57
So, for that, we'll switch to a basic compiler here.
02:01
So, we will begin writing our code by loading the measured signal from the file that is output .mat.
02:14
So, i will also write the comment associated with it.
02:18
So that i told you previously that it should the output .mat should be in the current directory.
02:26
So we'll load this measured signal from the file that is output .mat using the load function.
02:34
Now this assumes that the file output .mat is present in the current directory.
02:42
Now the parameters you will define.
02:45
So as you can see here, the parameters are defined.
02:58
Here t represents the time vector ranging from 0 .01 seconds to 0 .02 seconds with a step size of 0 .01 seconds.
03:10
Now the frequency represents the frequency vector that is ranging from 11 hertz to 30 hertz.
03:19
So now we have to construct a design matrix.
03:22
For that, we will use the statement...