matlab中 如何直接用符号函数来进行if-else的运算?

2025-03-04 08:29:05
推荐回答(1个)
回答1:

试试看:
clear all;clc;
z=@(x,y)(x.^2+y).*(x+y<=0)+(x+y.^2).*(x+y>0);
ezsurf(z);