From: adam Smith on
I am trying to generate a topography plot of a surface. The surface consists of 4 squares where the elevation within each square is different. I want to visualize these elevations using a colormap.

Any ideas???
From: Steven Lord on

"adam Smith" <f_52(a)live.com> wrote in message
news:i1mu4r$io7$1(a)fred.mathworks.com...
>I am trying to generate a topography plot of a surface. The surface
>consists of 4 squares where the elevation within each square is different.
>I want to visualize these elevations using a colormap.
> Any ideas???

HELP SURF?

If that doesn't suit your needs, then explain in more detail. Don't worry
about being too verbose unless you find you're writing a dissertation in
your post; bits are cheap.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


From: adam Smith on
"Steven Lord" <slord(a)mathworks.com> wrote in message <i1n25j$6su$1(a)fred.mathworks.com>...
>
> "adam Smith" <f_52(a)live.com> wrote in message
> news:i1mu4r$io7$1(a)fred.mathworks.com...
> >I am trying to generate a topography plot of a surface. The surface
> >consists of 4 squares where the elevation within each square is different.
> >I want to visualize these elevations using a colormap.
> > Any ideas???
>
> HELP SURF?
>
> If that doesn't suit your needs, then explain in more detail. Don't worry
> about being too verbose unless you find you're writing a dissertation in
> your post; bits are cheap.
>
> --
> Steve Lord
> slord(a)mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com
>

Thank you for your message. Well what I really need is the following. I will try to be as detailed as possible. I need to define the coordinates of 4 squares which are stacked along side each other; 2 in the horizontal direction and 2 in vertical direction or if you will 2 x 2 squares which are adjacent to each other.

The height of the squares in z-direction is the same for all squares. However I want to visualize that a separate type of foundation is utilized within each square, which you could associate with different granular sizes.

This I would want to visualize with different colors, for instance square one would have granular size = 1, square two would have granular size = 2 and so forth.

I looked at the surf command and it seems to be able to do something along the lines of what I am looking for. I just don't know how to use it to define the square and how i would "color code" each square within its boundaries.

Can you help me out with writing a simple code that would do this?

Thanks