How to use a handle to define a piecewise binary function
1 view (last 30 days)
Show older comments
How to use a handle to define a piecewise binary function that can express the definition of the following expression
![1.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206224/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 Comments
Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!