MATLAB: Select xlim max-value

MATLABxlim

Is it possible to return the xlim max directly with a oneliner? Rigth now I am using:
xmax = xlim
max = xmax(2)
I am guessing that I can access the max-value directly but I can't figure out how.

Best Answer

max() is a function. Don't use it as a variable name.
xmax=max(xlim)