Plotting 3D staggered point grid

15 次查看(过去 30 天)
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