HOW CAN I PLOT THE FOLLOWING POINTS USING SURFACE PLOT?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
RAJKUMAR
am 4 Okt. 2013
Kommentiert: RAJKUMAR
am 5 Okt. 2013
(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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 4 Okt. 2013
Bearbeitet: Azzi Abdelmalek
am 4 Okt. 2013
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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!