MATH36032 Problem Solving by Computer. More Data Structure

Size: px
Start display at page:

Download "MATH36032 Problem Solving by Computer. More Data Structure"

Transcription

1 MATH36032 Problem Solving by Computer More Data Structure

2 Data from real life/applications How do the data look like? In what format?

3 Data from real life/applications How do the data look like? In what format? Open data websites: Historical weather data: Official Statistics of UK: or google flu trend data, or the purchasing order data for Project 3? MS excel, txt (plain text), csv (comma separated value), xlm (extensible Markup Language), json (JavaScript Object Notation),...

4 Data Structure Different data (numerical, symbolic, characters,...) in computer: require different memory for storage are organised differently in memory have different operations

5 Data Type we have seen so far Numeric Types: double, single, int8, int16, int32, int64, uint8, uint16, uint32, uint64 Symbolic: defined by syms or symfun Logical: true,false Function Handles: to allow function as input argument in other functions (like integral or fminbnd) Characters and strings: A = string 1 Warning: not all new data structures are implemented in Octave

6 Data Type we have seen so far Numeric Types: double, single, int8, int16, int32, int64, uint8, uint16, uint32, uint64 Symbolic: defined by syms or symfun Logical: true,false Function Handles: to allow function as input argument in other functions (like integral or fminbnd) Characters and strings: A = string Other common data types: Structures, Cell Arrays, user defined class (object oriented programming),... New data types introduced recently 1 : Time Series (2006b), Table (2013b), Categorical Arrays (2013b), Date and Time (2015b),... 1 Warning: not all new data structures are implemented in Octave

7 Data type: Characters and Strings Create string (a vector of characters) by single quotation marks: str = 'Hello World!'; get individual character by str(1), str(6),... conversion between characters and numbers: double(str), char([ ]) Character Array (vector of string characters, i.e., a matrix): proj = ['taxicab number '; 'catalan constant '; 'reciprocal square']. Notice the spaces and semicolon (to match the size of each string). Equivalent way (no need to put empty space in the input): proj = char('taxicab number','catalan constant','reciprocal square') Other related commands (the equivalent vector operation may be faster): ischar, strfind, strcat, strcmp,...

8 Data type: Cell arrays Used to hold array of mixed data types (Notice the curly brackets {} use here!): C = {[1 2 3], 'MATLAB', [3;2;1], ones(2)}; proj = {'logistic','motion','data'}; Two ways to access data: C(2) (which is still a cell array) and C{2} (which is the character string 'MATLAB'). Adding cell to C = {1, 2, 3 }: C{4}=4 or C(4)={4}; (notice these two equivalent ways) Deleting cell: C(2)=[]; notice that C{2}=[] does not delete the element (just make it empty). Try experiments (especially about the difference between {} and ()), instead of remembering the rules.

9 Structure array using struct Student array student(1) student(2) FirstName John LastName Doe BirthDate EntryYear 2013 General syntax: variable.field = value student (1). FirstName = 'John '; student (1). LastName = 'Doe '; student (1). BirthDate = ' '; student ( 1). EntryYear = 2013; The output sol from ODE solvers like sol = ode45(...) is also a structure array!

10 Structure array using struct, alternative method Student array student(1) student(2) FirstName John LastName Doe BirthDate EntryYear 2013 student = struct (... ' FirstName ', { 'John ',[],[]},... ' LastName ',{ 'Doe ',[],[]},... ' BirthDate ',{ ' ',[],[]},... ' EntryYear ',{2013,[],[]});

11 Structure array, related functions Access Data: student(1).firstname Concatenate Structures: struct1.a = 'first'; struct1.b = [1,2,3]; struct2.a = 'second'; struct2.b = rand(2); combined = [struct1, struct2] Make sure all structures to be concatenate have the same fields! Field of structure array: getfield(student(1),'firstname'), which is the same as student(1).firstname

12 Table: column-oriented heterogeneous data The excel spreedsheet in MATLAB LastName ={ ' Smith '; ' Johnson '; ' Jones '}; Gender ={ 'Male '; 'Male '; ' Female '}; Age =[24; 35; 39]; Smoker =[1;0;0]; T= table ( LastName, Gender,Age, Smoker );

13 Table: column-oriented heterogeneous data The excel spreedsheet in MATLAB LastName ={ ' Smith '; ' Johnson '; ' Jones '}; Gender ={ 'Male '; 'Male '; ' Female '}; Age =[24; 35; 39]; Smoker =[1;0;0]; T= table ( LastName, Gender,Age, Smoker ); All inputs are column vectors The cell arrays LastName and Gender can be defined using string arrays: LastName=char('Smith','Johnson','Jones'); Gender=char('Male','Male','Female');

