Lab 01 introduction to matlab pdf

View lab report lab 01 introduction to the lab equipment 1 from ece 2050 at ohio state university. The warmup section of each lab must be completed during your assigned lab. The purpose of this lab is to provide an introduction to matlab. Then add to this waveform a copy of itself in which every other sample has been multiplied by 1. 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. If you already have some experience programming in another language, we hope that you can see how. Extendable using toolboxes that provide targeted functionality for specific types of analysis or area of expertise. We have approximately 25 or 30 matlab licenses available to rick lab users. Opens the file and evaluates commands as if they were entered from the command line. An introduction to using matlab eric peasley, department of engineering science, university of oxford version 7. It include facilities for calling routines from matlab dynamic linking, calling matlab as a computational engine, and for reading and writing matfiles.

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. This is a library that allows you to write c and fortran programs that interact with matlab. Elements, such as commands, that belong in the matlab programming language were written using the verbatimfont. Introduction to matlab 1 overview matlab is a technical computing environment for highperformance numeric computation and visualization. The accuracy of the simulation depends on the precision of the model.

Mit opencourseware makes the materials used in the teaching of almost all of mits subjects available on the web, free of charge. With more than 2,400 courses available, ocw is delivering on the promise of open sharing of knowledge. Updated for compatibility with release by grady wright department of mathematics university of utah goal. We saw how these sinusoids can be manipulated in matlab. The goal of this tutorial is to give a brief introduction to the mathematical software matlab. Combination of an easytouse, interactive desktop environment with matrixbased language.

It has since evolved into a successful commercial software package. 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. If you have not already taken math 2070, please see lab 1a. A follow the steps below and learn how to create and execute an mfile. Introduction to matlab for engineering students northwestern.

In these lectures details about how to use matlab are detailed but not verbose and. Comments have been added to each line to explain the operation shown. Find pdf materials in one place in the matlab primer pdf lecture slides for sessions 14. Matlab matrix laboratory is a tool for numerical computation and visualization. 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. Laboratory feasibility studies for environmental remediation introduction to labview by. Practice each new command by completing the examples and exercise.

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. 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. Simulink is a matlab toolbox for analysissimulation of interconnections of dynamic systems. Using a consistent fivestep methodology for solving engineering problems, etter demonstrates the exceptional computational and. 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. Matlab matrix laboratory is a multiparadigm numerical computing environment and fourthgeneration programming language which is frequently. Variables are typed, but variable names may be reused for different types. The model building environment is gui based, and it will be used heavily throughout the rest of the course laboratory. Shown in the box below is an mfile that plots y x sinax, for the. This text provides an introduction to the numerical methods that are typically encountered and used in science and engineering undergraduate courses.

Highlevel computer language designed for scientists and engineers. 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. Illustrating matlab best practices through practical engineering examples. Gg250 lab 1 introduction to matlab, functions, and scripts.

Matlab is an integrated technical computingenvironment that combines numeric computation, advancedgraphics and visualization, and a highlevel programming language. The entire demo session is listed in pages 118 to 7 of the documentation file introduction. Originally, the manual is divided into computer laboratory sessions labs. Etter, introduction to matlab, 4th edition pearson. Introduction to matlabintroductionthe purpose of this lab is to provide an introduction to matlab. The model building environment is gui based, and it will be used heavily throughout the rest of the courselaboratory. To introduce the matlab software for polynomials, script writing and programming aspect of matlab from control systems view point. This document is not intended to be a complete manual for matlab users. Matlab integrates numerical analysis, matrix computation, signal processing, and graphics into one easy to use compilerless environment. To create in matlab a software radio that will implement an am modulator and demodulator. This lab also introduces the assignment statement, parentheses to change the order of operations, and the semicolon. In this lab you will build a model of a secondorder system and observe the response to a step input. Attend the lecture or watch the video on amplitude modulation 1.

Lab 01 introduction to the lab equipment christian hahm israel jimenez ece 2050 february 15. Lab 01 \u20 introduction to the lab equipment 1 lab 01. The matlab interpreter displays a command indicating that it is ready to accept commands from you. Introduction to matlab originally created by kristian sandberg department of applied mathematics university of colorado. Matlab, short for matrix laboratory is a programming package specifically designed for quick and easy scientific calculations and io. Continuoustime linear systems department of electrical engineering university of washington the development of these labs was originally supported by the national science. 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. This title is appropriate because the structure for the storage of all data in matlab is a matrix. This short introduction will demonstrate some basic matlab commands. 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. Introduction to matlab exercises and solution notes. Matlab an introduction with applications by amos gilat.

