Matlab tutorial course Exercises 2:. Exercises Copy the script ‘face_points.m’ from my webpage into your ‘scripts’ folder Create a new folder in your.

Slides:



Advertisements
Similar presentations
Matlab Intro Simple introduction to some basic Matlab syntax. Declaration of a variable [ ] Matrices or vectors Some special (useful) syntax. Control statements.
Advertisements

Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Functions in MatLab Create a new folder on your Z:drive called MatLab_Class24 Start MatLab and change your current directory to MatLab_Class24 Topics:
Y A S O O B A L I b o r n o n 1 9 t h F e b r u a r y i n K a n p u r d i s t r i c t o f U t t a r P r a d e s h. H e s t a r t e d s i n g i.
Hot Potatoes – Quiz Builder Malcolm Roberts Wintec Malcolm Roberts Wintec.
Matlab tutorial course Exercises 4:. Exercises – for loops Download the scripts loops_example.m and if_else_example.m, run the code Download the function,
Al-Amer An Introduction to MATLAB Lesson 2: M-files Dr. Samir Al-Amer Term 061.
CSci 2031: Matlab Tutorial Guoquan (Paul) Huang Jan 24, 2008.
Graphics in MATLAB Week 15 – 5/5/09 Kate Musgrave
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
Microsoft® Small Basic Sharing Code Estimated time to complete this lesson: 1 hour.
PHP and SQL Server: Queries IST2101. Project Report 4 SQL Queries Due Sunday, 4/5 at 11:59pm Instructions on how to access team webspace and SQL database.
Agenda Book Cover & Golf outing Instructions & Images on webpage
Matlab tutorial course Lesson 2: Arrays and data types
Matlab tutorial course Exercises 1:. Exercises Go back to my webpage, download the file ‘startup.m’ and save it in your MATLAB home folder – Must be directly.
Introduction to MATLAB. Windows in MATLAB Command Window – where you enter data, run MATLAB code, and display results Command History - displays a log.
Introduction to Matlab & Data Analysis
Programmed Animation in Sketchup. A free plugin for object animation In this folder you will find a.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Launch SpecE8 and React from GSS. You can use the chemical analyses in a GSS data sheet to set up and run SpecE8 and React calculations. Analysis → Launch…
Basic File Input and Output Copyright © Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See
1 Lab of COMP 319 Lab tutor : Yao Zhang, Shenghua ZHONG Lab 4: Nov 30, 2011 Final Project: Image Compression.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
My Documents MarysWebpage 1-WebpageFolders&Files Projects&Assignments MySpinPage SciFairProjPage The folders you should have in “My Documents” are shown.
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Creating your own image data files. Simple ASCII file output in Java import java.io.FileOutputStream; import java.io.PrintWriter; … PrintWriter out =
MAE 1202: AEROSPACE PRACTICUM An Introduction to MATLAB: Part 2 Mechanical and Aerospace Engineering Department Florida Institute of Technology Developed.
Download you-tube video. Step 1: Open Youtube Downloader Click to open Youtube Downloader.
Blender Lesson 1. How to download blender to your computer. S:\Westlake\Students\sslade Download blender to the desktop. You will probably have to download.
Introduction to MATLAB 7 MATLAB Programming for Engineer Hassan Migdadi Spring 2013.
PHP and SQL Server: Queries IST2101. Steps to Design PHP Pages to Answer User Queries 1.Query generation – What SQL query do we need to retrieve the desired.
Matlab tutorial course Exercises 5: Loading and writing images
Copy of the from the secure website - click on the AccoridaLife.zip link.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
1 2/22/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Images and placing pages on the server.
Open the index.html Open this PowerPoint from the S Drive IDT folder Chapman Images.ppt.
PHP Form Processing * referenced from
Introduction to Literate Programming in Matlab 2WN50 – Week programming-in-matlab.pptx?dl=0.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
HANDS-ON ConSurf! Web-Server: The ConSurf webserver.
1. Import Menu 2. Drag & Drop 3. Import from Mobile 4. Import Zipped 5. Import Exercise [DELETE THIS TEXT: Modify the number of tabs and text for your.
 Linking to a school website page  Linking to a class blog  Linking to student writing  Giving instructions to students.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
Matlab Programming for Engineers
Create and batch branded images for social media using Powerpoint
Population Projections Workshop
Managing results files
Ying shen School of software engineering tongji university
Changing WRF input files (met_em…) with MATLAB
OneNote Basics Steve Madsen.
Lecture 1: Introduction
Freshman Engineering Clinic II
Open your lesson using Adobe Reader XI. Fill in your answer
How to Embed Videos into Powerpoint
Matlab tutorial course
This is where R scripts will load
Tutorial 1 (additional materials)
Blackboard Tutorial (Student)
Matlab tutorial course
Blackboard Tutorial (Student)
CSCI N207 Data Analysis Using Spreadsheet
This is where R scripts will load
This is where R scripts will load
Embedding Videos Into PowerPoint
Blackboard Tutorial (Student)
Matlab tutorial course
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
Presentation transcript:

Matlab tutorial course Exercises 2:

Exercises Copy the script ‘face_points.m’ from my webpage into your ‘scripts’ folder Create a new folder in your MATLAB folder called ‘data’ Copy the file ‘face_points.mat’ from the ‘data’ folder on my webpage into the folder you’ve just created – Run the script, look at the figures it produces Now go through the script line by line – Can you work out what each line does? The comments should help! – Make a note of all the variables assigned to – Make a note of all the functions called – Make a note of when and how arrays are indexed and assigned – Make a note of where element-wise or matrix processing is used

Exercises Try modifying the script changing pt_xy or changing how much the face is rotated by Change the script into a function that takes ‘pt_xy’ and ‘theta’ as input arguments Change this function so that it produces output ‘min_dist’ – the minimun distance of ‘pt_xy’ to a point on the face Use your new function to answer the follow questions: – If pt_xy = [40, -50], which point on the face is it nearest too? – How far is it from this point? – Generate a plot of the face upside-down - save this figure: Click ‘File’ -> ‘Save as’ Change ‘Save as type’ to ‘Portable Network Graphics file (*.png)’ Give it a suitable name and click ‘save’ When you’ve tried writing your own function, you can download mine for a sample answer And if you’re wondering what this has to with image, check out this video on youtube of a mobile face-tracking app developed in this department in 2010 –