logticks
版本 1.0.0.0 (2.2 KB) 作者:
Richie Cotton
Calculates tick marks at appropriate points for log-scale plots.
The default behaviour of MATLAB for log scale plots is to give tick marks only at powers of 10. Where the data varies by only a factor of less than 10000, there aren't enough tick marks to be useful. LOGTICKS calculates tick marks at k*10^j, where k can be in {1,2,5}, {1,2}, or simply {1} over a requested range.
The output is given as a structure with two fields: a vector of tick locations, and a cell array of labels for the ticks.
Please see the picture for an example of its use.
引用格式
Richie Cotton (2025). logticks (https://www.mathworks.com/matlabcentral/fileexchange/11563-logticks), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Log Plots >
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Limits, Ticks, and Grids > Grid Lines, Tick Values, and Labels >
在 Help Center 和 MATLAB Answers 中查找有关 Log Plots 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |