Code for a sequence of numbers

1 次查看(过去 30 天)
Bleron Kroni
Bleron Kroni 2020-4-1
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 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by