Question
Write MATLAB code which shifts the signal adds the overhanging part to signal start. After four such repetitions, we sum the signals.
For example if we have this signal: {111,222,333,444}, first we shift it by 12.5 ms and the shifted segment are add to the beginning {444,111,222,333} then {333,444,111,222} and so on, the final signal is equal to the summation of all signals.
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
load ABRMLR5Hzsignal=ABR;
%shift by 64 points
shifted1=[signal(end-63:end) ; signal(1:end-64)];
shifted2=[shifted1(end-63:end) ; shifted1(1:end-64)];
shifted3=[shifted2(end-63:end) ; shifted2(1:end-64)];
shifted4=[shifted3(end-63:end) ; shifted3(1:end-64)];...