how to solve a system of equations in matlab
1 vue (au cours des 30 derniers jours)
Jens Petit-jean le 29 Nov 2020
How do I solve this system of equations in matlab for F(-2:2) ?
f(x)= x+2 if x<=0
-x+2 if x>0
Apparently you can't use an if for this solution, but I don't really understand why either.
Thanks in advance