Effacer les filtres
Effacer les filtres

Code for a sequence of numbers

1 vue (au cours des 30 derniers jours)
Bleron Kroni
Bleron Kroni le 1 Avr 2020
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

Réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by