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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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,:), ‘-‘)”.