Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Matlab program for advice, compiled a general displacement function, but useless. The program is as follows, please ask God for advice.
Matlab program for advice, compiled a general displacement function, but useless. The program is as follows, please ask God for advice.
The general idea of the landlord is correct.

First: the shifting procedure is correct.

Second, the error lies in calling y=seqshift(x, n, 3) to return quantity selection, and calling stem(n, x) to select wrong horizontal and vertical scalars.

Revise as follows:

Initial sequence of% allocation

n = 0:9;

x 1 =);

Title ('x (n)');

% painting shift sequence

);

Title ('x (n-3)');

If the internet speed is not strong, the picture is not sticky. Run by yourself.

Please contact qq8 1446867 1 for details.