From: Jim on
I have looked high and low for a way to solve this problem so I hope there is an answer. I am using Matlab to evaluate magnetic fields from permanent magnets and using the surface function to show field intensity. My problem is that I would like to plot an outline of the magnet on the same axes but for some reason the most intense part of surface plot (values near Cmax) cover the line while values near Cmin do not cover the line. I have tried changing the order of the axes children with no success and changing colormaps results in the same behavior.

Any help or direction anyone can provide would be very appreciated.
From: Jim on
"Jim " <scasplte2(a)yahoo.com> wrote in message <hu8nc0$ipn$1(a)fred.mathworks.com>...
> I have looked high and low for a way to solve this problem so I hope there is an answer. I am using Matlab to evaluate magnetic fields from permanent magnets and using the surface function to show field intensity. My problem is that I would like to plot an outline of the magnet on the same axes but for some reason the most intense part of surface plot (values near Cmax) cover the line while values near Cmin do not cover the line. I have tried changing the order of the axes children with no success and changing colormaps results in the same behavior.
>
> Any help or direction anyone can provide would be very appreciated.

So this is related to the first problem but now I would like to plot a quiver plot on top of a surface plot and am experiencing the same behavior on the figure. Can this be done?
From: us on
"Jim " <scasplte2(a)yahoo.com> wrote in message <hu98qp$50u$1(a)fred.mathworks.com>...
> "Jim " <scasplte2(a)yahoo.com> wrote in message <hu8nc0$ipn$1(a)fred.mathworks.com>...
> > I have looked high and low for a way to solve this problem so I hope there is an answer. I am using Matlab to evaluate magnetic fields from permanent magnets and using the surface function to show field intensity. My problem is that I would like to plot an outline of the magnet on the same axes but for some reason the most intense part of surface plot (values near Cmax) cover the line while values near Cmin do not cover the line. I have tried changing the order of the axes children with no success and changing colormaps results in the same behavior.
> >
> > Any help or direction anyone can provide would be very appreciated.
>
> So this is related to the first problem but now I would like to plot a quiver plot on top of a surface plot and am experiencing the same behavior on the figure. Can this be done?

show CSSM a bit of your ML code...

us