How to use the slice command to visualize one image into two intersecting planes?

Hi, I need to visualize one image in two intersecting planes. The attached picture shows an example of what I want to do. However, it uses an equation (V = X.*exp(-X.^2-Y.^2-Z.^2);) while I want to insert my image instead.
[X,Y,Z] = meshgrid(-2:.2:2);
V = X.*exp(-X.^2-Y.^2-Z.^2);
xslice = 0;
yslice = [];
zslice = 0;
slice(X,Y,Z,V,xslice,yslice,zslice)

답변 (1개)

Walter Roberson
Walter Roberson 2022년 12월 30일
use improfile() or interp2() to get a line through a plane.

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2022년 12월 30일

답변:

2022년 12월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by