matlab中怎么对下面的程序进行二维插值并画出三维视图呢?
[x,y]=meshgrid(-2:1:2);t=2;Z=[(sin(t))^3t^2sin(t)cos(t)(sin(t))^2;t^2sin(t)(cos(t))^4...
[x,y]=meshgrid(-2:1:2);
t=2;
Z=[(sin(t))^3 t^2 sin(t) cos(t) (sin(t))^2;t^2 sin(t) (cos(t))^4 cos(t) (sin(t))^2;t sin(t) cos(t) t^2 (sin(t))^2;sin(t) (cos(t))^3 t^2 (sin(t))^2 cos(t);(cos(t))^3 sin(t) t^2 (sin(t))^2 cos(t)];
surf(x,y,Z); 展开
t=2;
Z=[(sin(t))^3 t^2 sin(t) cos(t) (sin(t))^2;t^2 sin(t) (cos(t))^4 cos(t) (sin(t))^2;t sin(t) cos(t) t^2 (sin(t))^2;sin(t) (cos(t))^3 t^2 (sin(t))^2 cos(t);(cos(t))^3 sin(t) t^2 (sin(t))^2 cos(t)];
surf(x,y,Z); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询