How can I plot a 3D-plane in Matlab?

前端 未结 4 1884
你的背包
你的背包 2020-12-01 09:41

I would like to plot a plane using a vector that I calculated from 3 points where:

pointA = [0,0,0];
pointB = [-10,-20,10];
pointC = [10,20,10];

plane1 = cr         


        
4条回答
  •  天命终不由人
    2020-12-01 10:03

    Here's an easy way to plot the plane using fill3:

    points=[pointA' pointB' pointC']; % using the data given in the question
    fill3(points(1,:),points(2,:),points(3,:),'r')
    grid on
    alpha(0.3)
    

    enter image description here

提交回复
热议问题