Lab 01 introduction to matlab pdf

We saw how these sinusoids can be manipulated in matlab. Cme 102 matlab workbook 20082009 355 1 matlab basics 1. Comments have been added to each line to explain the operation shown. Elements, such as commands, that belong in the matlab programming language were written using the verbatimfont. Lab 01 \u20 introduction to the lab equipment 1 lab 01. The command window is the main window in which you communicate with the matlab interpreter. Matlab, with a chapter or two on some programming concepts, and those that cover only the programming constructs without mentioning many of the builtin functions that make matlab efficient to use. The first step is to copy any data or other files with matlab scripts to your own my documents directory. Matlab, integrating computation, visualization, and. Opens the file and evaluates commands as if they were entered from the command line. A follow the steps below and learn how to create and execute an mfile. Matlab an introduction with applications by amos gilat. This document is not a comprehensive introduction or a reference manual. The goal of this tutorial is to give a brief introduction to the mathematical software matlab.

Understand some of the basic concepts behind control theory. You should read at least the prelab and warmup sections of this lab assignment and go over all exercises in the prelab section before going to your assigned lab session. We have approximately 25 or 30 matlab licenses available to rick lab users. The purpose of this lab is to provide an introduction to matlab. Introduction to matlab 1 overview matlab is a technical computing environment for highperformance numeric computation and visualization. The entire demo session is listed in pages 118 to 7 of the documentation file introduction. Introduction to matlab simulink this laboratory exercise is intended to provide a tutorial introduction to matlab simulink. It has literally hundreds of builtin functions for a wide. In this lab you will build a model of a secondorder system and observe the response to a step input. Using a consistent fivestep methodology for solving engineering problems, etter demonstrates the exceptional computational and. You should read at least the pre lab and warmup sections of this lab assignment and go over all exercises in the pre lab section before going to your assigned lab session. The lab document is designed to be used by the students while working at the computer.

Practice each new command by completing the examples and exercise. An introductory guide to matlab 1 introduction ubc computer. This document is not intended to be a complete manual for matlab users. An introduction to basic digital baseband communication through matlab simulation objective the objective is to teach students a basic digital communication system through matlab simulation. Matlab, short for matrix laboratory is a programming package specifically designed for quick and easy scientific calculations and io. Then add to this waveform a copy of itself in which every other sample has been multiplied by 1. Play the waveform, write it to a wav le, and use the specgram. The name matlab stands for matrix laboratory and was originally designed as a tool for doing numerical computations with matrices and vectors. This version introduces the matlab ode solvers and is intended for students who took math 2070. Gg250 lab 1 introduction to matlab, functions, and scripts. Extendable using toolboxes that provide targeted functionality for specific types of analysis or area of expertise. Matlab is an interactive environment commands are interpreted one line at a time commands may be scripted to create your own functions or procedures. Matlab matrix laboratory is a tool for numerical computation and visualization.

Read through the handout sitting in front of a computer that has a matlab software. Chapter 1 introduction to matlab this book is an introduction to two subjects. The model building environment is gui based, and it will be used heavily throughout the rest of the course laboratory. The warmup section of each lab must be completed during your assigned lab. Highlevel computer language designed for scientists and engineers. Turnin the answers for all the exercise problems as your lab report. Matlab matrix laboratory is a multiparadigm numerical computing environment and fourthgeneration programming language which is frequently. In preparation for the lab you should read it over paying particular attention to the material in section 1. Run through these exercises on the lab machines or on your own copy of matlab.

Introduction to labview product of national instruments ni software for virtual instrumentation data acquisition daq graphical programming. Attend the lecture or watch the video on amplitude modulation 1. To create in matlab a software radio that will implement an am modulator and demodulator. A numerical analyst called cleve moler wrote the rst version of matlab in the 1970s.

It has since grown into a highperformance language for technical computing. To introduces the scilab simulation package tool for polynomials, script writing and programming for the system design and analysis from control systems view point. This text provides an introduction to the numerical methods that are typically encountered and used in science and engineering undergraduate courses. This title is appropriate because the structure for the storage of all data in matlab is a matrix. Lab 01 introduction to the lab equipment christian hahm israel jimenez ece 2050 february 15. The exercises in the first two sections of the lab step through the basics of working in the matlab environment, including use of the help system, basic command syntax, complex numbers, array indexing, plotting, and the use of vectorization to avoid inefficient loops. Laboratory feasibility studies for environmental remediation introduction to labview by. The students will be familiar with the following items. The purpose of this lab is to introduce a few examples of how matlab operates, and to. View the matlab introduction by typing intro at the matlab prompt. This laboratory provides a brief introduction to matlab, and the tools and functions that help you to work with matlab variables and.

Mat 275 laboratory 1 introduction to matlab the matlab. Matlab was originally written to provide easy access to matrix software developed by the linpack and eispack projects, which together represent the stateoftheart in software for matrix computation. Etter, introduction to matlab, 4th edition pearson. Matlab, short for matrix laboratory is a programming package specifically designed for quick and. This matlab tutorial is based on version 6x from 2001. Users sa documents mat lab examples matlab command window new to matlab. This report provides an introduction to matlab simulink and its applications to the solution of problems that arise in the analysis and design of feedback systems. It include facilities for calling routines from matlab dynamic linking, calling matlab as a computational engine, and for reading and writing matfiles. It is not a comprehensive or general introduction to matlabthere are plenty of good references for that see the class web page for links to a few. Illustrating matlab best practices through practical engineering examples. Introduction to numerical methods and matlab programming.

The warmup section of each lab must be completedduring your assigned lab time and. To help students become familiar with the matlab and simulink environment. Introduction to matlab exercises and solution notes. Introduction to simulink section 1 background information this lab will introduce the use of simulink, an extension to matlab, for use in simulating control systems. The italic font is used for the introduction of basic elements of programming.

Egr 111 introduction to matlab university of portland. Someone who learns just the builtin functions will be wellprepared to use matlab, but would not understand basic programming concepts. During this course you will learn how to use matlab, to design, and to perform mathematical computations. It has since evolved into a successful commercial software package. An introduction to programming and numerical methods in. Laboratory 1 1 mat 275 laboratory 1 introduction to matlab matlab is a computer software commonly used in both education and industry to solve a wide range of problems. In these lecture notes, instruction on using matlab is dispersed through the material on numerical methods. Find the browse for folder button on the menu the one with the 3 dots. You should read the pre lab and warmup sections of this lab assignment and go over all exercises in the pre lab section before attending your lab session. This short introduction will demonstrate some basic matlab commands. Introduction to matlab student name 1 080410 introduction the purpose of this lab is to provide an introduction to matlab. Introduction to matlab originally created by kristian sandberg department of applied mathematics university of colorado. Introduction to matlab electrical and computer engineering. This lab introduces the matlab help facility, shows how matlabtm, which stands for matrix laboratory, can be used as an advanced calculator.

Introduction to matlab based on matlab manual what is matlab. An additional goal is to provide you with applications of trigonometric identities in matlab. Ee c128 me c4 fall 2010 lab 1 university of california, berkeley rev. In these lectures details about how to use matlab are detailed but not verbose and. A read is counted each time someone views a publication summary such as the title, abstract, and list of authors, clicks on a figure, or views or downloads the fulltext.

Shown in the box below is an mfile that plots y x sinax, for the. The exercises in the first two sections of the lab step through the basics of working in the matlab environment, including use of the help. The matlab interpreter displays a command indicating that it is ready to accept commands from you. Function, saving data, etc lab 06 taylor approximation lab 07 root finding by bisection method lab 08 interpolation i. A brief introduction to matlab stanford university.

With more than 2,400 courses available, ocw is delivering on the promise of open sharing of knowledge. This lab also introduces the assignment statement, parentheses to change the order of operations, and the semicolon. Originally, the manual is divided into computer laboratory sessions labs. Mit opencourseware makes the materials used in the teaching of almost all of mits subjects available on the web, free of charge. Variables are typed, but variable names may be reused for different types. Introduction to matlabintroductionthe purpose of this lab is to provide an introduction to matlab. Introduction to matlab the objective of this lab is to introduce you to the basic operations of matlab. Matlab relieves you of a lot of the mundane tasks associated with solving problems numerically. Introduction to matlab for engineering students northwestern. Physics 111 has matlab with statistics toolbox package installed on all lab computers. That project was approved and implemented in the 20012002 academic year. Matlab integrates numerical analysis, matrix computation, signal processing, and graphics into one easy to use compilerless environment. The material is developed in tandem with matlab which allows rapid prototyping and testing of the methods.

This is a library that allows you to write c and fortran programs that interact with matlab. During the matlab sessions you will create files to store programs or workspaces. An introduction to using matlab eric peasley, department of engineering science, university of oxford version 7. Select the folder you just created so that matlab will automatically save files in. For an introduction to the mechanics of using matlab, see the videos at.

Updated for compatibility with release by grady wright department of mathematics university of utah goal. An introduction to matlab through a collection of mathematical and com. Simulink is a matlab toolbox for analysissimulation of interconnections of dynamic systems. If you already have some experience programming in another language, we hope that you can see how. The purpose of this lab is to teach you some of the basics of using matlab, a popular software package that is used in many engineering courses and that we will be using for the ee299 labs.

Find pdf materials in one place in the matlab primer pdf lecture slides for sessions 14. You should read at least the prelab and warmup sections of this lab assignment and go over all. Gg250 lab 1 introduction to matlab, functions, and scripts the purpose of this lab is to introduce a few examples of how matlab operates, and to. Continuoustime linear systems department of electrical engineering university of washington the development of these labs was originally supported by the national science. It is used for freshmen classes at northwestern university. Matlab proved to be a great tool in the analysis of these waves by allowing us to deeply deconstruct the sinusoid into its components and eventually test the mathematical aspect of sinusoids. View lab report lab 01 introduction to the lab equipment 1 from ece 2050 at ohio state university. The accuracy of the simulation depends on the precision of the model. Use matlab to write an audio waveform 8 khz sampling frequency that contains a sequence of nine tones with frequencies 659, 622, 659, 622, 659, 494, 587, 523, and 440 hz. In this lab, we will investigate the fourier series of some common waveforms using both the symbolic calculation features in matlab and simulink. The basic data element is a matrix, so if you need a program that manipulates arraybased data it is generally fast to write and run in matlab unless you.