필터 지우기
필터 지우기

Plotting 3D staggered point grid

조회 수: 8 (최근 30일)
William Black
William Black 2020년 1월 25일
답변: Image Analyst 2020년 1월 26일
I'm kind of new to Matlab,
I'm attempting to plot a 3D point grid that is staggered but am having problems understanding how to start.
By 'staggered' I mean a scheme that looks like as shown in the attached pdf. The the spacing between any two adjacent points to be the same...but obviously, this pattern to be repeated in a 3D rendering with variables for point spacing and length for the xyz repetition. The lines in the given illustration are only for 3D reference, they would not be plotted. The RED point is colored here for reference and is located in the center of the cube of outer points.

답변 (1개)

Image Analyst
Image Analyst 2020년 1월 26일
Use plot3() to plot the 8 corner points, and the center red point.
plot3(xCorners, yCorners, 'k.', 'MarkerSize', 25);
hold on;
plot3(xCenter, yCenter, 'r.', 'MarkerSize', 25);

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by