How to make a 2D pseudocolor (pcolor) plot in triangle shapes instead of a square shape with triangle cordinates data?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have the coordinates of 8 closed triangles that intersect at the same points and third data. How to fill these triangles with third data similar to 2D pcolor figure, i.e., with colour bars ?
load('data1.mat')
plot(a1,b1)
0 Kommentare
Akzeptierte Antwort
Voss
am 13 Okt. 2022
load('data1.mat')
x = reshape(a1(1:end-1),3,[])
y = reshape(b1(1:end-1),3,[])
patch(x,y,c1)
colorbar
0 Kommentare
Weitere Antworten (1)
Bjorn Gustavsson
am 13 Okt. 2022
This sounds like a task for trisurf. Check the help and documentation to that function. If you want the pcolor rather than the surf layout, you achieve that by either setting the inputs to the z-coordinates to zero or simply by setting the view from above:
view(0,90)
HTH
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D 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!