14 Different ways to access Data in a Table Get elements (of data type table): T(1,:),T(:,2) Get elements (data type is the same as the extracted data ): T{1,2}, T{1,3}, Get the column: T.Gender Get the row: LastName ={ 'Smith '; ' Johnson '; 'Jones '}; T. Properties. RowNames = LastName ; T({ 'Jones '},2:3);

15 Different ways to access Data in a Table Get elements (of data type table): T(1,:),T(:,2) Get elements (data type is the same as the extracted data ): T{1,2}, T{1,3}, Get the column: T.Gender Get the row: LastName ={ 'Smith '; ' Johnson '; 'Jones '}; T. Properties. RowNames = LastName ; T({ 'Jones '},2:3); You need to read and manipulate data using table for the last project.

16 Summary of the key commands for table readtable: create table from delimited text files (*.txt, *.dat, *.csv) and spreadsheet files (*.xls, *.xlsx, *.xlsb, *.xlsm, *.xltm, *.xltx, *.ods) array2table, cell2table, struct2table, table2array, table2cell, table2struc: conversion between table and other data types height, width: Number of rows and variables summary: Print summary of table

Corso di Identificazione dei Modelli e Analisi dei Dati

Corso di Identificazione dei Modelli e Analisi dei Dati Università degli Studi di Pavia Dipartimento di Ingegneria Industriale e dell Informazione Corso di Identificazione dei Modelli e Analisi dei Dati Data Import Prof. Giuseppe De Nicolao, Federica Acerbi,

More information

Dr. Iyad Jafar. Adapted from the publisher slides

Dr. Iyad Jafar. Adapted from the publisher slides Computer Applications Lab Lab 2 Arrays in Matlab Chapter 2 Sections 1,2,6,7 Dr. Iyad Jafar Adapted from the publisher slides Outline Introduction Arrays in Matlab Vectors and arrays Creation Addressing

More information

Importing a txt or csv file into ArcGIS Online [AGO]

Importing a txt or csv file into ArcGIS Online [AGO] Importing a txt or csv file into ArcGIS Online [AGO] Spring 2014 This is how to find addresses online and copy them into an Excel spreadsheet, save them in a format that ArcGIS can use, and then import

More information

Expressions and Variables

Expressions and Variables Expressions and Variables Expressions print(expression) An expression is evaluated to give a value. For example: 2 + 9-6 Evaluates to: 5 Data Types Integers 1, 2, 3, 42, 100, -5 Floating points 2.5, 7.0,

More information

C++ Programming: From Problem Analysis to Program Design, Third Edition

C++ Programming: From Problem Analysis to Program Design, Third Edition C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 2: Basic Elements of C++ Objectives (continued) Become familiar with the use of increment and decrement operators Examine

More information

Lecture (03) Arrays. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering

Lecture (03) Arrays. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering Lecture (03) Arrays By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering Characters and Strings Strings are defined by delimiting text with single quotation

More information

CSCE 120: Learning To Code

CSCE 120: Learning To Code CSCE 120: Learning To Code Manipulating Data I Introduction This module is designed to get you started working with data by understanding and using variables and data types in JavaScript. It will also

More information

Introduction to CS databases and statistics in Excel Jacek Wiślicki, Laurent Babout,

Introduction to CS databases and statistics in Excel Jacek Wiślicki, Laurent Babout, One of the applications of MS Excel is data processing and statistical analysis. The following exercises will demonstrate some of these functions. The base files for the exercises is included in http://lbabout.iis.p.lodz.pl/teaching_and_student_projects_files/files/us/lab_04b.zip.

More information

Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva

Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva Econ 329 - Stata Tutorial I: Reading, Organizing and Describing Data Sanjaya DeSilva September 8, 2008 1 Basics When you open Stata, you will see four windows. 1. The Results window list all the commands

More information

17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA Document Variables Code Variables... 1

17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA Document Variables Code Variables... 1 17 - Variables Contents 17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA... 1 Document Variables... 1 Code Variables... 1 The List of document variables and the List of code variables... 1 Managing

More information

Mobile App:IT. Methods & Classes

Mobile App:IT. Methods & Classes Mobile App:IT Methods & Classes WHAT IS A METHOD? - A method is a set of code which is referred to by name and can be called (invoked) at any point in a program simply by utilizing the method's name. -

More information

Objectives. In this chapter, you will:

Objectives. In this chapter, you will: Objectives In this chapter, you will: Become familiar with functions, special symbols, and identifiers in C++ Explore simple data types Discover how a program evaluates arithmetic expressions Learn about

