HOW CAN I PLOT THE FOLLOWING POINTS USING SURFACE PLOT?
1 view (last 30 days)
Show older comments
(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 Comments
Accepted Answer
Azzi Abdelmalek
on 4 Oct 2013
Edited: Azzi Abdelmalek
on 4 Oct 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)
More Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!