MATLAB中switch结构实现函数f(x,y)=[sinx y==1;cosx y==2;sinx.*cosx ot