3D plot with specific values
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Patrik
am 24 Apr. 2023
Beantwortet: Walter Roberson
am 24 Apr. 2023
I need to create a 3D plot with specific x, y and z values.
X values are 1 2 3 4 5 6 7
Y values are 1 2 3 4 5 6 7 8 9
Z are this numbers

The problem is that I need to make plot like this

for example X = 1
Y = 1
Z = 280
or
X = 4
Y = 6
Z = 138
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 24 Apr. 2023
x = 1:7;
y = 1:9;
z = randi([0 800], length(y), length(x));
surf(x, y, z)
Except you would use your actual Z data.
0 Kommentare
Weitere Antworten (0)
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!
