Eghbal
Eghbal

Reputation: 3783

Change position of ylabel in MATLAB subplots

Suppose that we have this figure with 4 subplots in MATLAB R2015a:

enter image description here

How can i change difference position (ylabel) to center?

Upvotes: 3

Views: 1925

Answers (1)

Hassan Saqib
Hassan Saqib

Reputation: 2757

You can use normalized units. Following is the code

set(y, 'Units', 'Normalized', 'Position', [v1, v2, v3]);

Use your values in place of v1, v2 and v3.. The normalized units are relative to [0,1]...

Other Possible Solution

You can also use:

ylabel('Difference', 'position',[x y z])

Upvotes: 1

Related Questions