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.
0 件のコメント
回答 (1 件)
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);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!