Question: 2 . Calculate the shift ( i . e . breathing motion ) between the first 1 - dimensional signal ( which we call the

2. Calculate the shift (i.e. breathing motion) between the first 1-dimensional signal (which we call the reference signal) and all subsequent ones. To calculate the shift between any 1dimensional signal and the reference signal, you should perform an exhaustive search of all possible shifts (from -10 to 10 in steps of 1) and return the shift that results in the best match between the reference signal and the shifted signal. The best match will be defined as the
1
Sianal 1D profile
Figure 1: 1-dimensional signal acquired at two different phases of the breathing cycle (endinspiration and end-expiration).
one with the smallest mean squared error \((M S E)\). The MSE between two signals (\( s 1\) and \( s 2\)) is defined as follows:
\[
M S E=\frac{1}{\max -\min +1}\sum_{n=\min }^{\max }(s 1(n)-s 2(n))^{2}
\]
where \(\min \) and \(\max \) represent an area of interest in the 1-dimensional signal which contains the liver/lung interface. In our case, min and max should be set to 20 and 80. This enables the beginning and end of the signal (which may contain signal from other organs) to be ignored.
Hint: Read the documentation of the built-in MATLAB function circshift which can be used to apply a known shift to a 1-dimensional signal.
2 . Calculate the shift ( i . e . breathing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!