Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!r35g2000prm.googlegroups.com!not-for-mail
From: heiko_marx@hotmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to add a minor grid in a graph in matlab
Date: Thu, 4 Sep 2008 06:03:40 -0700 (PDT)
Organization: http://groups.google.com
Lines: 30
Message-ID: <304c3f5e-3648-4cfc-9801-ed494adf54ad@r35g2000prm.googlegroups.com>
References: <10140877.1220443530571.JavaMail.jakarta@nitrogen.mathforum.org> 
NNTP-Posting-Host: 87.139.31.42
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1220533420 9677 127.0.0.1 (4 Sep 2008 13:03:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 4 Sep 2008 13:03:40 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r35g2000prm.googlegroups.com; posting-host=87.139.31.42; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.1) 
X-HTTP-Via: 1.1 tux.sinus:3128 (Squid/2.2.STABLE5)
Xref: news.mathworks.com comp.soft-sys.matlab:488570



On 3 Sep., 18:36, Walter Roberson <rober...@hushmail.com> wrote:
> stellakr08 wrote:
> > Hello I want to add minor grid in matlab but with the step i want and i dont
> > know the command. For example my ticks is from 0 to 400 and the step is 50 so
> > the grid start with a step of 50 but i would like to have minor grid with a step
> > of 25...how can i do that...Can someone inform me please?
>
> You can use
>
> grid minor
>
> to turn on the minor grid, but Matlab does not supply any axes property to
> allow you to control the spacing explicitly: it always automatically determines
> the spacing it will use for the minor grid lines.
>
> There might perhaps be a Matlab File Exchange (FEX) contribution that would
> assist in this?
>
> --
> Q = quotation(rand);
> if isempty(Q); error('Quotation server filesystem problems')
> else sprintf('%s',Q), end

Hi.

Another way might be to set the major tick to the minor tick positions
you want, to have a controllable tick, and label only the major
ticks.

Heiko