Code covered by the BSD License  

Highlights from
logticks

4.0

4.0 | 2 ratings Rate this file 2 Downloads (last 30 days) File Size: 2.22 KB File ID: #11563
image thumbnail

logticks

by Richie Cotton

 

28 Jun 2006 (Updated 28 Jun 2006)

Calculates tick marks at appropriate points for log-scale plots.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
01 Jun 2007 Klemens Hocke

thank you, it is very useful

program can be easily adjusted towards own wishes. The 'basic error check' did not work and I deactivated it

07 Feb 2009 Catalin Eberhardt

Nice utility, thanks for that. I only wish it had an option to display the values on the axis in a superscript format

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
log ticks plot axes Richie Cotton 22 Oct 2008 08:31:16
log ticks plot axes Padma 04 Aug 2011 01:15:33

Contact us at files@mathworks.com