[英]How to plot a 3D figure in matlab based on a function like f(x,y,z)=0?
How to plot a 3D figure in MATLAB
based on a function like f(x,y,z)=0
? 如何基于
f(x,y,z)=0
类的函数在MATLAB
绘制3D图形? And this complicated function can not be written as z = f(x,y)
. 而且这个复杂的函数不能写成
z = f(x,y)
。
f(x,y,z)=sum(a.*exp(sv(:,1)-x).^2+sv(:,2)-y).^2+sv(:,3)-z).^2)-b=0
where a is a known vector, sv is a known matrix, b is a known value. 其中a是已知向量,sv是已知矩阵,b是已知值。 x,y,z are three variables.
x,y,z是三个变量。 How to draw this surface in 3D way in matlab?
如何在Matlab中以3D方式绘制此表面?
I just solve this question by this tool from the Matlab File Exchange: 我只是通过Matlab文件交换中的此工具解决了这个问题:
Ezimplot3: implicit 3D functions plotter Ezimplot3:隐式3D函数绘图仪
your function only contains 1D vectors( I am assuming they are of equal lengths), if summed it will give you a constant; 您的函数仅包含一维向量(我假设它们的长度相等),如果相加,它将为您提供一个常数; therefore, there is really nothing to plot.
因此,实际上没有什么可绘制的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.