MATLAB: Range definition-diagram

range

The x/y range should be defined automatically depending on the functions (values) -> Which command? The x/y range should be defined manually. -> axis([-350 -150 0 250]);? thank you

Best Answer

  • axis([min(x) max(x) min(y) max(y)])
    where x and y are your x,y data respectively.