How to create piece wise from matrix?
Show older comments

How to create piece wise from matrix? Left side for x, right side for y
Answers (1)
Star Strider
on 20 Mar 2021
Start with this approach:
f = @(x) (x>622).*4 + ((x>=621) & (x<622)).*3 + ...
then continue with the othher elements.
Categories
Find more on Language Fundamentals 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!