Lab 01 introduction to matlab pdf

In this lab, we will investigate the fourier series of some common waveforms using both the symbolic calculation features in matlab and simulink. For an introduction to the mechanics of using matlab, see the videos at. This version introduces the matlab ode solvers and is intended for students who took math 2070. Introduction to matlab originally created by kristian sandberg department of applied mathematics university of colorado. It has literally hundreds of builtin functions for a wide. To introduces the scilab simulation package tool for polynomials, script writing and programming for the system design and analysis from control systems view point. A follow the steps below and learn how to create and execute an mfile. 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. View lab report lab 01 introduction to the lab equipment 1 from ece 2050 at ohio state university. Variables are typed, but variable names may be reused for different types. Physics 111 has matlab with statistics toolbox package installed on all lab computers. The accuracy of the simulation depends on the precision of the model.

Because you are working on a computer, you are necessarily working with. To introduce the matlab software for polynomials, script writing and programming aspect of matlab from control systems view point. Matlab an introduction with applications by amos gilat. The warmup section of each lab must be completedduring your assigned lab time and. The first step is to copy any data or other files with matlab scripts to your own my documents directory. 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 saw how these sinusoids can be manipulated in matlab. 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. If you already have some experience programming in another language, we hope that you can see how. Mit opencourseware makes the materials used in the teaching of almost all of mits subjects available on the web, free of charge.

An introduction to programming and numerical methods in. A brief introduction to matlab stanford university. In this lab you will build a model of a secondorder system and observe the response to a step input. Egr 111 introduction to matlab university of portland. The name matlab stands for matrix laboratory and was originally designed as a tool for doing numerical computations with matrices and vectors. Cme 102 matlab workbook 20082009 355 1 matlab basics 1. Matlab matrix laboratory is a tool for numerical computation and visualization. The command window is the main window in which you communicate with the matlab interpreter. Combination of an easytouse, interactive desktop environment with matrixbased language. It has since evolved into a successful commercial software package. This lab introduces the matlab help facility, shows how matlabtm, which stands for matrix laboratory, can be used as an advanced calculator. 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. That project was approved and implemented in the 20012002 academic year. 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.

Find pdf materials in one place in the matlab primer pdf lecture slides for sessions 14. 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. Run through these exercises on the lab machines or on your own copy of matlab. Introduction to matlab based on matlab manual what is matlab. In preparation for the lab you should read it over paying particular attention to the material in section 1. Matlab, integrating computation, visualization, 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. Lab 01 \u20 introduction to the lab equipment 1 lab 01. Laboratory feasibility studies for environmental remediation introduction to labview by. In these lectures details about how to use matlab are detailed but not verbose and.

If you have not already taken math 2070, please see lab 1a. 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. Matlab is an interactive environment commands are interpreted one line at a time commands may be scripted to create your own functions or procedures. You should read at least the prelab and warmup sections of this lab assignment and go over all. The students will be familiar with the following items. An introductory guide to matlab 1 introduction ubc computer. Turnin the answers for all the exercise problems as your lab report. Introduction to matlabintroductionthe purpose of this lab is to provide an introduction to matlab. Matlab matrix laboratory is a multiparadigm numerical computing environment and fourthgeneration programming language which is frequently. Continuoustime linear systems department of electrical engineering university of washington the development of these labs was originally supported by the national science. Updated for compatibility with release by grady wright department of mathematics university of utah goal. 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. 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. The lab document is designed to be used by the students while working at the computer. Gg250 lab 1 introduction to matlab, functions, and scripts. It include facilities for calling routines from matlab dynamic linking, calling matlab as a computational engine, and for reading and writing matfiles. Chapter 1 introduction to matlab this book is an introduction to two subjects. 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. Introduction to matlab simulink this laboratory exercise is intended to provide a tutorial introduction to matlab simulink. 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.

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. The italic font is used for the introduction of basic elements of programming. 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. Etter, introduction to matlab, 4th edition pearson. In these lecture notes, instruction on using matlab is dispersed through the material on numerical methods. Attend the lecture or watch the video on amplitude modulation 1. Practice each new command by completing the examples and exercise. Introduction to matlab 1 overview matlab is a technical computing environment for highperformance numeric computation and visualization. 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 model building environment is gui based, and it will be used heavily throughout the rest of the courselaboratory.

