I’ve got few points and I wanted to draw them, and join them with line, I tried:
plot3(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4)
and so on up to about 100, but Im just getting plot with many points, how to join them with line?
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.
What you’re doing right now is telling MATLAB to plot each point separately. What you should do is to store all your points as a vector and then use
plot3. E.g.,This way you get a line joining your points.