在 MatLab 中绘制一个 3d 点 [英] plot a 3d point in MatLab

查看:37
本文介绍了在 MatLab 中绘制一个 3d 点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在任何坐标系中只绘制一个点:笛卡尔坐标系、圆柱坐标系或球坐标系.

I'm trying to plot just one point in any coordinate system: Cartesian, cylindrical or spherical.

我尝试了 plot3(1,1,1) 有很多值,但只是在所有值的同一位置显示一个小点!我也试过 surf(X,Y,Z) 但matlab 说:Z 必须是一个矩阵,而不是一个标量或向量.

I tried plot3(1,1,1) with many values but just shows a tiny point in the same location for all values! I tried surf(X,Y,Z) as well but matlab said: Z must be a matrix, not a scalar or vector.

推荐答案

这个怎么样?

plot3(1,1,1,'.');
grid on

您确实尝试过,但话说回来,这正是它的作用!

You did try it, but then again, that is exactly what it does!

这篇关于在 MatLab 中绘制一个 3d 点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