More information

C Syntax Arrays and Loops Math Strings Structures Pointers File I/O. Final Review CS Prof. Jonathan Ventura. Prof. Jonathan Ventura Final Review

C Syntax Arrays and Loops Math Strings Structures Pointers File I/O. Final Review CS Prof. Jonathan Ventura. Prof. Jonathan Ventura Final Review CS 2060 Variables Variables are statically typed. Variables must be defined before they are used. You only specify the type name when you define the variable. int a, b, c; float d, e, f; char letter; //

More information

(Updated 29 Oct 2016)

(Updated 29 Oct 2016) (Updated 29 Oct 2016) 1 Class Maker 2016 Program Description Creating classes for the new school year is a time consuming task that teachers are asked to complete each year. Many schools offer their students

More information

Introduction to StatKey Getting Data Into StatKey

Introduction to StatKey Getting Data Into StatKey Introduction to StatKey 2016-17 03. Getting Data Into StatKey Introduction This handout assumes that you do not want to type in the data by hand. This handout shows you how to use Excel and cut and paste

More information

CSV Import Guide. Public FINAL V

CSV Import Guide. Public FINAL V CSV Import Guide FINAL V1.1 2018-03-01 This short guide demonstrates how to prepare and open a CSV data file using a spreadsheet application such as Excel. It does not cover all possible ways to open files.

More information

Chapter 5: Compatibility of Data Files

Chapter 5: Compatibility of Data Files Importing data from other format Files Chapter 5: Compatibility of Data Files Importing Text Files Creating a translation structure Example. Import 'EmployeePayroll.txt' as 'EmployeePayroll.mb' Importing

More information

IMPORTING A STUDENT LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST

IMPORTING A STUDENT  LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST IMPORTING A STUDENT EMAIL LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST In Synergy create a report for each class. 1. Log in to Synergy. 2. Open the list of available reports; select the Reports icon from

More information

Group Administrator. ebills csv file formatting by class level. User Guide

Group Administrator. ebills csv file formatting by class level. User Guide Group Administrator ebills csv file formatting by class level User Guide Version 1.0 February 10, 2015 Table of Content Excel automated template... 3 Enable Macro setting in Microsoft Excel... 3 Extracting

More information

relational Key-value Graph Object Document

relational Key-value Graph Object Document NoSQL Databases Earlier We have spent most of our time with the relational DB model so far. There are other models: Key-value: a hash table Graph: stores graph-like structures efficiently Object: good

More information

An Introduction to MATLAB

An Introduction to MATLAB An Introduction to MATLAB Day 1 Simon Mitchell Simon.Mitchell@ucla.edu High level language Programing language and development environment Built-in development tools Numerical manipulation Plotting of

More information

GiftWorks Import Guide Page 2

GiftWorks Import Guide Page 2 Import Guide Introduction... 2 GiftWorks Import Services... 3 Import Sources... 4 Preparing for Import... 9 Importing and Matching to Existing Donors... 11 Handling Receipting of Imported Donations...

More information

Instructions for Getting Data into Google Earth

Instructions for Getting Data into Google Earth Instructions for Getting Data into Google Earth 21/10/14 1. Making simple placemarks in Google Earth from an Excel table An excel sheet can be set up with lat/long data and then put through a website like

More information

Use of spreadsheets in general

Use of spreadsheets in general Use of spreadsheets in general Basic spreadsheet applications-simple counting rows and columns. Financial modeling - especially in sensitivity analysis. Scientific and technical computing. Presentation

More information

IMPORTING DATA INTO EMPLOYEE TRAINING MANAGER

IMPORTING DATA INTO EMPLOYEE TRAINING MANAGER IMPORTING DATA INTO EMPLOYEE TRAINING MANAGER January 2018 Description This document describes how to import your employee, course and competency data into Employee Training Manager, a desktop software

More information

CME 192: Introduction to Matlab

CME 192: Introduction to Matlab CME 192: Introduction to Matlab Matlab Basics Brett Naul January 15, 2015 Recap Using the command window interactively Variables: Assignment, Identifier rules, Workspace, command who and whos Setting the

More information

IMPORTING A STUDENT LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST

IMPORTING A STUDENT  LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST IMPORTING A STUDENT EMAIL LIST FROM SYNERGY INTO A GOOGLE CONTACT LIST In Synergy create a report for each class. 1. Log in to Synergy. 2. Open the list of available reports; select the Reports icon from

More information

Computer Programming. C Array is a collection of data belongings to the same data type. data_type array_name[array_size];

