From: Niall Heavey on
I am trying to do what seems like a fairly simple task (and it probably is!!!)

I want to plot
F1 = [594 651 705 680 668 640 620 582 580 531 480 422 331];
F2 = [913 921 1105 1220 1265 1334 1296 1242 1204 1112 1028 951 814];
as plot(F2,F1)
The only thing is I need the origin to be in the top right corner with the numbers increasing from top to bottom on the y axis and from right to left on the x axis.

Also, not sure how I might go about doing this either but I would also like to but in axis lines at the points F1 = 200 and F2 = 500.

It is to try and replicate the area on the left side of this image with the F1 & F2 axis
http://www.speech.kth.se/wavesurfer/formant/formant.gif

Hope this makes sense and it is possible to do.

Looking forward to hearing replies,

Thanks,
Niall.
From: Matt Fig on
% Plotting
F1 = [594 651 705 680 668 640 620 582 580 531 480 422 331];
F2 = [913 921 1105 1220 1265 1334 1296 1242 1204 1112 1028 951 814];
plot(F2,F1)

% Alteration
set(gca,'xaxislocation','top','yaxislocation','right','xdir','reverse','ydir','reverse')
From: Niall Heavey on
That seems to do the job,

Thank you very much for your help!

Niall.

"Matt Fig" <spamanon(a)yahoo.com> wrote in message <hq5m5g$rme$1(a)fred.mathworks.com>...
> % Plotting
> F1 = [594 651 705 680 668 640 620 582 580 531 480 422 331];
> F2 = [913 921 1105 1220 1265 1334 1296 1242 1204 1112 1028 951 814];
> plot(F2,F1)
>
> % Alteration
> set(gca,'xaxislocation','top','yaxislocation','right','xdir','reverse','ydir','reverse')
From: Niall Heavey on
Actually, does anyone know how I could make this plot into a smoother curve rather than straight lines between points?

Hope someone can help,

Thanks,

Niall.