Preview

Matlab Study

Powerful Essays
Open Document
Open Document
3452 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Matlab Study
Introduction to Programming in MATLAB

6.094

Lecture 1: Variables, Scripts, and Operations

Danilo Šćepanović
IAP 2010

Course Layout
• Lectures
1: 2: 3: 4: 5:

Variables, Scripts and Operations Visualization and Programming Solving Equations, Fitting Images, Animations, Advanced Methods Optional: Symbolic Math, Simulink

Course Layout
• Problem Sets / Office Hours
One per day, should take about 3 hours to do Submit doc or pdf (include code, figures) No set office hours but available by email

• Requirements for passing
Attend all lectures Complete all problem sets (-, √, +)

• Prerequisites
Basic familiarity with programming Basic linear algebra, differential equations, and probability

Outline
(1) (2) (3) (4) (5) Getting Started Scripts Making Variables Manipulating Variables Basic Plotting

Getting Started
• To get MATLAB Student Version for yourself » https://msca.mit.edu/cgi-bin/matlab
Use VPN client to enable off-campus access Note: MIT certificates are required

• Open up MATLAB for Windows
Through the START Menu

• On Athena » add matlab » matlab &

Current directory

Workspace

Command Window

Command History

Courtesy of The MathWorks, Inc. Used with permission.

Making Folders
• Use folders to keep your programs organized
• To make a new folder, click the ‘Browse’ button next to ‘Current Directory’

• Click the ‘Make New Folder’ button, and change the name of the folder. Do NOT use spaces in folder names. In the MATLAB folder, make two new folders: IAPMATLAB\day1 • Highlight the folder you just made and click ‘OK’ • The current directory is now the folder you just created • To see programs outside the current directory, they should be in the Path. Use File-> Set Path to add folders to the path

Customization
• File Preferences
Allows you personalize your MATLAB experience

Courtesy of The MathWorks, Inc. Used with permission.

MATLAB Basics
• MATLAB can be thought of as a super-powerful

You May Also Find These Documents Helpful

  • Powerful Essays

    Mat 540 Assignment 1

    • 1196 Words
    • 5 Pages

    This causes the shape of the box plot to be quite spread out with the median and quartiles close together. The female writing hand box plot is also the same length as the writing hand box plot; this is because the minimum and maximum data from the writing hand came from females. When putting the male and female writing hand box plots in comparison to each other, you can see that females have a much larger range than the males as discussed before. This causes the female box plot to have a lower, lower quartile and median and a higher upper quartile. The median for males is only slightly higher than the median for females, keeping in mind that males had data from an eleven (11) year old and females had data from a forty two (42) year old. This can cause the data to be slightly swayed as there were not equal age groups for both box…

    • 1196 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    MAT222 assignment 5

    • 482 Words
    • 3 Pages

    I first had to compute f - h4. Once the solution is rewritten is becomes easier as it is rewritten as a different format. I will then solve the problem in this way: f - h(4) Original expression.…

    • 482 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Mat 540-Assignment 1

    • 566 Words
    • 3 Pages

    When determining the number of days needed to repair a copier, it is best to assume that the number of days is random. It is best to generate this random, which is illustrated on the excel spreadsheet as r2. R2 will be numbers between 0 and 1. To determine this value a random number will be generated in excel. The number of days needed to repair the copier will be determined based on the cumulative outline below:…

    • 566 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    This exercise will cover the steps used to create a solution. You will use variable lists, IPO charts, pseudocode, flowcharts, and desk-checking.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Lab10 worksheet

    • 1151 Words
    • 5 Pages

    Will the Group Policy settings you configure in your new GPO have an immediate effect on your network? Why?…

    • 1151 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    twelve standard programs to pick from. Per our reading assignment we find that the label…

    • 445 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Submission and Selection: Proposals for the Microsoft Office training must be submitted by July 1, 2010. You may submit the proposals by registered mail to our office. Our leadership team will review each proposal and then schedule interviews with the finalists. The interviews will take place the week of July 14, 2010. Once all interviews have been completed, we will make our final selection on July 31, 2010. If you require additional information please contact my office at 1-866-555-5555.…

    • 361 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.…

    • 1859 Words
    • 8 Pages
    Good Essays
  • Good Essays

    2w – 3 + 3(w – 4) – 5(w – 6) We were given this expression to simplify.…

    • 611 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Module 01 Lab Worksheet

    • 2406 Words
    • 11 Pages

    This week’s lab will focus on reviewing the concepts of anatomical terminology, metric conversion and genetics, specifically the concept of dominant and recessive alleles in a human pedigree.…

    • 2406 Words
    • 11 Pages
    Good Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    MATLAB: command line mode, M files, data input, formatting output, file I/O, random numbers, statistics, reducing, solving equations, n equations in n unknowns, 2- and…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    a particular programming problem and can often be downloaded from the Web site of the…

    • 398 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    what ever

    • 1175 Words
    • 5 Pages

    Three employee initials; the number of hours worked; the hourly rate of pay for the employee. Calculate and output the employee's gross pay, deductions, and net pay. Deductions include the following:…

    • 1175 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Mat 540 Assignment 3

    • 293 Words
    • 2 Pages

    Based on the LP model to maximize profit with the established constraints Julia should sell pizza and hotdogs and not BBQ sandwiches. Based on this model Julia will earn $2250.00 in profit. After buying food supplies for the next game she will have $750 remaining ($2250-1500). Julia’s goal was to clear $1000 in profit which she was not able to meet. It is not clear how Julia is paying for the booth rental each game, but assuming she is covering the costs with her profits from the prior game she will need $1000 for the booth + $1500 for food which equals $2500 she needs to make each game just to cover her expenses.…

    • 293 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Death with Dignity

    • 1291 Words
    • 6 Pages

    times as well as submit the request in writing, and have both verbal and written requests…

    • 1291 Words
    • 6 Pages
    Good Essays

Related Topics