Results 1 to 3 of 3

Math Help - Matlab, vectors and function files

  1. #1
    Junior Member
    Joined
    Apr 2008
    Posts
    72

    Matlab, vectors and function files

    Hey all,

    Ive given this my best shot, but still not getting anywhere.
    Heres my problem:

    need to write a matlab script to solve the following equation:

    a=b/c, for each interval of time given in another matlab function file.

    in the previous equation b=8*4*(g2-g1).

    The function file that gives the time values(in a vector) also gives the values of c for each time value(in a second vector), and the values of g1 and g2 in a third matrix(ie in the format [g1(1), g2(1); g1(2), g2(2); g1(3), g2(3)....]

    how can this be done as simply as possible? Im pretty sure its possible to use dats as in a=b./c to evaluate the matricies.

    Thanks for any help, feel free to post on any issues in clarification
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by deragon999 View Post
    Hey all,

    Ive given this my best shot, but still not getting anywhere.
    Heres my problem:

    need to write a matlab script to solve the following equation:

    a=b/c, for each interval of time given in another matlab function file.

    in the previous equation b=8*4*(g2-g1).

    The function file that gives the time values(in a vector) also gives the values of c for each time value(in a second vector), and the values of g1 and g2 in a third matrix(ie in the format [g1(1), g2(1); g1(2), g2(2); g1(3), g2(3)....]

    how can this be done as simply as possible? Im pretty sure its possible to use dats as in a=b./c to evaluate the matricies.

    Thanks for any help, feel free to post on any issues in clarification
    This looks as though it ought to be simple, but I'm afraid it is really not clear enough to be made much sense of.

    CB
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Apr 2008
    Posts
    72
    Ive sorted it all my self, thanks for looking though.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: February 19th 2011, 06:54 AM
  2. Replies: 8
    Last Post: June 10th 2010, 04:36 AM
  3. Matlab function M-Files
    Posted in the Math Software Forum
    Replies: 1
    Last Post: April 5th 2010, 05:33 AM
  4. MATLAB - Function M-Files
    Posted in the Math Software Forum
    Replies: 6
    Last Post: March 27th 2010, 11:20 PM
  5. Play .avi files in MATLAB GUI?
    Posted in the Math Software Forum
    Replies: 1
    Last Post: November 24th 2009, 06:06 PM

Search Tags


/mathhelpforum @mathhelpforum