Plotting 3D staggered point grid

15 ビュー (過去 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 Center および File ExchangeSurface 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