How do I merge 2 graphs with both a normal and reversed x-axis

I'm still new to matlab so forgive me
I currently have these 2 graphs made in the first picture shown using this code but I want to merge these two graphs together as shown in the second picture.
lat30 = [90:-30:0 0:30:90]
omgega = 0.0000729
f30 = 2*omega*sind(lat30)
subplot(2,1,1)
plot(lat30,f30)
grid on
subplot(2,1,2)
plot(lat30,f30)
set(gca, 'XDir','reverse')
grid on

Answers (1)

If you have array a, you can reverse it by calling
a(end:-1:1)

1 Comment

Thank you but I am still confused how I am able to merge the two graphs?

Sign in to comment.

Asked:

on 27 Jul 2020

Commented:

on 27 Jul 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!