Computer Programming. C Array is a collection of data belongings to the same data type. data_type array_name[array_size]; Arrays An array is a collection of two or more adjacent memory cells, called array elements. Array is derived data type that is used to represent collection of data items. C Array is a collection of data

More information

Working with Variables: Primary Document Families

Working with Variables: Primary Document Families WORKING WITH VARIABLES: PRIMARY DOCUMENT FAMILIES 245 Working with Variables: Primary Document Families PD families as variables can be used in queries and SPSS jobs. Use PD-Family tables to assign PDs

More information

USER MANUAL BULK UPLOAD CONTENTS FEBRUARY 2014 INTRODUCTION 2 1. HOW DO I ACCESS THE BULK UPLOAD FACILITY? 3 2. BULK UPLOAD CODES 4

USER MANUAL BULK UPLOAD CONTENTS FEBRUARY 2014 INTRODUCTION 2 1. HOW DO I ACCESS THE BULK UPLOAD FACILITY? 3 2. BULK UPLOAD CODES 4 USER MANUAL BULK UPLOAD CONTENTS INTRODUCTION 2. HOW DO I ACCESS THE BULK UPLOAD FACILITY? 3 2. BULK UPLOAD CODES 4 3. BULK UPLOAD TEMPLATE - EXCEL FORMAT 5 4. BULK UPLOAD TEMPLATE - CSV FORMAT 0 5. ACW

More information

String Objects: The string class library

String Objects: The string class library String Objects: The string class library Lecture 23 COP 3014 Spring 2017 March 7, 2017 C-strings vs. string objects In C++ (and C), there is no built-in string type Basic strings (C-strings) are implemented

More information

StatsMate. User Guide

StatsMate. User Guide StatsMate User Guide Overview StatsMate is an easy-to-use powerful statistical calculator. It has been featured by Apple on Apps For Learning Math in the App Stores around the world. StatsMate comes with

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Introduction to R Commander

Introduction to R Commander Introduction to R Commander 1. Get R and Rcmdr to run 2. Familiarize yourself with Rcmdr 3. Look over Rcmdr metadata (Fox, 2005) 4. Start doing stats / plots with Rcmdr Tasks 1. Clear Workspace and History.

More information

Getting started with Minitab 14 for Windows

Getting started with Minitab 14 for Windows INFORMATION SYSTEMS SERVICES Getting started with Minitab 14 for Windows This document provides an introduction to the Minitab (Version 14) statistical package. AUTHOR: Information Systems Services, University

More information

7/8/10 KEY CONCEPTS. Problem COMP 10 EXPLORING COMPUTER SCIENCE. Algorithm. Lecture 2 Variables, Types, and Programs. Program PROBLEM SOLVING

7/8/10 KEY CONCEPTS. Problem COMP 10 EXPLORING COMPUTER SCIENCE. Algorithm. Lecture 2 Variables, Types, and Programs. Program PROBLEM SOLVING KEY CONCEPTS COMP 10 EXPLORING COMPUTER SCIENCE Lecture 2 Variables, Types, and Programs Problem Definition of task to be performed (by a computer) Algorithm A particular sequence of steps that will solve

More information

Chapter 8 Arrays and Strings. Objectives. Objectives (cont d.) Introduction. Arrays 12/23/2016. In this chapter, you will:

Chapter 8 Arrays and Strings. Objectives. Objectives (cont d.) Introduction. Arrays 12/23/2016. In this chapter, you will: Chapter 8 Arrays and Strings Objectives In this chapter, you will: Learn about arrays Declare and manipulate data into arrays Learn about array index out of bounds Learn about the restrictions on array

More information

COMPUTING AND DATA ANALYSIS WITH EXCEL. Managing Datasets

COMPUTING AND DATA ANALYSIS WITH EXCEL. Managing Datasets COMPUTING AND DATA ANALYSIS WITH EXCEL Managing Datasets Introduction In industry, the data that you need to analyse for trends, curve fitting or other purposes may come from other programs like C or C++

More information

Database Concepts Using Microsoft Access

Database Concepts Using Microsoft Access lab Database Concepts Using Microsoft Access 9 Objectives: Upon successful completion of Lab 9, you will be able to Understand fundamental concepts including database, table, record, field, field name,

More information

Touchline Software

Touchline Software Tutorial: Importing Student Data Completing this tutorial will require the limited periodic assistance of the administrator for your student management database system (i.e. Aries, SASI, etc.). General

More information

String Manipulation. Chapter 7. Attaway MATLAB 4E

String Manipulation. Chapter 7. Attaway MATLAB 4E String Manipulation Chapter 7 Attaway MATLAB 4E Strings: Terminology A string in MATLAB consists of any number of characters and is contained in single quotes strings are vectors in which every element

