How to define figure position in subplot1?

3 ビュー (過去 30 日間)
Maria
Maria 2017 年 2 月 16 日
回答済み: Ed Marquez 2017 年 2 月 21 日
Dear all,
I would like to use subpot1: https://se.mathworks.com/matlabcentral/fileexchange/9694-an-improved-subplot-function/content//subplot1.m
Could you please let me know how to define the position where I want to plot a figure?
I have defined the position as follows with the function subplot: subplot(1,3,1) subplot(1,3,2) subplot(1,3,3) ... So, the last argument defines the position. However, that doesn't work with subplot1
Best, Maria

採用された回答

Ed Marquez
Ed Marquez 2017 年 2 月 21 日
Hey Maria,
In order to put a subplot on focus in 'subplot1', you need to call 'subplot1' with one argument which is the number of the subplot. For instance, the commands below create a 2x2 grid, puts focus on the forth subplot, and plots a line there.
subplot1(2,2)
subplot1(4)
plot(1:10)

その他の回答 (0 件)

カテゴリ

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