PLOT SYMBOLS/MARKER FOR TWO SET OF ARRAYS IN A CONTOUR

Hi,
I have two set of arrays:
xi = linspace(0, 100, 10);
L =linspace(0, 0.0001, 10);
and a matrix: intul
and I have plotted a contour with:
contourf(L, xi, intul, [min(min(intul)):0.3e-11:max(max(intul))]);
How do I plot a marker/symbol at each of those coordinates (i.e., the list of the pairs of (xi,L)) in my contour plot.

 Respuesta aceptada

Use plot to add markers -
X = linspace(-2*pi,2*pi,10);
Y = linspace(0,4*pi,10);
Z = sin(X) + cos(Y).';
contourf(X,Y,Z)
hold on
plot(X, Y, 'r+', 'LineWidth', 2, 'MarkerSize', 10)

2 comentarios

Thank you for your answer. I did this and I got this results but this wasn't I expected.
I am sorry, I don't understand - You didn't expect what?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos

Versión

R2023b

Etiquetas

Preguntada:

el 12 de En. de 2024

Comentada:

el 12 de En. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by