Info
此问题已关闭。 请重新打开它进行编辑或回答。
contourlines in time format
1 次查看(过去 30 天)
显示 更早的评论
how can I format my contour lines with clabel in time format like hh:mm?
0 个评论
回答(2 个)
Grzegorz Knor
2012-4-23
It may be helpful to Analyze this code:
Z = 5+abs(peaks)/10;
[C,h] = contour(interp2(Z,4));
th = clabel(C,h);
set(th,'BackgroundColor',[1 1 .6],...
'Edgecolor',[.7 .7 .7])
for k=1:length(th)
tmp = get(th(k),'String');
tmp = strrep(tmp,'.',':');
set(th(k),'String',tmp)
end
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!