HOW CAN I PLOT THE FOLLOWING POINTS USING SURFACE PLOT?
조회 수: 2 (최근 30일)
이전 댓글 표시
(0, 0, 0.3), (1/4, 0, 1.1), (1/2, 0, 2), (3/4, 0, 1.5), (1, 0, 2); (0, 1/3, 0.3), (1/4, 1/3, 2), (1/2, 1/3, 1.8), (3/4, 1/3, 1.5), (1, 1/3, 2); (0, 2/3, 3), (1/4, 2/3, 2), (1/2, 2/3, 3), (3/4, 2/3, 3.3), (1, 2/3, 3); (0, 1, 2), (1/4, 1, 3), (1/2, 1, 2.5), (3/4, 1, 4), (1, 1, 4.5).
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 10월 4일
편집: Azzi Abdelmalek
2013년 10월 4일
a={[0, 0, 0.3], [1/4, 0, 1.1], [1/2, 0, 2], [3/4, 0, 1.5], [1, 0, 2]...
[0, 1/3, 0.3], [1/4, 1/3, 2], [1/2, 1/3, 1.8], [3/4, 1/3, 1.5], [1, 1/3, 2]...
[0, 2/3, 3], [1/4, 2/3, 2], [1/2, 2/3, 3], [3/4, 2/3, 3.3], [1, 2/3, 3]...
[0, 1, 2], [1/4, 1, 3], [1/2, 1, 2.5], [3/4, 1, 4], [1, 1, 4.5]}
a=cell2mat(a')
x=reshape(a(:,1),5,[])
y=reshape(a(:,2),5,[])
z=reshape(a(:,3),5,[])
mesh(x,y,z)
%or
surf(x,y,z)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!