Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to get a graph of variable which depend on previous variables.

  1. Jun 30, 2010 #1
    The picture explains everything.
    Only V varies from 0 to 450.
    Rest variables such as (rho), S, W are constant (those can be replaced with numbers in MATLAB).

    So how do i plot such a graph?
    oh forgot to mention the axes.
    The y axis should "Tr" and x - axis should be "V".
     

    Attached Files:

  2. jcsd
  3. Jun 30, 2010 #2

    radou

    User Avatar
    Homework Helper

    Well, plug all the constant terms in the equation of Tr and leave v as an independent variable, it just seems to be ordinary algebra.
     
  4. Jul 1, 2010 #3
    hmm...
    i tried that, but i could not plot....
    can i get a *part* of sample script.
     
  5. Jul 1, 2010 #4
    Do you know how "for" loops work?
     
  6. Jul 1, 2010 #5
    hmmm...
    i recently learned for loops in C++...
    i never knew if they existed in matlab....
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook