I can not make the figure landscape in the subplot

2 ビュー (過去 30 日間)
Shreen El-Sapa
Shreen El-Sapa 2021 年 11 月 23 日
回答済み: nick 2024 年 2 月 5 日
I can not make the figure landscape in the subplot

回答 (1 件)

nick
nick 2024 年 2 月 5 日
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:
subplot(2,1,1);
a = 1 ; %RADIUS
L=.1;
akm=4;gamma=0.3;arh=1; %beta1=beta2=1,a1=1,a2=2,arh=1,delta=0.5,u2=1
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);
dd=6;
You may refer the following documentations to learn more about "orient" and "subplot" functions :
Hope this helps.

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by