Importing Excel Data & Exporting Data to Excel

Slides:



Advertisements
Similar presentations
Microsoft Excel 2002 Microsoft Excel is a powerful spreadsheet program that helps you to organize data complete calculations make decisions graph data.
Advertisements

The Petroleum Registry of Alberta Training Session September 27, 2004 The Petroleum Registry of Alberta Energizing the flow of information.
259 Lecture 17 Working with Data in MATLAB. Overview  In this lecture, we’ll look at some commands that are useful for working with data!  fzero  sum,
Introduction to MATLAB for Biomedical Engineering BME 1008 Introduction to Biomedical Engineering FIU, Spring 2015 Lesson 2: Element-wise vs. matrix operations.
Using MatLab and Excel to Solve Building Energy Simulation Problems Jordan Clark
Review for Excel Chapter 1
Data Integration and Consolidation. Create Folder at Drive C: Name of folders to be created: BMS-ALLOTMENT BMS-UTILIZATION BMS-PRIORYEARS BMSAllData Name.
CS231A Matlab Tutorial Philip Lee Winter Overview  Goals › Introduction to Matlab › Matlab Snippets › Basic image manipulations › Helpful Matlab.
Check Available – For a specific day iBooking – Menu.
Visualizing Multiple Physician Office Locations Exercise 9 GIS in Planning and Public Health Wansoo Im, Ph.D.
Fall 2006AE6382 Design Computing1 Matlab File & Directory Management Learning Objectives Define file input and output terminology Compare high and low.
Ver1.3. Graphing LIBS spectral data with Excel Open the LIBS-Data-Sample1.csv file STEP 1.
ME457 Mechatronic System Modeling MICHIGAN STATE UNIVERSITY Matlab® refresher Your objective: to dominate! My objective: to help you dominate!
AN ENGINEER’S GUIDE TO MATLAB
MATLAB Lecture One Monday 4 July Matlab Melvyn Sim Department of Decision Sciences NUS Business School
THE MATLAB ENVIRONMENT VARIABLES BASIC COMMANDS HELP HP 100 – MATLAB Wednesday, 8/27/2014
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…
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
CMPS 1371 Introduction to Computing for Engineers FILE Input / Output.
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
Lecture 2 - Matlab Introduction CVEN 302 June 5, 2002.
Graphical Analysis in Excel EGN 1006 – Introduction to Engineering.
ENG College of Engineering Engineering Education Innovation Center 1 More Script Files in MATLAB Script File I/O : Chapter 4 1.Global Variables.
How do I export the Address Book to Excel? The first step is to go to "Address Book Report" under Admin Only menu Choose the fields you want. note that.
Lecture 1: Matlab Universe
MCE 372 Engineering Analysis MATLAB Review. M ATLAB – What Is It ? Where Is It? Name is from matrix laboratory Powerful tool for – Computation and visualization.
Introduction to Engineering MATLAB – 7 Script Files - 2 Agenda Script files continued.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
ACCPAC KPI Geni Whitehouse, CPA. Where does it fit?  Must have CFO  Pulls data from CFO.
Function Of Microsoft Words Tables. Where Table section is located Table section is located on top row with File, Edit, View, Insert, Format, Tools, Window.
CO Hands–on Activity: Hands-on activity II: Downloading L2 AIRS data & Visualizing L2 AIRS data (a time-consuming alternative to using IDL or Matlab to.
ME 142 Engineering Computation I Exam 3 Review Mathematica.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Recap Functions with No input OR No output Determining The Number of Input and Output Arguments Local Variables Global Variables Creating ToolBox of Functions.
Copyright © 2005 by Nelson, a division of Thomson Canada Limited 14-0 EXCEL CHAPTER 14 PHILIP BEDIENT.
We are tracking the position of an object as it is launched with an initial speed of 40m/s at an angle of 45 o. The system we are using to track the object.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Intro to Matlab Yipei Wang & Qihui Li {yipeiw,
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
“Moh’d Sami” AshhabSummer 2008University of Jordan MATLAB By (Mohammed Sami) Ashhab University of Jordan Summer 2008.
Equations of Straight Line Graphs. Graphs parallel to the y -axis All graphs of the form x = c, where c is any number, will be parallel to the y -axis.
How to Construct Data Tables and Graph Your Data Proper Methods for Basic Lab Skills.
How to Construct Data Tables and Graph Your Data Proper Methods for Basic Lab Skills.
Prof. Mark Glauser Created by: David Marr
processing tabular data
MATLAB Introduction Dr. Theodore Cleveland University of Houston
(Mohammed Sami) Ashhab
Using Excel to Graph Data
Advanced Data Import & Export Jeff Henrikson
working toward a script that will help analyze data
MCE 372 Engineering Analysis
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
The Petroleum Registry of Alberta Energizing the flow of information
Lecture 2 Introduction to MATLAB
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Code is on the Website Outline Comparison of Excel and R
Matlab Training Session 5: Importing Data
Introduction to MATLAB Programming
funCTIONs and Data Import/Export
Using Excel to Graph Data
Islamic University of Gaza
Graphing linear equations
y x y = x + 2 y = x + 4 y = x – 1 y = 6x – 3 y = 2x y = ½x y = 3x + 1
Graphing with X- and Y-Intercepts
Your objective: to dominate! My objective: to help you dominate!
ME 123 Computer Applications I Lecture 4: Vectors and Matrices 3/14/03
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
ME 123 Computer Applications I Lecture 7: Basic Functions 3/20/03
Presentation transcript:

Importing Excel Data & Exporting Data to Excel

Importing Data from Excel Data is easily imported from Excel to MATLAB by using the xlsread function. >> ArrayName = xlsread(‘filename’,CellsToBeRead) The Import tool can also be used to import data from Excel.

Creating a Vector from Excel Data Be sure to save LEC3_excel_example.xlsx into your MATLAB working directory Open the file in excel. You will notice that the file has headings in column A and B while the date goes from cell A2:B22. In Matlab type, >> data = xlsread(‘LEC3_excel_example.xlsx’, ‘A2:B22’) 4. Notice the output ( do not use a ; to suppress the output) 5. You can do many operations with the 2 column vector called data.

Creating a plot from Excel Data In Matlab type, >> data = xlsread(‘LEC3_excel_example.xlsx’) 2. Notice the output ( do not use a ; to suppress the output) 3. You can do many operations with the 2 column vector called data. It has also ignored the headings!! 4. Please suppress the output in your script files unless you want to see the output. 5. Now to plot the data. Look at the headings in the excel file. They are time and power. Time looks manipulated so it goes on the x axis. 6. Type in Matlab >> time = data(:,1) 7. Notice a 1 column vector named “time” 8. Now type in Matlab >> power = data(:,2) Notice a 1 column vector named “time” 9. Now plot time on x axis and power on y axis. Type in Matlab >> plot(time,power)

Creating a plot from Excel Data 1.Type in Matlab >> poly2nd = polyfit(time,power,2) 2.Notice the output >> poly2nd = 2.9817 -6.6328 5.1547 If you need more decimal places use the ‘format long’  command 3. The best fit equation to a second order polynomial would be y=2.9817x^2 - 6.6328x +5.1547 4. Place the data and the fitted line on the plot >> t=time; >> p=2.9817*t.^2 - 6.6328*t +5.1547; >> plot(time,power,t,p) >> legend('data','fit')