Filter löschen
Filter löschen

Is possible to use clabel with fcontour?

2 Ansichten (letzte 30 Tage)
Mechrod
Mechrod am 6 Mär. 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 Kommentare
Alistair Nieuwoudt
Alistair Nieuwoudt am 26 Mär. 2017
I would also like to know this.
Arun Kumar Kantheti
Arun Kumar Kantheti am 25 Feb. 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')

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by