Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to plot set of 3d lines in a box with their end coordinates?

2 次查看(过去 30 天)
the set of data points are arranged in the way xn,yn,zn,un,vn,wn this line is not working properly. Any Suggestion!!
plot3([data1(:,1) data1(:,4)],[data1(:,2) data1(:,5)],[data1(:,3) data1(:,6)])

回答(1 个)

Chad Greene
Chad Greene 2017-8-10
Perhaps you want this?
plot3([data1(:,1) data1(:,4)]',[data1(:,2) data1(:,5)]',[data1(:,3) data1(:,6)]')
If that's not what you want, please describe the problem with more details than "is not working properly."
  2 个评论
bharat
bharat 2017-8-11
Thank you so much. It works. can you tell me how to find out the intersection points for different lines. we can find by inspection. but my data is so big it can have more intersection points.
Chad Greene
Chad Greene 2017-8-11
There are many ways to find intersection points. The best method will depend on the type of data you have and exactly what you're trying to do. I recommend starting a new question and provide a very clear description of exactly what you want to do. And provide sample data if you can.

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by