all values on the surf chart
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I create a graph of surf (X, Y, Z, C), when I click on the graph, I will get X, Y, Z. Is there any way to get C to display ?
1 Kommentar
Antworten (1)
Adam Danz
am 22 Nov. 2019
Bearbeitet: Adam Danz
am 22 Nov. 2019
Here's a demo
[X,Y] = meshgrid(1:0.5:10,1:20);
Z = sin(X) + cos(Y);
s = surf(X,Y,Z);
row = dataTipTextRow('C',s.CData); % define new row to datatip
s.DataTipTemplate.DataTipRows(end+1) = row; % add new row to datatip
For more info:
0 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!