More information

C Style Strings. Lecture 11 COP 3014 Spring March 19, 2018

C Style Strings. Lecture 11 COP 3014 Spring March 19, 2018 C Style Strings Lecture 11 COP 3014 Spring 2018 March 19, 2018 Recap Recall that a C-style string is a character array that ends with the null character Character literals in single quotes a, \n, $ string

More information

CSC Web Technologies, Spring Web Data Exchange Formats

CSC Web Technologies, Spring Web Data Exchange Formats CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between

More information

Chapter Two PROGRAMMING WITH NUMBERS AND STRINGS

Chapter Two PROGRAMMING WITH NUMBERS AND STRINGS Chapter Two PROGRAMMING WITH NUMBERS AND STRINGS Introduction Numbers and character strings are important data types in any Python program These are the fundamental building blocks we use to build more

More information

SSID User Guide and Policy

SSID User Guide and Policy OSPI SSID User Guide and Policy Using the Comprehensive Education Data and Research System to obtain State Student Identifiers Customer Support September 2017 Table of Contents Introduction... 3 Using

More information

1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d.

1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d. Gaddis: Starting Out with Python, 2e - Test Bank Chapter Two MULTIPLE CHOICE 1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical

More information

Excel VLOOKUP. An EMIS Coordinator s Friend

Excel VLOOKUP. An EMIS Coordinator s Friend Excel VLOOKUP An EMIS Coordinator s Friend Vlookup, a function in excel, stands for Vertical Lookup. This function allows you to search a specific table of data, look for a match within the table of data

More information

Tips for Completing ISBE SIS Student Demographics Excel Template

Tips for Completing ISBE SIS Student Demographics Excel Template Always work in the Excel Template/file when making any changes to student information. Do not make any changes to information in the CSV format as the formatting will be lost and errors may result when

More information

MATH36032 Problem Solving by Computer. Data Science

MATH36032 Problem Solving by Computer. Data Science MATH36032 Problem Solving by Computer Data Science NO. of jobs on jobsite 1 10000 NO. of Jobs 8000 6000 4000 2000 MATLAB Data Data Science 0 Jan 2016 Jul 2016 Jan 2017 1 http://www.jobsite.co.uk/ What

More information

R in Linguistic Analysis. Week 2 Wassink Autumn 2012

R in Linguistic Analysis. Week 2 Wassink Autumn 2012 R in Linguistic Analysis Week 2 Wassink Autumn 2012 Today R fundamentals The anatomy of an R help file but first... How did you go about learning the R functions in the reading? More help learning functions

More information

Computer Science & Engineering 120 Learning to Code

Computer Science & Engineering 120 Learning to Code Computer Science & Engineering 120 Learning to Code Introduction to Data Christopher M. Bourke cbourke@cse.unl.edu Part I: Working With Data Topic Overview Data Data Formats Data Operations Introduction

More information

Python - Variable Types. John R. Woodward

Python - Variable Types. John R. Woodward Python - Variable Types John R. Woodward Variables 1. Variables are nothing but named reserved memory locations to store values. This means that when you create a variable you reserve some space in memory.

More information

TIPS FROM THE TRENCHES

TIPS FROM THE TRENCHES TIPS FROM THE TRENCHES Christopher Bost MDRC SAS Users Group October 1, 2008 Recent user questions 2 How can I print long character values? How can I EXPORT formatted values to Excel? How can I check for

More information

Tips on Excel. Discover some tips to organize and lay out your Excel file and convert it into a CSV or PDF file.

Tips on Excel. Discover some tips to organize and lay out your Excel file and convert it into a CSV or PDF file. Tips on Excel Your business partners or retailers are listed in an Excel file and you want to put them on an interactive map? It's simple with the Click2map's Editor. A simple import process exists to

More information

LECTURE 15. String I/O and cstring library

LECTURE 15. String I/O and cstring library LECTURE 15 String I/O and cstring library RECAP Recall that a C-style string is a character array that ends with the null character. Character literals in single quotes: 'a', '\n', '$ String literals in

More information

Write a C program using arrays and structure

Write a C program using arrays and structure 03 Arrays and Structutes 3.1 Arrays Declaration and initialization of one dimensional, two dimensional and character arrays, accessing array elements. (10M) 3.2 Declaration and initialization of string

More information

1 Welcome to Microsoft Excel 2007

1 Welcome to Microsoft Excel 2007 1 Welcome to Microsoft Excel 2007 The Excel Window With Office 2007, Microsoft has abandoned the interface consisting of a menu and a collection of toolbars so common in all Windows applications until

More information

Chapter 10. Arrays and Strings

