以八度画线
可以用plot或plot3画八度线吗?
我的意思是,用点定义一个矩阵并自动将它们成对绘制。
提前致谢。
Is possible to draw lines in octave with plot or plot3?
I mean, to define a matrix with points and plot them in pairs automatically.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,在 Octave 中画线非常容易。顺便说一句,它与 Matlab 中的相同。
当你说你有一个“带点的矩阵”时,我假设你的意思是 anx 2 矩阵。如果矩阵称为“点”,那么您只需执行“plot(points(:,1),points(:,2),'-')”。如果你有一个 2 xn 矩阵,你会做“plot(points(1,:),points(2,:),'-')”。
Yes, it's very easy to draw lines in Octave. It is, by the way, the same as in Matlab.
When you say that you have a "matrix with points" I assume you mean a n x 2 matrix. If the matrix is called "points" then you would simply do "plot(points(:,1), points(:,2), '-')". If you have a 2 x n matrix you would do "plot(points(1,:), points(2,:), '-')".