Heaviside step function | 您所在的位置:网站首页 › matlab里面step参数怎么改 › Heaviside step function |
Open Live Script The default value of the Heaviside function at the origin is 1/2. H = heaviside(sym(0))H =12 Other common values for the Heaviside function at the origin are 0 and 1. To change the value of heaviside at the origin, use sympref to set the value of the 'HeavisideAtOrigin' preference. Store the previous parameter value returned by sympref, so that you can restore it later. oldparam = sympref('HeavisideAtOrigin',1);Check the new value of heaviside at 0. H = heaviside(sym(0))H = 1The preferences set by sympref persist throughout your current and future MATLAB® sessions. To restore the previous value of heaviside at the origin, use the value stored in oldparam. sympref('HeavisideAtOrigin',oldparam);Alternatively, you can restore the default value of 'HeavisideAtOrigin' by using the 'default' setting. sympref('HeavisideAtOrigin','default'); |
CopyRight 2018-2019 实验室设备网 版权所有 |