回覆列表
  • 1 # lanfengz3

    x=[20 20 20 20 20 20 20;21 21 21 21 21 21 21];

    y=[1 2 3 4 5 6 7;3 4 5 6 7 8 9];

    z=[2 3 4 5 6 7 8;4 5 6 7 8 2 3];

    plot3(x.",y.",z.","-b*","LineWidth",1.5);hold on

    mesh(x,y,z,"LineStyle","-."),colormap([1,0,0]),grid on,alpha(.3);

    xlabel("X"),ylabel("Y"),zlabel("Z");

    hold off

    如果對線寬要求不高,最為簡單的是下面程式碼:

    x=[20 20 20 20 20 20 20;21 21 21 21 21 21 21];

    y=[1 2 3 4 5 6 7;3 4 5 6 7 8 9];

    z=[2 3 4 5 6 7 8;4 5 6 7 8 2 3];

    plot3(x,y,z,"-.r",x.",y.",z.","-b*");

    grid on

    xlabel("X"),ylabel("Y"),zlabel("Z");

  • 中秋節和大豐收的關聯?
  • 暗黑2單機版有幾個隱藏任務?