Results 1 to 3 of 3

Math Help - MATLAB Problem

  1. #1
    Member
    Joined
    Sep 2008
    Posts
    117

    MATLAB Problem

    I need a little help please..

    Using the ideal gas law solved for v. v= RT/P

    Find the specific volume for air, for temperatures from 100 to 1000 K and for pressures from 100 kPa to 1000 kPa. The value of R for air is 0.2870 kJ/(kg K). Your answer should be a 2 dimensional matrix.

    How would I go about applying the formula and the values of pressure and temperatures and air and make that a 2 dimensional matrix? Any help would be appreciated.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member
    Joined
    May 2006
    Posts
    244
    Quote Originally Posted by ur5pointos2slo View Post
    I need a little help please..

    Using the ideal gas law solved for v. v= RT/P

    Find the specific volume for air, for temperatures from 100 to 1000 K and for pressures from 100 kPa to 1000 kPa. The value of R for air is 0.2870 kJ/(kg K). Your answer should be a 2 dimensional matrix.

    How would I go about applying the formula and the values of pressure and temperatures and air and make that a 2 dimensional matrix? Any help would be appreciated.
    Im not going to check that the units are right, so you will have to do that yourself:

    Code:
    T=[100:10:1000]';
    P=[100:10:1000];
    R=0.2870;
    PP=1./P;
     
    v=R.*(T*PP);
    with each row containing the values for each pressure corresponding to a given temprature.

    .


    [/code]
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Sep 2008
    Posts
    117
    Quote Originally Posted by Constatine11 View Post
    Im not going to check that the units are right, so you will have to do that yourself:

    Code:
    T=[100:10:1000]';
    P=[100:10:1000];
    R=0.2870;
    PP=1./P;
     
    v=R.*(T*PP);
    with each row containing the values for each pressure corresponding to a given temprature.

    .


    [/code]
    This is similar to what I was trying. Thank you
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Matlab LSQ problem
    Posted in the Math Software Forum
    Replies: 2
    Last Post: June 22nd 2010, 02:52 AM
  2. Funny problem. What is cos(pi/2) in matlab?
    Posted in the Math Software Forum
    Replies: 8
    Last Post: January 29th 2010, 10:07 AM
  3. matlab problem
    Posted in the Math Software Forum
    Replies: 7
    Last Post: October 28th 2009, 08:09 AM
  4. MatLab IVP Problem
    Posted in the Math Software Forum
    Replies: 5
    Last Post: August 22nd 2009, 05:29 AM
  5. Matlab Problem For Help!
    Posted in the Math Software Forum
    Replies: 0
    Last Post: June 16th 2009, 05:15 PM

Search Tags


/mathhelpforum @mathhelpforum