How to convert a 4*2 subplot to 2*4 subplot?

Hi guys. I have a 4*2 subplot with a graph in each space. How can I rotate/convert the subplot to 2*4 subplot? Thank you for your help!
Here is my code:
subplot(4,2,1)
plot(x1,y1)
subplot(4,2,2)
plot(x2,y2)
subplot(4,2,3)
plot(x3,y3)
subplot(4,2,4)
plot(x4,y4)
subplot(4,2,5)
plot(x5,y5)
subplot(4,2,6)
plot(x6,y6)
subplot(4,2,7)
plot(x7,y7)
subplot(4,2,8)
plot(x8,y8)

Answers (1)

subplot(2,4,1)
plot(x1,y1)
subplot(2,4,2)
plot(x2,y2)
subplot(2,4,3)
plot(x3,y3)
subplot(2,4,4)
plot(x4,y4)
subplot(2,4,5)
plot(x5,y5)
subplot(2,4,6)
plot(x6,y6)
subplot(2,4,7)
plot(x7,y7)
subplot(2,4,8)
plot(x8,y8)

Products

Release

R2021a

Asked:

on 25 Mar 2021

Answered:

on 25 Mar 2021

Community Treasure Hunt

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

Start Hunting!