Problem with subplot ful screen
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello
I am making a plot with 5 x2 plots using subplot. But when i plot the final figure doesnt show on the whole scrren like this.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/780903/image.png)
Its not showing full screen
This is my code
t =[1 2 3];
figure()
subplot(10,2,1)
scatter(t,Aya(:,1))
xlim([0 4])
ylim([0 100])
title('Stimuli A')
grid on
subplot(10,2,2)
scatter(t,Aya(:,2))
xlim([0 4])
ylim([0 100])
title('Stimuli b')
grid on
subplot(10,2,3)
scatter(t,Farah(:,1))
xlim([0 4])
ylim([0 100])
title('Stimuli A')
subplot(10,2,4)
grid on
scatter(t,Farah(:,2))
xlim([0 4])
ylim([0 100])
title('Stimuli b')
grid on
subplot(10,2,5)
scatter(t,Hamza(:,1))
xlim([0 4])
ylim([0 100])
title('Stimuli A')
grid on
subplot(10,2,6)
scatter(t,Hamza(:,2))
xlim([0 4])
ylim([0 100])
title('Stimuli b')
grid on
subplot(10,2,7)
scatter(t,Jaffa(:,1))
xlim([0 4])
ylim([0 100])
title('Stimuli A')
grid on
subplot(10,2,8)
scatter(t,Jaffa(:,2))
xlim([0 4])
ylim([0 100])
title('Stimuli b')
grid on
subplot(10,2,9)
scatter(t,Monique(:,1))
xlim([0 4])
ylim([0 100])
title('Stimuli A')
grid on
subplot(10,2,10)
scatter(t,Monique(:,2))
xlim([0 4])
ylim([0 100])
title('Stimuli b')
grid on
댓글 수: 0
답변 (1개)
Jan
2021년 10월 27일
Yes, of course. You are creating a 10x2 table of plots:
subplot(10,2,1)
% ^^
Use subplot(5, 2, k) for a 5x2 table.
댓글 수: 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!