我想在我的绘图中包含一个2D图形,并为该图像计算了2个正交基向量(因为视角很复杂)。我猜想在这些向量之间构造一个(矩形)表面是最简单的方法吗?我该怎么办?
这是我的示例代码
%e1n,e2n calculated basis vectors, e3n the diagonal for the rectangular
%shape
e1n=Dtot*e1
e2n=Dtot*e2
e3n=e1n+e2n
img = imread('galileo3.png'); % Load a sample image
%origin of the surface plot
or=[0 0 0];
xImage = [or(1) or(1)+e1n(1);or(1)+e2n(1) or(1)+e3n(1)]; % The x data for the image corners
yImage = [or(2) or(2)+e1n(2);or(2)+e2n(2) or(2)+e3n(2)]; % The y data for the image corners
zImage = [or(3) or(3)+e1n(3);or(3)+e2n(3) or(3)+e3n(3)]; % The z data for the image corners
surf(xImage,yImage,zImage,... % Plot the sorface
'CData',img,...
'FaceColor','texturemap');
我认为我在填充xImage,yImage,zImage组件方面犯了一个错误?