ENEE222 Elements of Discrete Signal Analysis Lab 3 1.

Slides:



Advertisements
Similar presentations
Introduction to Applications & Basic Features. What is MATLAB®? MATLAB® /Simulink® is a powerful software tool for: Performing mathematical computations.
Advertisements

Clicking on the link for the.tns file gives you will get the following screen: Select Save File and click OK.
Installation of ACE TRADER (TWS) for Internet. Step 1 – Go to ACEINDIA.com 1.Go to 2.Click on Technology 3.Now Click.
Introduction to Programming using Matlab Session 2 P DuffourJan 2008.
How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows.
Scripts and Flow Control. Scripts So far we have been entering commands directly into the command line But there is a better way Script files (and functions)
Lecture 5 Review Programming Program Structures Comparison Repetition: looping or iteration Conditional execution: branching Bubble Sort.
Activity One Use the Windows Explorer program to create a new folder. Name the folder by your first name. Click on the windows explorer icon then highlight.
CIS 101: Computer Programming and Problem Solving Lecture 5 Usman Roshan Department of Computer Science NJIT.
How to install the Zelle graphics package
Command Console Tutorial BCIS 3680 Enterprise Programming.
A Computer is Like a Filing Cabinet
Digital Image Processing Lecture3: Introduction to MATLAB.
For Loops 2 ENGR 1181 MATLAB 9. For Loops and Looped Programming in Real Life As first introduced last lecture, looping within programs has long been.
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Numerical Computation Lecture 2: Introduction to Matlab Programming United International College.
My Documents MarysWebpage 1-WebpageFolders&Files Projects&Assignments MySpinPage SciFairProjPage The folders you should have in “My Documents” are shown.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Synthesis ENGR 1181 MATLAB 11. Topics  No new material  Covers topics that will be on the Midterm 2 Exam MATLAB 01 – Program Design MATLAB 02 – Introduction.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
If you use it, cite it.
A simple classification problem Extract attributes Pattern Pattern recognition decision x C1 C2.
ENG College of Engineering Engineering Education Innovation Center 1 Basic For Loops in MATLAB Programming in MATLAB / Chapter 6 Topics Covered:
How to Install Eclipse Click hereClick here to download Eclipse.
DATABASE DESIGN LAB Session 1 Getting Acquainted with Microsoft Access Database Management System Using for first half of the course Desktop based user.
You may have already done this… Download the class files to the desktop Expand those files into root of USB stick Change your USB stick to drive “Z”!
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
How to Execute TSR Program. Install Borland C++ Download Borland C++ from LMS – oads/BORLANDC.rarhttp://vulms.vu.edu.pk/Courses/CS609/Downl.
Click left mouse button to proceed. Windows Tutorial Searching For Files CST-133 Lab AW © Delta College CST Faculty.
Introduction to Literate Programming in Matlab 2WN50 – Week programming-in-matlab.pptx?dl=0.
Downloading matrices from the Matrix Market The Matrix Market is an interesting collection of matrices from a variety of applications.
Perfecto Mobile Automation
If you don’t have Google Earth downloaded already, you can go to to get it.
Using This PowerPoint This PowerPoint presentation assumes you already have both the Java JDK and JCreator installed and all that you need is the proper.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
Converting Matrix Market matrices to Matlab format The Matrix Market is an interesting collection of matrices from a variety of applications.
Intelligent Data Systems Lab. Department of Computer Science & Engineering Python Installation guide 컴퓨터의 개념 및 실습.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
Double Click on GC-MS Dataset How to download a GC-MS dataset.
Introduction to Unix for FreeSurfer Users
Logging Into Windows XP for first time (labs only!)
How to use Borland C with DOSBox in Window 7 (64-bit)
ENEE222 Elements of Discrete Signal Analysis Lab 11 1.
How to access your work from home or another computer
Using a set-up file to read ASCII data into SPSS
Fractals help.
The Linux Command Line Chapter 29
Aqua Data Studio.
REVIEW FOR WINDOWS APPLICATIONS TEST ON FRIDAY- SEPT. 7, 2012
How to insert a media file into your webpage
CS100J 26 April. Matlab Use help button!!! Variables, values, types
Net 222: Communications and networks fundamentals (Practical Part)
MATLAB – Basic For Loops
Welcome to the Fundamentals of Mathematics for Engineers Lab
Inserting Sounds.
Digital Image Processing
In the home page, click on “Reports”
Young Joon Kim SPL basic – Quick Start SPL First Beginner Course – 01 Young Joon Kim
Create a Desktop Shortcut
CSE 307 Basics of Image Processing
CSCI N207 Data Analysis Using Spreadsheet
How to Open PowerPoint Maryam Fatima.
Scripts In Matlab.
Young Joon Kim SPL basic – Quick Start SPL First Beginner Course – 01 Young Joon Kim
Config Client Access (AS400)
Running a Java Program using Blue Jay.
More to Learn Creating a shortcut
Microsoft Windows 7 Basics
ENEE222 Elements of Discrete Signal Analysis Lab 9 1.
Presentation transcript:

ENEE222 Elements of Discrete Signal Analysis Lab 3 1

Prepare your working environment Download the script for lab 2 from ELMS or: terpconnect.umd.edu/~rssaketh/ene222/lab Move files to your desktop Double click the MATLAB icon on the desktop In MATLAB, set “Current Folder” to your desktop Double click the file “lab_03_script.txt” inside MATLAB 2

Problem 1 – For Loop FOR loop in Matlab: Question: Will i always have ubound as its last value? Why or why not? for i=lbound:step:ubound statement end 3

Problem 2 – M-file revisit A script file is a collection of MATLAB commands, saved with the .M extension: SCRIPT_FILE.M To execute these commands, make sure the file is in the working MATLAB directory, and simply type: SCRIPT_FILE in the command window. 4

Problem 3 – Mandelbrot Fractal 5

Problem 3 – Mandelbrot fractal All points (c=x+j*y) which fulfill where zn is iteratively obtained by Examples: c = 0, {|zn|} = {0,0,0, …} c = −0.1, {|zn|} = {0, -0.1, -0.09, -0.0919, ...} c = j, {|zn|} = {0, j, -1 + j, -j, -1 + j, ...} Im Re 6

Problem 4 – while loop WHILE loop in Matlab: # of iterations while (condition_to_continue) statement end # of iterations Early termination FOR Known Indirect (BREAK statement) WHILE Need not to be known Straightforward 7

continuFlag = ~termFlag Problem 4 – Early termination WHILE v.s. FOR: for i=lbound:step:ubound statement if (termFlag) break end while (continuFlag) statement end Note that continuFlag is the logical complement of termFlag, i.e., continuFlag = ~termFlag 8