Borrar filtros
Borrar filtros

how to plot a distribution curve

2 visualizaciones (últimos 30 días)
baran
baran el 15 de Jul. de 2018
Respondida: Aquatris el 15 de Jul. de 2018
hi, I want to plot a chart like attached figure with Matlab, it is for steady state head distribution curve, can anyone help me? thanks
  1 comentario
dpb
dpb el 15 de Jul. de 2018
Probably
doc contour
can help.
You might attach the data as .mat file; somebody may take time to see how to use it...

Iniciar sesión para comentar.

Respuestas (1)

Aquatris
Aquatris el 15 de Jul. de 2018
Here is a sample code with made up x, y, and z;
x = 0:10:100;
y = 0:10:200;
[X,Y] = meshgrid(x,y);
Z = X.^2+Y.^2;
[~,h] = contour(X,Y,Z);
set(h,'ShowText','on')
As suggested in the comments, you can look into the documentation for 'contour' function to learn more and be able to obtain the graph you want.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by