Results 1 to 7 of 7

Thread: How to create m-file with matlab?

  1. #1

    ZeroPaid Regular

    Join Date
    Jul 2006
    Posts
    83

    How to create m-file with matlab?

    ok, I have this problem... anyone knows how to create m-file with matlab?

  2. #2

    ZeroPaid Regular

    Join Date
    Jul 2006
    Posts
    83

    pls help me if you installed Matlab into you pc...

    The problem is that I dont have Matlab now... I just need to know what is the result of this:

    >> b1=(-1:0.1:0)
    >> b2=(-1:0.1:0)
    >> H=(-1:0.1:0)'
    >> b=(b1+b2)
    >> bx=b/2
    >> A=bx*H

    if someone has Matlab, pls paste this code and tell me what is the result. I really need to know...

  3. #3
    cjules13's Avatar

    ZeroPaid Regular

    Join Date
    Aug 2003
    Location
    Portland
    Posts
    1,661
    It's just a text file with your commands with a .m extension. You could create it in notepad or wordpad if you wanted, but MATLAB comes with a default m-file editor and it's easier to keep track with everything in their gui, so use that.

  4. #4
    cjules13's Avatar

    ZeroPaid Regular

    Join Date
    Aug 2003
    Location
    Portland
    Posts
    1,661
    Why do I have the feeling I just did your homework? :)

    Use semicolons after each line if you don't want it to report on each line, but here is the result:



    b1 =
    Columns 1 through 9
    -1.0000 -0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 -0.3000 -0.2000
    Columns 10 through 11
    -0.1000 0

    b2 =
    Columns 1 through 9
    -1.0000 -0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 -0.3000 -0.2000
    Columns 10 through 11
    -0.1000 0

    H =
    -1.0000
    -0.9000
    -0.8000
    -0.7000
    -0.6000
    -0.5000
    -0.4000
    -0.3000
    -0.2000
    -0.1000
    0

    b =
    Columns 1 through 9
    -2.0000 -1.8000 -1.6000 -1.4000 -1.2000 -1.0000 -0.8000 -0.6000 -0.4000
    Columns 10 through 11
    -0.2000 0

    bx =
    Columns 1 through 9
    -1.0000 -0.9000 -0.8000 -0.7000 -0.6000 -0.5000 -0.4000 -0.3000 -0.2000
    Columns 10 through 11
    -0.1000 0

    A =
    3.8500
    >>

  5. #5
    Potato's Avatar

    poe-tay-toe

    Join Date
    Feb 2003
    Location
    MN
    Posts
    7,143
    Threads merged.
    Now stop being so freaking nice, and buy a stun gun. - Krell

  6. #6
    cjules13's Avatar

    ZeroPaid Regular

    Join Date
    Aug 2003
    Location
    Portland
    Posts
    1,661
    Thanks Tater :)

  7. #7

    Zeropaid Noob

    Join Date
    Mar 2007
    Posts
    21
    did you work on matlab 2006?

Similar Threads

  1. My high school research paper
    By mdfld_1 in forum General Discussion
    Replies: 15
    Last Post: October 31st, 2008, 09:51 AM
  2. NSIS Media Popups
    By littlebits in forum Spyware & Adware
    Replies: 164
    Last Post: January 3rd, 2007, 03:28 PM
  3. Problem burning with newest version of Nero
    By zword_of_zeal in forum Windows
    Replies: 18
    Last Post: July 6th, 2006, 05:27 AM
  4. NTFS and FAT32: Need Feedback
    By MauerPower in forum Windows
    Replies: 36
    Last Post: April 17th, 2006, 11:49 AM
  5. BitTorrent: Getting started and FAQ
    By Malicious Intent in forum BitTorrent
    Replies: 0
    Last Post: July 2nd, 2004, 01:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •