Draw a line and a plane at fixed ponit in 2d and 3d plot

2 ビュー (過去 30 日間)
joy
joy 2012 年 11 月 21 日
Hello I have a 2d plot
where at vertical axis(Y) at a particular point say 0.0039 i want to draw a line parallel to X axis...
and in case of 3d plot I have to draw plane along vertical z axis at same point...
is matlab has any related function to do so....
actually what I want to do is http://s8.postimage.org/nyonm4hs5/fig.jpg in this figure i need to draw a line at 3.9*10-3 horizontally ,how to do this? regards
  1 件のコメント
Jan
Jan 2012 年 11 月 21 日
In 3D you need three coordinates to determine a plane. Does "plane along the Z axis" mean "perpendiculare to Z axis"? You cannot orient a plane along a line in 3D.

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

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 21 日
編集済み: Azzi Abdelmalek 2012 年 11 月 22 日
x=0.0039
plot([-10 10],[x x])
  5 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 22 日
編集済み: Azzi Abdelmalek 2012 年 11 月 22 日
Ok Simon
x=0.0039
plot([[-10 10],[x x])
I was confused by "vertical axis(Y)"
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 22 日
Or use
y=0.0039
xlim=get(gca,'xlim')
plot(xlim,[y y])

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


Jan
Jan 2012 年 11 月 21 日
How do you want to display the plane? An opaque SURF object will most likely hide all interesting details of the plot. What about a semi-transparent SURF object with an opaque border? Or a disc? Or a bunch of points?
  1 件のコメント
joy
joy 2012 年 11 月 21 日
I have prob of occurrence on z...a nd my data are along my x and y axis...I want to draw a plane or level at 0.0039 //there might be some point above this prob of occurrence and some shall be below of it..so that I could assume.......

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

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by