Chapter 10. Arrays and Strings Christian Jacob Chapter 10 Arrays and Strings 10.1 Arrays 10.2 One-Dimensional Arrays 10.2.1 Accessing Array Elements 10.2.2 Representation of Arrays in Memory 10.2.3 Example: Finding the Maximum 10.2.4

More information

ENGR 1181 MATLAB 02: Array Creation

ENGR 1181 MATLAB 02: Array Creation ENGR 1181 MATLAB 02: Array Creation Learning Objectives: Students will read Chapter 2.1 2.4 of the MATLAB book before coming to class. This preparation material is provided to supplement this reading.

More information

Full file at

Full file at Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class

More information

Introduction to Stata Getting Data into Stata. 1. Enter Data: Create a New Data Set in Stata...

Introduction to Stata Getting Data into Stata. 1. Enter Data: Create a New Data Set in Stata... Introduction to Stata 2016-17 02. Getting Data into Stata 1. Enter Data: Create a New Data Set in Stata.... 2. Enter Data: How to Import an Excel Data Set.... 3. Import a Stata Data Set Directly from the

More information

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Princess Nourah bint Abdulrahman University. Computer Sciences Department Princess Nourah bint Abdulrahman University 1 And use http://www.w3schools.com/ JavaScript Objectives Introduction to JavaScript Objects Data Variables Operators Types Functions Events 4 Why Study JavaScript?

More information

Database in Everyday Life by Assoc. Prof. Dr. Churee Techawut adapted into English by Dr. Prakarn Unachak

Database in Everyday Life by Assoc. Prof. Dr. Churee Techawut adapted into English by Dr. Prakarn Unachak http://www.accessrepairnrecovery.com/blog/wp-content/uploads/2017/ 04/boxbarimage5.jpg Database in Everyday Life by Assoc. Prof. Dr. Churee Techawut adapted into English by Dr. Prakarn Unachak 204100 IT

More information

Importing and exporting Net2 user data

Importing and exporting Net2 user data Importing and exporting user data User data User data is defined as all the information holds about an individual cardholder. Often most of this information already exists in other databases owned by the

More information

ONE DIMENSIONAL ARRAYS

ONE DIMENSIONAL ARRAYS LECTURE 14 ONE DIMENSIONAL ARRAYS Array : An array is a fixed sized sequenced collection of related data items of same data type. In its simplest form an array can be used to represent a list of numbers

More information

Chapter 5. Section 5.4 The Common String Library Functions. CS 50 Hathairat Rattanasook

Chapter 5. Section 5.4 The Common String Library Functions. CS 50 Hathairat Rattanasook Chapter 5 Section 5.4 The Common String Library Functions CS 50 Hathairat Rattanasook Library Functions We already discussed the library function fgets() Library functions are available: to find the length

More information

NCSS Statistical Software. Design Generator

NCSS Statistical Software. Design Generator Chapter 268 Introduction This program generates factorial, repeated measures, and split-plots designs with up to ten factors. The design is placed in the current database. Crossed Factors Two factors are

More information

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors.

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors. Physics 326G Winter 2008 Class 2 In this class you will learn how to define and work with arrays or vectors. Matlab is designed to work with arrays. An array is a list of numbers (or other things) arranged

More information

More Skills 12 Create Web Queries and Clear Hyperlinks

More Skills 12 Create Web Queries and Clear Hyperlinks CHAPTER 9 Excel More Skills 12 Create Web Queries and Clear Hyperlinks Web queries are requests that are sent to web pages to retrieve and display data in Excel workbooks. Web queries work best when retrieving

More information

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

COP 3223 Introduction to Programming with C - Study Union - Fall 2017 COP 3223 Introduction to Programming with C - Study Union - Fall 2017 Chris Marsh and Matthew Villegas Contents 1 Code Tracing 2 2 Pass by Value Functions 4 3 Statically Allocated Arrays 5 3.1 One Dimensional.................................

More information

Introduction to SPSS Edward A. Greenberg, PhD

Introduction to SPSS Edward A. Greenberg, PhD Introduction to SPSS Edward A. Greenberg, PhD ASU HEALTH SOLUTIONS DATA LAB JANUARY 7, 2013 Files for this workshop Files can be downloaded from: http://www.public.asu.edu/~eagle/spss or (with less typing):

More information

Web Scraping XML/JSON. Ben McCamish

Web Scraping XML/JSON. Ben McCamish Web Scraping XML/JSON Ben McCamish We Have a Lot of Data 90% of the world s data generated in last two years alone (2013) Sloan Sky Server stores 10s of TB per day Hadron Collider can generate 500 Exabytes

