Hi Shreen,
I understand from your query that you are interested in achieving landscape orientation for a figure with subplots.
The "orient" function used in the code is used to set the paper orientation for printing or saving a figure. The following image shows the "landscape" paper orientation:
To adjust your subplots within the landscape-oriented figure, you can change the number of rows and columns in the "subplot" function. Here's an example code snippet that creates a 2x1 grid of subplots in a landscape-oriented figure:
alphaa=sqrt(((2+akm).*akm./(gamma.*(2+akm))).^2+arh.^2);
betaa=(2.*akm.*arh.^2./gamma).^(0.25);
alpha1=sqrt((alphaa.^2+sqrt(alphaa.^4-4.*betaa.^4))./2);
alpha2=sqrt((alphaa.^2-sqrt(alphaa.^4-4.*betaa.^4))./2);
You may refer the following documentations to learn more about "orient" and "subplot" functions :
Hope this helps.