Borrar filtros
Borrar filtros

Is possible to use clabel with fcontour?

3 visualizaciones (últimos 30 días)
Mechrod
Mechrod el 6 de Mzo. de 2017
Comentada: Arun Kumar Kantheti el 25 de Feb. de 2022
Hi. I'm trying to use clabel with the fcontour plot. I had read several examples using contour, contourf and others, but none with fcountour. Is it possible to label the contours of fcontour? Here is part of the code.
figure('Name','Solution');
subplot(2,2,[1 2]);
clabel([],8);
fc = fcontour(T,[-0.05 0.02 -0.03 0.03],'fill','off','LevelList',[100 200 400 600....
800 1000 1200 1400 1600],'MeshDensity',150); grid on;
colorbar; title('Vista Topo'); xlabel('x'); ylabel('y');
I use this, no error appears, but there is no labels on the contours. Thanks in advance.
  2 comentarios
Alistair Nieuwoudt
Alistair Nieuwoudt el 26 de Mzo. de 2017
I would also like to know this.
Arun Kumar Kantheti
Arun Kumar Kantheti el 25 de Feb. de 2022
For the same function T, first use fcontour() to get the X, Y, Z values as below:
figure(1)
h = fcontour(T, range);
Then use the contour() to plot the contour values in another figure window:
figure(2)
contour(h.XData, h.YData, h.ZData, 'ShowText', 'on')

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by