Turnin the answers for all the exercise problems as your lab report. The command window is the main window in which you communicate with the matlab interpreter. During this course you will learn how to use matlab, to design, and to perform mathematical computations. The warmup section of each lab must be completedduring your assigned lab time and. This document is not a comprehensive introduction or a reference manual. Select the folder you just created so that matlab will automatically save files in. The exercises in the first two sectionsof the lab step through the basics of working in the matlab environment, including use of the helpsystem, basic command syntax, complex numbers, array indexing, plotting, and the use of. Matlab 2019 overview matlab 2019 technical setup details matlab 2019 free download bisection method for solving nonlinear equations using matlab mfile % bisection algorithm % find the root of ycosx from o to pi.

Users sa documents mat lab examples matlab command window new to matlab. 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. Ee c128 me c4 fall 2010 lab 1 university of california, berkeley rev. Egr 111 introduction to matlab university of portland. The purpose of this lab is to introduce a few examples of how matlab operates, and to. Function, saving data, etc lab 06 taylor approximation lab 07 root finding by bisection method lab 08 interpolation i. It is used for freshmen classes at northwestern university. Physics 111 has matlab with statistics toolbox package installed on all lab computers.

Read through the handout sitting in front of a computer that has a matlab software. 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. Someone who learns just the builtin functions will be wellprepared to use matlab, but would not understand basic programming concepts. Introduction to matlab based on matlab manual what is matlab. Matlab is an interactive environment commands are interpreted one line at a time commands may be scripted to create your own functions or procedures. Introduction to matlab the objective of this lab is to introduce you to the basic operations of matlab. Matlab software package is the tremendously popular computation, numerical analysis, signal processing, data analysis, and graphical package allows virtually every scientist and engineer to make better and faster progress. The italic font is used for the introduction of basic elements of programming. A numerical analyst called cleve moler wrote the rst version of matlab in the 1970s. Matlab, short for matrix laboratory is a programming package specifically designed for quick and.

Understand some of the basic concepts behind control theory. Run through these exercises on the lab machines or on your own copy of matlab. To help students become familiar with the matlab and simulink environment. View the matlab introduction by typing intro at the matlab prompt. The lab document is designed to be used by the students while working at the computer. In these lecture notes, instruction on using matlab is dispersed through the material on numerical methods. Introduction to numerical methods and matlab programming. An introduction to programming and numerical methods in. 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. You should read at least the prelab and warmup sections of this lab assignment and go over all.

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. Matlab, integrating computation, visualization, and. 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. An introduction to matlab through a collection of mathematical and com. To introduces the scilab simulation package tool for polynomials, script writing and programming for the system design and analysis from control systems view point. In preparation for the lab you should read it over paying particular attention to the material in section 1. The material is developed in tandem with matlab which allows rapid prototyping and testing of the methods. This lab introduces the matlab help facility, shows how matlabtm, which stands for matrix laboratory, can be used as an advanced calculator. Because you are working on a computer, you are necessarily working with.

This version introduces the matlab ode solvers and is intended for students who took math 2070. 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. During the matlab sessions you will create files to store programs or workspaces. 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. Cme 102 matlab workbook 20082009 355 1 matlab basics 1. The name matlab stands for matrix laboratory and was originally designed as a tool for doing numerical computations with matrices and vectors. Introduction to matlab electrical and computer engineering. In this lab, we will investigate the fourier series of some common waveforms using both the symbolic calculation features in matlab and simulink. A brief introduction to matlab stanford university. An additional goal is to provide you with applications of trigonometric identities in matlab. Play the waveform, write it to a wav le, and use the specgram. Matlab relieves you of a lot of the mundane tasks associated with solving problems numerically.

An introductory guide to matlab 1 introduction ubc computer. Chapter 1 introduction to matlab this book is an introduction to two subjects. 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. For an introduction to the mechanics of using matlab, see the videos at. This matlab tutorial is based on version 6x from 2001. The first step is to copy any data or other files with matlab scripts to your own my documents directory. Introduction to labview product of national instruments ni software for virtual instrumentation data acquisition daq graphical programming.