How to create piece wise from matrix?
显示 更早的评论

How to create piece wise from matrix? Left side for x, right side for y
回答(1 个)
Star Strider
2021-3-20
Start with this approach:
f = @(x) (x>622).*4 + ((x>=621) & (x<622)).*3 + ...
then continue with the othher elements.
类别
在 帮助中心 和 File Exchange 中查找有关 Language Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!