More information

ARRAYS(II Unit Part II)

ARRAYS(II Unit Part II) ARRAYS(II Unit Part II) Array: An array is a collection of two or more adjacent cells of similar type. Each cell in an array is called as array element. Each array should be identified with a meaningful

More information

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

COP 3223 Introduction to Programming with C - Study Union - Fall 2017 COP 3223 Introduction to Programming with C - Study Union - Fall 2017 Chris Marsh and Matthew Villegas Contents 1 Code Tracing 2 2 Pass by Value Functions 4 3 Statically Allocated Arrays 5 3.1 One Dimensional.................................

More information

In order for grades to be imported into GradeSpeed, the following qualifications must be met for each file type below:

In order for grades to be imported into GradeSpeed, the following qualifications must be met for each file type below: Importing Grades into GradeSpeed In order for grades to be imported into GradeSpeed, the following qualifications must be met for each file type below: Example 1: In Microsoft Excel, the workbook must

More information

Structures. Lecture 15 COP 3014 Spring April 16, 2018

Structures. Lecture 15 COP 3014 Spring April 16, 2018 Structures Lecture 15 COP 3014 Spring 2018 April 16, 2018 Motivation We have plenty of simple types for storing single items like numbers, characters. But is this really enough for storing more complex

More information

GET A GRIP ON MACROS IN JUST 50 MINUTES! Arthur Li, City of Hope Comprehensive Cancer Center, Duarte, CA

GET A GRIP ON MACROS IN JUST 50 MINUTES! Arthur Li, City of Hope Comprehensive Cancer Center, Duarte, CA GET A GRIP ON MACROS IN JUST 50 MINUTES! Arthur Li, City of Hope Comprehensive Cancer Center, Duarte, CA ABSTRACT The SAS macro facility, which includes macro variables and macro programs, is the most

More information

In this chapter, you will learn about: An Array Type for Strings. The Standard string Class. Vectors. Introduction Computer Science 1 CS 23021

In this chapter, you will learn about: An Array Type for Strings. The Standard string Class. Vectors. Introduction Computer Science 1 CS 23021 Chapter 8 In this chapter, you will learn about: An Array Type for Strings The Standard string Class Vectors The C Language Representation of Strings (C-Strings) The C-String Variable: Array of Characters

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

A Brief Introduction to R

A Brief Introduction to R A Brief Introduction to R Babak Shahbaba Department of Statistics, University of California, Irvine, USA Chapter 1 Introduction to R 1.1 Installing R To install R, follow these steps: 1. Go to http://www.r-project.org/.

More information

CSV Roll Documentation

CSV Roll Documentation CSV Roll Documentation Version 1.1 March 2015 INTRODUCTION The CSV Roll is designed to display the contents of a Microsoft Excel worksheet in a Breeze playlist. The Excel worksheet must be exported as

More information

CSCI 131, Midterm Exam 1 Review Questions This sheet is intended to help you prepare for the first exam in this course. The following topics have

CSCI 131, Midterm Exam 1 Review Questions This sheet is intended to help you prepare for the first exam in this course. The following topics have CSCI 131, Midterm Exam 1 Review Questions This sheet is intended to help you prepare for the first exam in this course. The following topics have been covered in the first 5 weeks of the course. The exam

More information

Packaging Data for the Web

Packaging Data for the Web Packaging Data for the Web EN 605.481 Principles of Enterprise Web Development Overview Both XML and JSON can be used to pass data between remote applications, clients and servers, etc. XML Usually heavier

More information

Homework 1 Excel Basics

Homework 1 Excel Basics Homework 1 Excel Basics Excel is a software program that is used to organize information, perform calculations, and create visual displays of the information. When you start up Excel, you will see the

More information

PVB CONTACT FORM 7 CALCULATOR PRO DOCUMENTATION

PVB CONTACT FORM 7 CALCULATOR PRO DOCUMENTATION PVB CONTACT FORM 7 CALCULATOR PRO 1.4.1 DOCUMENTATION CONTENTS Contents... 1 1. Installation... 1 2. Form tags... 2 2.1. Calculated value... 2 2.1.1. Example... 2 2.1.2. Formula... 2 2.1.2.1. Note on checkbox

More information

MATLAB Demo. Preliminaries and Getting Started with Matlab

MATLAB Demo. Preliminaries and Getting Started with Matlab Math 250C Sakai submission Matlab Demo 1 Created by G. M. Wilson, revised 12/23/2015 Revised 09/05/2016 Revised 01/07/2017 MATLAB Demo In this lab, we will learn how to use the basic features of Matlab

More information

