Is possible to use clabel with fcontour?

3 次查看(过去 30 天)
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 个评论
Arun Kumar Kantheti
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')

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by