How can I plot a 3D mesh plot for the following data?

 Respuesta aceptada

doc meshgrid
doc mesh

6 comentarios

I tried, but I'm not getting the graph.
P.S. I'm an novice, could you please elaborateCapture.JPG
Upload your data as .txt file or .mat file instead of posting pictures.
x=[5.51E+03,2.30E+04,3.15E+04,6.24E+04,7.58E+04,1.42E+05,2.04E+05,2.65E+05]
y=[2.34E+02,1.48E+02,1.09E+02,7.64E+01,5.39E+01,4.39E+01,3.43E+01,3.31E+01]
z=[35.99545455,49.40454545,53.38181818,48.29545455,51.16590909,48.43863636,34.29090909,47.72727273]
[X,Y,Z]=meshgrid(x,y,z);
mesh(X,Y,Z)
Resistance (CC)
4.81E+03
1.76E+04
2.79E+04
5.90E+04
1.04E+05
1.30E+05
1.49E+05
3.67E+05
Coulombic efficieny
2.34E+02
1.48E+02
1.09E+02
7.64E+01
5.39E+01
4.39E+01
3.43E+01
3.31E+01
Voltage Efficiency
35.99545455
49.40454545
53.38181818
48.29545455
51.16590909
48.43863636
34.29090909
47.72727273
[X,Y]=meshgrid(x,y);
mesh(X,Y,repmat(z,size(X,1),1))
Thanks!, this seems to work

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 29 de En. de 2019

Comentada:

el 29 de En. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by