Exploring Excel COPYRIGHTED MATERIAL CHAPTER STATIONS ALONG THE WAY

Exploring Excel COPYRIGHTED MATERIAL CHAPTER STATIONS ALONG THE WAY CHAPTER 1 Exploring Excel STATIONS ALONG THE WAY Finding out what you can do with Excel Using the Ribbon interface Getting familiar with the different tabs Understanding Excel document types and the new

More information

gcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world

gcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world alun@debian:~$ gcc hello.c alun@debian:~$ a.out Hello, world alun@debian:~$ gcc -o hello hello.c alun@debian:~$ hello Hello, world alun@debian:~$ 1 A Quick guide to C for Networks and Operating Systems

More information

GUARDTOOL IMPORTER ADDENDUM

GUARDTOOL IMPORTER ADDENDUM EPI Suite 6.x GUARDTOOL IMPORTER ADDENDUM 1. Importing text files (*.txt,.csv) and Excel files (.xls) with the Jet Engine If the files that you want to import are in the list of the Jet Engine drivers

More information

JME Language Reference Manual

JME Language Reference Manual JME Language Reference Manual 1 Introduction JME (pronounced jay+me) is a lightweight language that allows programmers to easily perform statistic computations on tabular data as part of data analysis.

More information

[301] JSON. Tyler Caraza-Harter

[301] JSON. Tyler Caraza-Harter [301] JSON Tyler Caraza-Harter Learning Objectives Today JSON differences with Python syntax creating JSON files reading JSON files Read: Sweigart Ch 14 https://automatetheboringstuff.com/chapter14/ JSON

More information

Today s topics. Announcements/Reminders: Characters and strings Review of topics for Test 1

Today s topics. Announcements/Reminders: Characters and strings Review of topics for Test 1 Today s topics Characters and strings Review of topics for Test 1 Announcements/Reminders: Assignment 1b due tonight 11:59pm Test 1 in class on Thursday Characters & strings We have used strings already:

More information

Topic 8. String Manipulation

Topic 8. String Manipulation Topic 8 String Manipulation 1 Introduction Strings are any characters contained in single quotes. c bot Hello world 791 Every element is a single character. Many vector operations and functions also work

More information

Programs for American Fidelity WorxTime

Programs for American Fidelity WorxTime Programs for American Fidelity WorxTime There are 2 programs that can be run to create the Employee Upload File: W2WAGE and WRXTM_EMP. These programs are located on the USPS_LCL menu or the command name

More information

32 Using Local Data Sources in Web Intelligence Documents

32 Using Local Data Sources in Web Intelligence Documents 32 Using Local Data Sources in Web Intelligence Documents We have used universes as data sources for queries created in Web Intelligence and in Web Intelligence Rich Client. 32.1 Local Data Sources in

More information

1 >> Lecture 6 2 >> 3 >> -- User-Controlled Input and Output 4 >> Zheng-Liang Lu 367 / 400

1 >> Lecture 6 2 >> 3 >> -- User-Controlled Input and Output 4 >> Zheng-Liang Lu 367 / 400 1 >> Lecture 6 2 >> 3 >> -- User-Controlled Input and Output 4 >> Zheng-Liang Lu 367 / 400 American Standard Code for Information Interchange (ASCII) 2 Everything in the computer is encoded in binary.

More information

Differences between using a workbook in Excel 2016 Online and in Excel Online

Differences between using a workbook in Excel 2016 Online and in Excel Online Differences between using a workbook in Excel 2016 Online and in Excel Online File formats that are supported in Excel Online Excel workbook files (.xlsx) Excel 97-2003 workbook files (.xls). Note: When

More information

For many people, learning any new computer software can be an anxietyproducing

For many people, learning any new computer software can be an anxietyproducing 1 Getting to Know Stata 12 For many people, learning any new computer software can be an anxietyproducing task. When that computer program involves statistics, the stress level generally increases exponentially.

More information

A Simple Guide to Using SPSS (Statistical Package for the. Introduction. Steps for Analyzing Data. Social Sciences) for Windows

A Simple Guide to Using SPSS (Statistical Package for the. Introduction. Steps for Analyzing Data. Social Sciences) for Windows A Simple Guide to Using SPSS (Statistical Package for the Social Sciences) for Windows Introduction ٢ Steps for Analyzing Data Enter the data Select the procedure and options Select the variables Run the

More information

Twister: Language Reference Manual

Twister: Language Reference Manual Twister: Language Reference Manual Manager: Anand Sundaram (as5209) Language Guru: Arushi Gupta (ag3309) System Architect: Annalise Mariottini (aim2120) Tester: Chuan Tian (ct2698) February 23, 2017 Contents

More information