MATLAB Programming. Visualization

Similar documents
COGS 119/219 MATLAB for Experimental Research. Fall 2017 Image Processing in Matlab

USING MATLAB CODE FOR RADAR SIGNAL PROCESSING. EEC 134B Winter 2016 Amanda Williams Team Hertz

NENS 230 Assignment #2 Data Import, Manipulation, and Basic Plotting

Statistics for Engineers

MATH& 146 Lesson 11. Section 1.6 Categorical Data

Fig. 1 Add the Aro spotfinding Suite folder to MATLAB's set path.

Import and quantification of a micro titer plate image

QCTool. PetRos EiKon Incorporated

Outline. Why do we classify? Audio Classification

Histograms and Frequency Polygons are statistical graphs used to illustrate frequency distributions.

Frequencies. Chapter 2. Descriptive statistics and charts

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2018 Lab #5: Sampling: A/D and D/A & Aliasing

HD-SDI Express User Training. J.Egri 4/09 1

T HE M AGIC OF G RAPHS AND S TATISTICS

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2016 Lab #6: Sampling: A/D and D/A & Aliasing

Normalization Methods for Two-Color Microarray Data

Notes Unit 8: Dot Plots and Histograms

Objective: Write on the goal/objective sheet and give a before class rating. Determine the types of graphs appropriate for specific data.

Getting Images of the World

Chapter 5 Printing with Calc

Release Year Prediction for Songs

It s All About Character!

Chapter 6. Normal Distributions

Math 7 /Unit 07 Practice Test: Collecting, Displaying and Analyzing Data

Dot Plots and Distributions

Doubletalk Detection

Package spotsegmentation

Case study: how to create a 3D potential scan Nyquist plot?

Design of a Gaussian Filter for the J-PARC E-14 Collaboration

AP Statistics Sampling. Sampling Exercise (adapted from a document from the NCSSM Leadership Institute, July 2000).

Connection for filtered air

Supplemental Material: Color Compatibility From Large Datasets

EE373B Project Report Can we predict general public s response by studying published sales data? A Statistical and adaptive approach

Machine Learning Term Project Write-up Creating Models of Performers of Chopin Mazurkas

Introduction to QScan

Elasticity Imaging with Ultrasound JEE 4980 Final Report. George Michaels and Mary Watts

Contemporary Chamber Ensemble

PCASP-X2 Module Manual

Clarification for 3G Coverage Obligation Verification Data

Using the NTSC color space to double the quantity of information in an image

Full file at

The One Penny Whiteboard

Handout 1 - Introduction to plots in Matlab 7

UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Ordinary Level

PYROPTIX TM IMAGE PROCESSING SOFTWARE

LeCroy Digital Oscilloscopes

M EMORANDUM. Article Submission Guidelines

Review. What about images? What about images? Slides04 - RGB-Pixels.key - September 22, 2015

What is Statistics? 13.1 What is Statistics? Statistics

AUTO-FOCUS USING PSD ESTIMATION EFFECTIVE BANDWIDTH By Laurence G. Hassebrook

#1 THIS ACTIVITY WILL TEACH:

MATH 214 (NOTES) Math 214 Al Nosedal. Department of Mathematics Indiana University of Pennsylvania. MATH 214 (NOTES) p. 1/3

Pre-processing pipeline

Analyzing Modulated Signals with the V93000 Signal Analyzer Tool. Joe Kelly, Verigy, Inc.

This past April, Math

The Effect of Inserted ISI on Transition Density Plots and DCD & ISI Histograms of MJS Patterns

Congratulations to the Bureau of Labor Statistics for Creating an Excellent Graph By Jeffrey A. Shaffer 12/16/2011

Part 1: Introduction to Computer Graphics

MOVIELABS/DOLBY MEETING JUNE 19, 2013

Package rasterimage. September 10, Index 5. Defines a color palette

For these exercises, use SAS data sets stored in a permanent SAS data library.

Chapter 4. Displaying Quantitative Data. Copyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

CS2401-COMPUTER GRAPHICS QUESTION BANK

Bar Codes to the Rescue!

In Chapter 4 on deflection measurement Wöhler's scratch gage measured the bending deflections of a railway wagon axle.

SHOJO WONDER MANGA ART SCHOOL: CREATE YOUR OWN COOL CHARACTERS AND COSTUMES WITH MARKERS BY SUPITTHA BUNYAPEN

Graphics I Or Making things pretty in R.

These are used for producing a narrow and sharply focus beam of electrons.

Calibrated Color Mapping Between LCD and CRT Displays: A Case Study

Python Quick-Look Utilities for Ground WFC3 Images

LAB 1: Plotting a GM Plateau and Introduction to Statistical Distribution. A. Plotting a GM Plateau. This lab will have two sections, A and B.

Using Low-Cost Plasma Displays As Reference Monitors. Peter Putman, CTS, ISF President, ROAM Consulting LLC Editor/Publisher, HDTVexpert.

Comp 410/510. Computer Graphics Spring Introduction to Graphics Systems

High-resolution screens have become a mainstay on modern smartphones. Initial. Displays 3.1 LCD

AP Statistics Sec 5.1: An Exercise in Sampling: The Corn Field

6 ~ata-ink Maximization and Graphical Design

THE BERGEN EEG-fMRI TOOLBOX. Gradient fmri Artifatcs Remover Plugin for EEGLAB 1- INTRODUCTION

Types of CRT Display Devices. DVST-Direct View Storage Tube

Jumpstarters for Math

DESIGNING OPTIMIZED MICROPHONE BEAMFORMERS

Chapter 1 Midterm Review

