Thread Subject: How to use grid option with pcolor

Subject: How to use grid option with pcolor

From: Anupam Jha

Date: 11 Nov, 2009 12:28:04

Message: 1 of 2

Dear all

I generated an image of 100*100 matrix by using 'pcolor'. Now I want grid lines (X as well as Y-axis) at some chosen position like 1,6,11,16,21........
and the problem is eithr it's giving grid lines everywhere or no where after using 'shading flat'.

can you tell me how can I get grid lines at desired X and Y axis (say at 20 positions instead of all 100).

thanking you

Subject: How to use grid option with pcolor

From: joe

Date: 18 Nov, 2009 16:26:19

Message: 2 of 2

"Anupam Jha" <anupam@mbu.iisc.ernet.in> wrote in message <hdeakk$9jl$1@fred.mathworks.com>...
> Dear all
>
> I generated an image of 100*100 matrix by using 'pcolor'. Now I want grid lines (X as well as Y-axis) at some chosen position like 1,6,11,16,21........
> and the problem is eithr it's giving grid lines everywhere or no where after using 'shading flat'.
>
> can you tell me how can I get grid lines at desired X and Y axis (say at 20 positions instead of all 100).
>
> thanking you

Hi

type help grid ....
you can use "set" to your grid..

thanks

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com