3D surface plotting

조회 수: 1 (최근 30일)
F R
F R 2017년 6월 26일
답변: KSSV 2017년 6월 26일
Is it possible to plot a surface out of 3 vectors? r= [3 4 5 9 7 8 10 15 14] p= [4 1 7 8 21 5 6 10 7] v= 2*r.^2+2*p.^2; surf and mesh works for the case when v is a matrix not a vector!

답변 (1개)

KSSV
KSSV 2017년 6월 26일
r= [3 4 5 9 7 8 10 15 14];
p= [4 1 7 8 21 5 6 10 7] ;
[R,P]=meshgrid(r,p);
V= 2*R.^2+2*P.^2 ;
surf(R,P,V)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by