Surface under the curve
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mahi Nazir
am 23 Mär. 2015
Kommentiert: Star Strider
am 24 Mär. 2015
I have 3 vectors x,y,z such that function plot3 plots the attached graph. I need to fit a surface such that I get somewhat second attached graph.
I have tried surf function but I don't get the results I want. Kindly help
0 Kommentare
Akzeptierte Antwort
Star Strider
am 23 Mär. 2015
This looks something like what you want:
x = [0:10 10];
y = [0:10 10];
z= [0 6 5 8 7 7 8 9 7 5 6 0];
figure(1)
patch(x, y, z, 'g')
grid on
view([-30 30])
producing:
2 Kommentare
Weitere Antworten (1)
Konstantinos Sofos
am 23 Mär. 2015
2 Kommentare
Konstantinos Sofos
am 23 Mär. 2015
Bearbeitet: Konstantinos Sofos
am 23 Mär. 2015
Hi,
Your x,y are identical, so your data are collinear. It doesn't make sense and this is not a 3D problem but a 2D
"In statistics, multicollinearity (also collinearity) is a phenomenon in which two or more predictor variables in a multiple regression model are highly correlated, meaning that one can be linearly predicted from the others with a non-trivial degree of accuracy."
Siehe auch
Kategorien
Mehr zu Interpolation 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!