0

I'm generating figures and I can't find the way to change the ylabel allignment so that it is along y-axis.

plot(tvals(:,1:dim), Values(:,1:dim))
title(Title)
xlabel(Xlabel)
ylabel(Ylabel')

enter image description here

Oleg
  • 10,406
  • 3
  • 29
  • 57
Karusmeister
  • 871
  • 2
  • 12
  • 25

2 Answers2

4

Just do not transpose the Ylabel:

ylabel(Ylabel)

Compare output of the two lines

disp(Ylabel)
disp(Ylabel')

to see the difference

anandr
  • 1,622
  • 1
  • 12
  • 10
2

I think you might want to rotate the ylabel:

ylabel('something','rotation',90)
Oleg
  • 10,406
  • 3
  • 29
  • 57