MATLAB help with plotting

Discussion in 'Programmer's Corner' started by vustudent, Sep 18, 2010.

  1. vustudent

    Thread Starter Active Member

    Mar 11, 2009
    38
    0
    I got an equation y = 2x ;

    but I only wanted to plot the specific range x> 4 without adjusting the axis shown, how do I do that?
     
  2. Nanophotonics

    Active Member

    Apr 2, 2009
    365
    3
  3. johndoe45

    Member

    Jan 30, 2010
    364
    1
    x=4:100;
    y=2*x;

    plot(x,y)
     
Loading...