applying two 2d plots to a 3d plane(the plots are made up of multiple lines)
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I am trying to apply both of these plots pictured below to a 3d mesh model(i.e. one will take up x side and the other will take up the y side while both of their Y values will applied to Z in the 3d mesh), the issue I am encountering is that these plots are made up of multiple plots and aside from getting each value from each line and checking the counterpart I cannot think of any soloutions. I was hoping to be able to implement it in an equation. Any suggestions or hints in the right direction would be helpful, thanks
PS, here is code 1st figure
y1 = a1.*x1.^2 + b1.*x1 + c1;
y2 = a2.*x2.^2 + b2.*x2 + c2;
figure
plot(x1, y1,x2, y2)
hold on
plot([0 XStartIntercept],[0 0],[XEndIntercept dimensions],[0 0])
hold off;
and second figure
j1 = d1.*Yx1.^2 + e1.*Yx1 + f1;
j2 = d2.*Yx2.^2 + e2.*Yx2 + f2;
figure
plot(Yx1, j1,Yx2, j2)
hold on
plot([0 YXStartIntercept],[0 0],[YXEndIntercept dimensions],[0 0])
hold off;

댓글 수: 1
Stefan Raab
2015년 10월 26일
Maybe the plot3 function will help you. The inputs are the vectors x,y,z. So you can plot it as before, just set the corresponding other vector (x,y) to zero.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!