cbdate

版本 1.0.0.0 (93.6 KB) 作者: Chad Greene
colorbar date formatting.
1.2K 次下载
更新时间 2014/11/10

查看许可证

This function formats colorbar ticks as dates strings.

Syntax
cbdate
cbdate(h)
cbdate(datenums)
cbdate(datenums,dateformat)
cbdate(datestrs)
cbdate('horiz')
h = cbdate(...)

Description
cbdate converts tick marks of current colorbar to date strings.

cbdate(h) specifies a colorbar handle h on which to perform cbdate. If no handle is specified, cbdate will try to find a current colorbar.

cbdate(datenums) specifies datenums to set as tick marks.

cbdate(datenums,dateformat) specifies date formatting as described in the documentation for datestring. For example, 'mmm yyyy' will print date strings as Nov 2014.

cbdate(datestrs) specifies date strings to use as colorbar ticks.

cbdate('horiz') must be declared if the colorbar is horizontal (pre-R2014b).

h = cbdate(...) returns a colorbar handle h.

引用格式

Chad Greene (2024). cbdate (https://www.mathworks.com/matlabcentral/fileexchange/48413-cbdate), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

cbdate/html/

版本 已发布 发行说明
1.0.0.0