1. Welcome to Tacoma World!

    You are currently viewing as a guest! To get full-access, you need to register for a FREE account.

    As a registered member, you’ll be able to:
    • Participate in all Tacoma discussion topics
    • Communicate privately with other Tacoma owners from around the world
    • Post your own photos in our Members Gallery
    • Access all special features of the site

matlab/scilab HELP!!!

Discussion in 'Off-Topic Discussion' started by snowgod06, Feb 23, 2011.

  1. Feb 23, 2011 at 5:23 PM
    #1
    snowgod06

    snowgod06 [OP] UG legend wannabe

    Joined:
    Apr 26, 2009
    Member:
    #16454
    Messages:
    5,576
    Gender:
    Male
    First Name:
    Rob
    A farm field, OREGON
    Vehicle:
    06 Access Cab
    crap bolted and welded together....
    If anyone knows matlab or scilab i would like input.

    Im trying to graph x^2, x^3 and so on up to x^9, on a X range from 0-4. I can create the graph just fine, but when i have to switch it to semilogY i get an error. It say's i can only have positive y-values to switch to logY an im not to sure what to do.

    this is the code so far, and for the adjustment for the x range i do that manually instead of by code, thats why its not present.

    -->x = 0:1:4;

    -->y = x^2;

    -->plot(y)

    -->y = x .^2;

    -->plot(y)


    any if you know the error codes, this is what i got...

    Error: data_bounds on y axis must be strictly positive to switch to logarithmic mode.
    at line 4 of function generic_i_h called by :
    at line 2 of function %c_i_h called by :
    at line 4 of function LogtoggleY called by :
    LogtoggleY('l')
    while executing a callback
     
  2. Feb 23, 2011 at 5:39 PM
    #2
    snowgod06

    snowgod06 [OP] UG legend wannabe

    Joined:
    Apr 26, 2009
    Member:
    #16454
    Messages:
    5,576
    Gender:
    Male
    First Name:
    Rob
    A farm field, OREGON
    Vehicle:
    06 Access Cab
    crap bolted and welded together....
  3. Feb 23, 2011 at 5:55 PM
    #3
    snowgod06

    snowgod06 [OP] UG legend wannabe

    Joined:
    Apr 26, 2009
    Member:
    #16454
    Messages:
    5,576
    Gender:
    Male
    First Name:
    Rob
    A farm field, OREGON
    Vehicle:
    06 Access Cab
    crap bolted and welded together....
  4. Feb 24, 2011 at 9:40 AM
    #4
    RckyMntns

    RckyMntns Well-Known Member

    Joined:
    May 11, 2009
    Member:
    #17080
    Messages:
    56
    Gender:
    Male
    Utah
    Vehicle:
    '07 DC Silver OR
    whats the period for?
     
  5. Feb 24, 2011 at 12:13 PM
    #5
    snowgod06

    snowgod06 [OP] UG legend wannabe

    Joined:
    Apr 26, 2009
    Member:
    #16454
    Messages:
    5,576
    Gender:
    Male
    First Name:
    Rob
    A farm field, OREGON
    Vehicle:
    06 Access Cab
    crap bolted and welded together....
    in the y = x .^2 ?

    if so thats telling it to do it for every intereger. Saves from writing more then have to.
     

Products Discussed in

To Top