WHAT'S HOT: LINEAR POPULARITY PREDICTION FROM TV AND SOCIAL USAGE DATA Jan Neumann, Xiaodong Yu, and Mohamad Ali Torkamani Comcast Labs

Overview. Teacher s Manual and reproductions of student worksheets to support the following lesson objective:

Tech Paper. HMI Display Readability During Sinusoidal Vibration

Lecture 2 Video Formation and Representation

SUMMARY SCORING SHEETS

If you wish to understand the universe, think of Energy, Frequency and Vibration Nikola Tesla.

Seeing Using Sound. By: Clayton Shepard Richard Hall Jared Flatow

Telephone calls and the Brontosaurus Adam Atkinson

EN2911X: Reconfigurable Computing Topic 01: Programmable Logic. Prof. Sherief Reda School of Engineering, Brown University Fall 2014

Chapter 1. Introduction to Digital Signal Processing

Automatic LP Digitalization Spring Group 6: Michael Sibley, Alexander Su, Daphne Tsatsoulis {msibley, ahs1,

MATLAB Basics 6 plotting

Demonstration of geolocation database and spectrum coordinator as specified in ETSI TS and TS

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

NanoTrack Cell and Particle Tracking Primer

Part 1: Introduction to computer graphics 1. Describe Each of the following: a. Computer Graphics. b. Computer Graphics API. c. CG s can be used in

Goebl, Pampalk, Widmer: Exploring Expressive Performance Trajectories. Werner Goebl, Elias Pampalk and Gerhard Widmer (2004) Introduction

Package colorpatch. June 10, 2017

FACSAria I Standard Operation Protocol Basic Operation

Transcription:

Programming Copyright Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See http://software-carpentry.org/license.html for more information.

Good science requires good visualizations.

Why use for plots? Produces publication quality plots and images Coupled with computation program. Proper visualization might take exploration.

Simplest plot is a line plot: >> plot(m) Plot each column of M as a separate line.

Sample data sets: dow.txt : Daily closing value of Dow Jones Industrial Average, an index of the price of 30 stocks on the New York Sock Exchange sp.txt : Daily closing value of the Standard and Poors 500, a broader index containing 500 stocks.

Data looks like: Year Month Day Value 1950 01 03 198.89 1950 01 04 200.20 1950 01 05 200.57 1950 01 06 200.96 1950 01 07 201.90

Load data: >> dow = importdata( dow.txt ); >> sp = importdata( sp.txt ); Simple plot: >> plot(dow(:,4))

>> plot(dow(:,4))

>> plot(dow(:,4)) Was this 1987?

>> plot(dow(:,4)) What does the X axis mean?

>> dow(1,1:3) ans = 1950 1 3 Year Month Day

>> time = dow(1,:) + (dow(2,:)-1) / 12 + (dow(3,:)-1) / 30 / 12 Plot the Dow s value versus time: >> plot(time, dow(:,4))

>> plot(time, dow(:,4))

What if we want to edit the plot?

What if we want to edit the plot?

What if we want to edit the plot? Provides access to plot details

What if we want to edit the plot? Change line Add markers Many other options.

Compare the Dow to the S&P: >> stocks = [dow(:,4) sp(:,4)]; >> plot(time, stocks); Plotting a matrix (stocks) against a vector(time) plots each column of the matrix with the shared X-axis.

>> plot(time, stocks);

Rescale the indices to start at the same place: >> d2 = dow(:,4) / dow(1:4); >> s2 = sp(:,4) / sp(1,4); >> plot(time, [d2 s2]);

>> plot(time, [d2 s2]);

has utilities to plot many kinds of data: hist: histograms pie: pie charts bar, barh: bar charts Even many kinds of 3D charts: pie3 bar3 pareto

A lot of data is one dimensional what about 2-D data? Example: geographically oriented data. Ever wondered where people tweet the most?

Question: what places in Toronto are the most popular locations for people to send a geolocated tweet? Data collection: Record all geolocated tweets for 2 months. Divide the city into a grid and count the number of tweets in each cell of the grid.

Question: what places in Toronto are the most popular locations for people to send a geolocated tweet? Data collection: Record all geolocated tweets for 2 months. Divide the city into a grid and count the number of tweets in each cell of the grid. Data: a matrix of grid centers and the relative number of tweets in that spot.

Question: what places in Toronto are the most popular locations for people to send a geolocated tweet? Data collection: Record all geolocated tweets for 2 months. Divide the city into a grid and count the number of tweets in each cell of the grid. Data: a matrix of grid centers and the relative number of tweets in that spot.

>> image(data);

>> image(data);

image(): Take either an N X M or N X M X 3 array. Third dimension is for three channels of a color image. Map each location a color using a colormap.

Data 45 1 1 1 46 1 1 1 46 1 1 1 46 45 45 45 Colormap Only use first column because Data is 4x4 Image

A colormap is a color guide that maps the values 0.0 to 64.0 to colors. Many colormaps Just check >> help colormaps for all the options.

A colormap is a color guide that maps the values 0.0 to 64.0 to colors. Many colormaps Just check >> help colormaps for all the options. What if our matrix has a different range?

>> imagesc(data); Scales the matrix to use the entire colormap.

Key: imagesc scales the data linearly. Our data: >> max(max(data)) 1.93 e+04 >> min(min(data)) 2.05 e-24 >> mean(mean(data)) 1.1190 Our data is scaled exponentially

>> imagesc(log(data));

>> imagesc(log(data)), colormap gray;

>> imagesc(log(data)), colormap hot;

Conclusion: Imaging is a powerful way to explore data but be sure to take full advantage of the pattern in that data.

created by Richard T. Guy February 2011 Copyright Software Carpentry 2011 This work is licensed under the Creative Commons Attribution License See http://software-carpentry.org/license.html for more information.