필터 지우기
필터 지우기

How to plotone single 3D vector in MATLAB

조회 수: 3 (최근 30일)
Anu Saxena
Anu Saxena 2018년 8월 23일
댓글: Anu Saxena 2018년 8월 24일
How to plot one single vector in MATLAB
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2018년 8월 23일
Anu - you may need to provide some context. Do you just have one vector? What are its dimensions? Have you looked at plot3?
Anu Saxena
Anu Saxena 2018년 8월 24일
Hi Geoff, thanks for the response. I have plotted a tangent plane to a surface. Using plot3 command highlighted the point on the surface. Now I want to be able to plot the normal vector at the point. Thanks.

댓글을 달려면 로그인하십시오.

채택된 답변

Pierre845
Pierre845 2018년 8월 24일
A 3D vector has got 3 coordinates for Point 1, and 3 coordinates for Point 2. Point1(x1,y1,z1) Point2(x2,y2,z2)
Take X = [x1 x2]; Y = [y1 y2]; Z = [z1 z2]
Doing Plot3(X,Y,Z) will plot a 3D vector.
  댓글 수: 1
Anu Saxena
Anu Saxena 2018년 8월 24일
Hi Thanks but the method gives an error.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by