[go: up one dir, main page]

Menu

[r414]: / coco / tests / h3eval.m  Maximize  Restore  History

Download this file

14 lines (9 with data), 242 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function [ y ] = h3eval( A, B, C, D, x )
%H3EVAL Evaluate Hermite polynomial at X.
rows = size(A,1);
cols = numel(x);
or = ones(rows,1);
oc = ones(1,cols);
x = x(:)';
x = x(or,:);
y = A(:,oc) + x.*(B(:,oc) + x.*(C(:,oc) + x.*D(:,oc)));