This is a library that allows you to write c and fortran programs that interact with matlab. It is used for freshmen classes at northwestern university. 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. View the matlab introduction by typing intro at the matlab prompt. Introduction to matlab the objective of this lab is to introduce you to the basic operations of 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. Matlab is an integrated technical computingenvironment that combines numeric computation, advancedgraphics and visualization, and a highlevel programming language. Matlab, short for matrix laboratory is a programming package specifically designed for quick and easy scientific calculations and io.

The warmup section of each lab must be completed during your assigned lab. With more than 2,400 courses available, ocw is delivering on the promise of open sharing of knowledge. This document is not a comprehensive introduction or a reference manual. Simulink is a matlab toolbox for analysissimulation of interconnections of dynamic systems. 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. Introduction to matlab for engineering students northwestern. Users sa documents mat lab examples matlab command window new to matlab. Understand some of the basic concepts behind control theory. To help students become familiar with the matlab and simulink environment. During the matlab sessions you will create files to store programs or workspaces. A numerical analyst called cleve moler wrote the rst version of matlab in the 1970s.

This title is appropriate because the structure for the storage of all data in matlab is a matrix. The purpose of this lab is to provide an introduction to matlab. The entire demo session is listed in pages 118 to 7 of the documentation file introduction. Using a consistent fivestep methodology for solving engineering problems, etter demonstrates the exceptional computational and. Select the folder you just created so that matlab will automatically save files in. The goal of this tutorial is to give a brief introduction to the mathematical software matlab. This matlab tutorial is based on version 6x from 2001. 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. 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. Someone who learns just the builtin functions will be wellprepared to use matlab, but would not understand basic programming concepts. We have approximately 25 or 30 matlab licenses available to rick lab users. Matlab integrates numerical analysis, matrix computation, signal processing, and graphics into one easy to use compilerless environment.

This short introduction will demonstrate some basic matlab commands. 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. 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. Illustrating matlab best practices through practical engineering examples. Play the waveform, write it to a wav le, and use the specgram. Then add to this waveform a copy of itself in which every other sample has been multiplied by 1. This laboratory provides a brief introduction to matlab, and the tools and functions that help you to work with matlab variables and.

Matlab, short for matrix laboratory is a programming package specifically designed for quick and. This document is not intended to be a complete manual for matlab users. Extendable using toolboxes that provide targeted functionality for specific types of analysis or area of expertise. An introduction to using matlab eric peasley, department of engineering science, university of oxford version 7. An additional goal is to provide you with applications of trigonometric identities in matlab. Matlab relieves you of a lot of the mundane tasks associated with solving problems numerically. It has since grown into a highperformance language for technical computing. Read through the handout sitting in front of a computer that has a matlab software. Ee c128 me c4 fall 2010 lab 1 university of california, berkeley rev. During this course you will learn how to use matlab, to design, and to perform mathematical computations. The model building environment is gui based, and it will be used heavily throughout the rest of the course laboratory. To create in matlab a software radio that will implement an am modulator and demodulator.

Introduction to numerical methods and matlab programming. Mat 275 laboratory 1 introduction to matlab the matlab. Find the browse for folder button on the menu the one with the 3 dots. Originally, the manual is divided into computer laboratory sessions labs. Introduction to matlab exercises and solution notes. Lab 01 introduction to the lab equipment christian hahm israel jimenez ece 2050 february 15. Introduction to matlab electrical and computer engineering. Introduction to labview product of national instruments ni software for virtual instrumentation data acquisition daq graphical programming. This lab also introduces the assignment statement, parentheses to change the order of operations, and the semicolon. The matlab interpreter displays a command indicating that it is ready to accept commands from you. Opens the file and evaluates commands as if they were entered from the command line.

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. Introduction to matlab student name 1 080410 introduction the purpose of this lab is to provide an introduction to matlab. An introduction to matlab through a collection of mathematical and com. 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.

1593 218 17 203 671 843 216 390 533 802 1167 535 233 1474 1474 1547 1529 24 584 1137 1002 421 936 1615 604 1528 1376 1582 99 14 859 1632 1499 514 327 370 273 441 770 1045 1371 140