Results 1 to 2 of 2

Math Help - help with matlab programs

  1. #1
    Newbie
    Joined
    Sep 2009
    Posts
    1

    help with matlab programs

    Hi,

    I am completely new with matlab. I need help with my class assignment. It is attached in pdf format. The matlab assignment is on page 3. I would really be thankful if somebody can help me.
    Attached Files Attached Files
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member
    Joined
    Mar 2007
    Posts
    206
    Awards
    1
    To help you out with the matlab side of things, have a look at the following code and see if you can adapt it to you problem.

    save this as myfoo.m
    Code:
    function output = myfoo(t,f)
    output = sin(t/f);
    save this as another file and run it or past straight into the command window (assuming you have already changed you working directory to be the one that hold myfoo.m

    Code:
    cla
    t = linspace(0,2*pi,100);
    hold on
    for f = linspace(0.1,1,3)
        plot(t,myfoo(t,f))
    end
    hold off
    Regards Elbarto
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. MBA Programs and Mathematics
    Posted in the Business Math Forum
    Replies: 1
    Last Post: April 29th 2011, 10:06 PM
  2. How to install and run programs?
    Posted in the Calculators Forum
    Replies: 3
    Last Post: March 20th 2009, 01:43 AM
  3. Ti Programs
    Posted in the Calculators Forum
    Replies: 12
    Last Post: November 17th 2008, 10:54 PM
  4. lots of programs for a ti-83, ti-83 plus and ti-84
    Posted in the Calculators Forum
    Replies: 1
    Last Post: October 23rd 2008, 10:25 AM
  5. Maths Useful Programs
    Posted in the Math Software Forum
    Replies: 2
    Last Post: May 4th 2008, 02:57 PM

Search Tags


/mathhelpforum @mathhelpforum