I can not make the figure landscape in the subplot
2 次查看(过去 30 天)
显示 更早的评论
I can not make the figure landscape in the subplot
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!