How to use a handle to define a piecewise binary function

1 次查看(过去 30 天)
How to use a handle to define a piecewise binary function that can express the definition of the following expression
1.PNG
The code is as follows
function zfunction=name(q,z)
if q=0;
zfunction=(n0^(1/2)*cosh(m0*z));
else
zfunction=(nq^(1/2)*cos(mq*z));
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

产品


版本

R2014a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by