MATLAB如何下做二元函数的曲线 比如f(x,y)=x^2-y+1 f(x,y)=x^2-cosy+sinx

2025-01-21 12:06:03
推荐回答(1个)
回答1:

>> x=linspace(-10,10,100);
>> y=linspace(-10,10,100);
>> z1=x.^2-y+1;
>> z2=x.^2-cos(y)+sin(x);
>> plot3(x,y,z1)
>> plot3(x,y,z2)