From: Shashishekar on
I have to plot the sound velocity profile. Now the code works good with X-axis carrying Sound Speed and Y axis- Depth. I have plotted them in 1st quadrant, My problem is plotting them in 4th quadrant.

z=data(:,2);
epsilon = 0.00737;
z_z = (2*(z - 1300))/1300;
C = 1500.0*(1.0 + epsilon * (z_z -1 + exp( -z_z)));

figure(1)
get(gca)
set(gca,'XAxisLocation','top')
set(gca,'YAxisLocation', 'left')
plot(z,C)
title('munk profile');

something like this figure
http://www.flickr.com/photos/rshkiel/4808679360/
please send me the code if possible.


the data consists of Depth in meters - column vector

[500,1000,1500,2000,2500,3000,3500,4000,4500,5000]
From: us on
"Shashishekar " <betafish(a)in.com> wrote in message <i23p3g$o71$1(a)fred.mathworks.com>...
> I have to plot the sound velocity profile. Now the code works good with X-axis carrying Sound Speed and Y axis- Depth. I have plotted them in 1st quadrant, My problem is plotting them in 4th quadrant.
>
> z=data(:,2);
> epsilon = 0.00737;
> z_z = (2*(z - 1300))/1300;
> C = 1500.0*(1.0 + epsilon * (z_z -1 + exp( -z_z)));
>
> figure(1)
> get(gca)
> set(gca,'XAxisLocation','top')
> set(gca,'YAxisLocation', 'left')
> plot(z,C)
> title('munk profile');
>
> something like this figure
> http://www.flickr.com/photos/rshkiel/4808679360/
> please send me the code if possible.
>
>
> the data consists of Depth in meters - column vector
>
> [500,1000,1500,2000,2500,3000,3500,4000,4500,5000]

one of the (possible) solutions

plot(1:10);
set(gca,'xaxislocation','top');
xlabel('x-axis on top','fontsize',12);

us