Generation of sound with Matlab Vibes and Waves in Action University of Massachusetts Lowell March 5, 2009.

Slides:



Advertisements
Similar presentations
Warm-Up Explain how you made each match (Without a calculator!)
Advertisements

Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
Introduction to Matlab EE 2303 Lab. MATLAB stands for “Matrix Laboratory” APPLICATIONS OF MATLAB:  Mathematical Calculations  Data Analysis & Visualization.
Al-Amer An Introduction to MATLAB Lesson 2: M-files Dr. Samir Al-Amer Term 061.
Introduction to Matlab. I use Matlab for: Data analysis Data plotting Image Analysis Also – Simulations (solving odes/pdes/finite element methods) – Minimisations,
Welcome to EGR 106 Foundations of Engineering II Course information Today’s specific topics: – Computation and algorithms – M ATLAB Basics Demonstrations.
Getting started with Matlab Numerical Methods Appendix B help/techdoc/learn_matlab/learn_matlab.html.
Matlab Computer Experiments (Contd.) Vibes and Waves in Action University of Massachusetts Lowell April 03, 2009.
Sound Waves - Beats Wei-En Hsu Center for Advanced Computation and Telecommunications UMass Lowell.
Introduction to Matlab Jianguo Wang CSSCR September 2009.
Introduction  Today we are looking at how to interpret experimental data  Normally, data is acquired with random errors  How do we take the data and.
MATLAB Fundamentals.
Working with Worksheet
THE MATLAB ENVIRONMENT VARIABLES BASIC COMMANDS HELP HP 100 – MATLAB Wednesday, 8/27/2014
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 MATLAB Programming Chapter 2.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
Microsoft Excel Spreadsheet With Potential What is Excel Excel is Microsoft’s spreadsheet It is included within Microsoft office, along with Word, Power.
Chemistry – Math Review Pioneer High School Mr. David Norton.
3.5 – Solving Systems of Equations in Three Variables.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
Computational Physics Introduction 3/30/11. Goals  Calculate solutions to physics problems  All physics problems can be formulated mathematically. 
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course.
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
Recap Sum and Product Functions Matrix Size Function Variance and Standard Deviation Random Numbers Complex Numbers.
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
ES 240: Scientific and Engineering Computation. Chapter 2 Chapter 2: MATLAB Fundamentals Uchechukwu Ofoegbu Temple University.
Friday, September 11, Content Objective: Students will review material from Algebra. Language Objective: Students will share their methods for solving.
1 DKT 211 Basic Communication Engineering LAB # 1A : (Lecture 1) Introduction to Matlab  Basic Features  Scientific features  Array Operations  Script.
Evaluating Algebraic Equations
Working with Arrays in MATLAB
MATLAB Jirawat Kanjanapitak (Tae). What is MATLAB A computer program for doing numerical computation including; Arithmetic, Polynomials, Graphics, 2-D.
Lecture 1: Matlab Universe
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Introduction to MATLAB 7 for Engineers William J. Palm.
Investigating Patterns Cornell Notes & Additional Activities.
ENG College of Engineering Engineering Education Innovation Center 1 Basic For Loops in MATLAB Programming in MATLAB / Chapter 6 Topics Covered:
Introduction to Matlab  Matlab is a software package for technical computation.  Matlab allows you to solve many numerical problems including - arrays.
1-d Arrays & Plotting.
Mantid Manipulation and Analysis Toolkit for ISIS data.
9.3 – Linear Equation and Inequalities 1. Linear Equations 2.
MATLAB Jirawat Kanjanapitak (Tae). What is MATLAB A computer program for doing numerical computation including; Arithmetic, Polynomials, Graphics, 2-D.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
ECE 351 M ATLAB I NTRODUCTION ( BY T EACHING A SSISTANTS )
PHYSICS CLASS ACTIVITY. CLASS ACTIVITY: TUNING FORK FREQUENCY.
Chapter 2 Data in Science. Section 1: Tools and Models.
CS112 Scientific Computation Department of Computer Science Wellesley College CS112 Retrospective.
Introduction to Literate Programming in Matlab 2WN50 – Week programming-in-matlab.pptx?dl=0.
Equations, Symbols and Graphs Unit 1 – Introduction to Physics.
MATLAB Programming. Why MATLAB is used ? It can use a simple instruction to compute a very complex mathematical function. It provides high resolution.
“Moh’d Sami” AshhabSummer 2008University of Jordan MATLAB By (Mohammed Sami) Ashhab University of Jordan Summer 2008.
Chapter 1 Computing Tools Variables, Scalars, and Arrays Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Section 9.4 – Solving Differential Equations Symbolically Separation of Variables.
Getting started with Matlab: Outline
ECE 1304 Introduction to Electrical and Computer Engineering
Introduction to Matlab
Introduction to MATLAB
Signals in Matlab Matlab as a name stands for Matrix Laboratory.
Software for scientific calculations
Introduction Mathcad is a product of mathSoft inc. The Mathcad can help us to calculate, graph, and communicate technical ideas. It lets us work with.
What is a Spreadsheet? A program that allows you to use data to forecast, manage, predict, and present information.
Solving Cubic Equations
”Mathematics is the language of physics”
Section 9.4 – Solving Differential Equations Symbolically
Introduction to MATLAB
Ch 2 Measurements and Calculations 2.1 Scientific Method
Working with Arrays in MATLAB
Presentation transcript:

Generation of sound with Matlab Vibes and Waves in Action University of Massachusetts Lowell March 5, 2009

What have we learned in the last class? What are beats? How are beats generated? What are the two main characteristics of beats? Can you explain them?

What is Matlab? What are some programming languages? What can programming language be used for? Matlab is a scripting language that is often used to solve scientific and mathematical problems both numerically and through visual display. Matlab can be used for: – Calculations – 2D and 3D plotting – Symbolic manipulation of equations – Advanced animation and GUI tools

3D Sample plots

Matlab fundamentals What is a variable ? – Variable is a place where we store a piece of information. Example : Storing your friend’s phone number in your cell phone. – In Matlab variable names can include letters or numbers Example: nwave,T1,Kenergy,Force1,… Arithmetic Operations – Operators :+,-,*,^,/ – Example Ek=1/2 mv 2 In Matlab: Ek=1/2*m*v^2; List – In additions to doing operations on a single number, Matlab allows us to perform operations on a list of numbers. – One way to create a list is by using a colon notation t=begin:interval:end Example: t=300:10:350 this means that t={300,310,320,330,340,350}

Generating plots on Matlab To plot two variables x and y use command plot(x,y); If x and y are defined as x=1:1:8; and y=50:5:85; Label and titles can be added by using commands: xlabel(‘Time of the day [hr]’) ylabel(‘Temperature [F]’) title(‘Change of temperature during a day’)

Generate a wave using Matlab Generate t from 0 to 1 seconds (fs=44100) t=0:1/fs:1; Generate a wave with a frequency f=1000Hz f=1000; y=sin(2*pi*f*t); Plot generated wave plot(t,y); Listen to generated waves sound(y,fs);