Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 3D 空间中可视化标量函数 f(x,y,z),甚至在高维空间中可视化 f(x_1, ..., x_n)。例如,我想绘制 f(x,y,z),其中 0.5 <= x <= 1.6;280 <= y <= 330; -2.06 <= z <= 2.06;
f(x,y,z) = x^2 + y^2 + z^2 +3*x*z- y*z -4*y*x
它仍然有点不清楚你想要完成什么。这是你想要做的吗?:
x1=0.5:.01:1.6; x2=280:0.453:330; x3=-2.06:.0373:2.06; V = x1.^2+x2.^2+x3.^2+3.*x1.*x3-x2.*x3-4.*x2.*x1; subplot(3,1,1) plot(V,x1) subplot(3,1,2) plot(V,x2) subplot(3,1,3) plot(V,x3)