Mercurial > hg > ishara
view general/numerical/scalar/quadf.m @ 42:ae596261e75f
Various fixes and development to audio handling
author | samer |
---|---|
date | Tue, 02 Dec 2014 14:51:13 +0000 |
parents | db7f4afd27c5 |
children |
line wrap: on
line source
% quadf - scalar quadratic form % % quadf :: [Size], real -> [Size]. % quadf :: [Size] -> [Size]. % % Scalar function: quadf(x,s) = -x^2/(2*s), s defaults to 1. function y=quadf(x,s), if nargin<2, y=-(x.^2)/2; else y= -(x.^2)/(2*s); end