Effacer les filtres
Effacer les filtres

Is possible to use clabel with fcontour?

3 vues (au cours des 30 derniers jours)
Mechrod
Mechrod le 6 Mar 2017
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 commentaires
Alistair Nieuwoudt
Alistair Nieuwoudt le 26 Mar 2017
I would also like to know this.
Arun Kumar Kantheti
Arun Kumar Kantheti le 25 Fév 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')

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by