Code for a sequence of numbers
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!