필터 지우기
필터 지우기

how to use plot3 for x,y,z, while plotting.. it shows nothing

조회 수: 2 (최근 30일)
Veera Kanmani
Veera Kanmani 2018년 3월 9일
댓글: Veera Kanmani 2018년 3월 9일
i have to use plot3 function to plot x,y,z
x=[1]
y=[2]
z=[3]
plot3(x,y,z)
while i plot this , nothing appears on the plot.. how to plot this in 3d

채택된 답변

KSSV
KSSV 2018년 3월 9일
plot3(x,y,z,'.r')
As you have single data..you need to use a marker.
  댓글 수: 3
Stephen23
Stephen23 2018년 3월 9일
@Veera Kanmani: you cannot plot points separately and then connect them with a line afterwards. You will need to plot all of the points at once. You can do this trivially by putting all of the points into matrices. See the plot documentation for examples of this.
Veera Kanmani
Veera Kanmani 2018년 3월 9일
@Stephen Cobeldick: thank you.. i will look into it

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by