How can i plot 3d scatter and equation plot in single figure?
Afficher commentaires plus anciens
I am generating a 3d scatter plot and 3d surface in seperate figure using following code.
P=[4500 4550 5000 9050 14300 6000 7000 3000 13600 7500 4000 6400 8500 8800 6600 21300 8630 3750];
H=[233.18 211.67 248.18 527.46 486.5 321.81 434.21 153.81 375.9 439 190 273.19 236.2 276.89 299.81 347.25 217.8 427];
C=[255.17 263.23 256.93 212.94 183.08 259.00 250.04 334.08 205.00 255.18 317.29 281.44 256.00 223.07 275.02 214.67 250.32 267.61];
scatter3(P,H,C);

and
P=1000:500:25000;
H=50:15:800;
[P,H]=meshgrid(P,H);
C=exp(8.0467).*P.^(-0.1920).*H.^(-0.1444);
mesh(H,P,C);

how can i merge these to graph together. this is not about curve fitting.
Thank you in advance.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
