Hi, I have a problem with intersection between a plot3 and a plane.
I have this plot3 from three array (along three dimension), but I have to cut this plot with Y=0 plane and visualize the intersection (in a X-Z plane), thus I have to fit this curve resulting from the intersection.
Can you help me?
Thanks a lot in advance.

 採用された回答

darova
darova 2019 年 7 月 29 日

0 投票

If the curve and plane have only one intersection you can use this simple script:
% generate some data
y = linspace(0,10,30);
x = sin(y);
z = y;
% Y plane at y=3
y0 = 3;
x0 = interp1(y,x,y0);
z0 = interp1(y,z,y0);
plot3(x,y,z)
hold on
plot3(x0,y0,z0,'or')
hold off

2 件のコメント

Michele Peluzzo
Michele Peluzzo 2019 年 7 月 30 日
Thank you! It works. Thanks for your time to answer me
darova
darova 2019 年 7 月 30 日
Mai plesur! Yu velcom!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

製品

リリース

R2018b

質問済み:

2019 年 7 月 25 日

コメント済み:

2019 年 7 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by