Code for a sequence of numbers
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to write a code for a sequence of number.
The sequence is like this:
y = x*u so i find u if i make the divison between u=y/x.
The next sequence :
y(1) = x(0)*u(1) + x(1)*u(0) and i want to find u(1) = (y(1) - x(1)*u(0))) / x(0)
The next one
u(2) = (y(2)-u(1)*x(1)-u(0)*x(2)) / x(0)
The inputs are y and u
Y = input('Enter y: '); %input vector Y and U
U = input('Enter u: ') ;
LenY = length(Y); %defining their lenghts
LenU = length(U);
x = zeros(1,LenY-LenH+1); %defing vector y of zeroes and of size
% lenth of Y - length of U
t = zeros(1,LenU); % definign a vector t of same length as U
...
Thats not the convolution or deconvolution, this 2 codes uses the long polynomial multipilikation and division
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!