Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > H > hankel (Matlab function)

hankel (Matlab function)

Hankel matrix

Matlab/Scilab equivalent

Matlab Scilab
hankel

Particular cases

The main difference between Scilab and Matlab function is that they do not use the same input values to build an Hankel matrix. If in Matlab, you just have to give a column vector (and eventually a row vector), Scilab function requires the size of the Hankel matrix to build and a covariance sequence vector for this matrix. (See syntax below)

Examples

Matlab Scilab
H1 = hankel(C1)
                        H2 = hankel(C2, R2)
function H=hankel(C, R)
                        [lhs, rhs] = argn(0);
                        if rhs == 1 then
                        N = size(C, "*");
                        COV = [matrix(C, 1, -1), zeros(1, N)];
                        H = hank(N, N, COV);
                        else
                        M = size(C, "*");
                        N = size(R, "*");
                        COV = [matrix(C, 1, -1), matrix(R(2:$), 1, -1)];
                        H = hank(M, N, COV);
                        end
                        endfunction
Report an issue
<< H H help (Matlab function) >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:35 CEST 2014