On Unix, Linux and OS X systems start Gnuplot by simply opening a terminal and typing:

Size: px
Start display at page:

Download "On Unix, Linux and OS X systems start Gnuplot by simply opening a terminal and typing:"

Transcription

1 Page 1 of 8 2/18/2013 GNUPLOT 42 - A Brief Manual and Tutorial Department of Civil and Environmental Engineering Edmund T Pratt School of Engineering Duke University - Box 90287, Durham, NC INSTALLING AND STARTING GNUPLOT - version 42 Gnuplot is a free, command-driven, interactive, function and data plotting program Pre-compiled executeables and source code for Gnuplot 424 may be downloaded for OS X, Windows, OS2, DOS, and Linux The enhancements provided by version 42 are described here On Windows, unzip gp424win32zip into an appropriate directory, (eg C:\My Programs\Gnuplot, C:\Gnuplot, C:\Apps\gnuplot, etc) Make a link from \gnuplot\bin\wgnuplotexe to your desktop or some other convenient location Click on this link, and the Gnuplot window should open Instructions for installing on OS X are here On Unix, Linux and OS X systems start Gnuplot by simply opening a terminal and typing: gnuplot For help on any topic type help followed by the name of the topic Full documentation is provided here 2 FUNCTIONS In general, any mathematical expression accepted by C, FORTRAN, Pascal, or BASIC may be plotted The precedence of operators is determined by the specifications of the C programming language The supported functions include: Function Returns abs(x) absolute value of x, x acos(x) arc-cosine of x asin(x) arc-sine of x atan(x) arc-tangent of x cos(x) cosine of x, x is in radians cosh(x) hyperbolic cosine of x, x is in radians erf(x) error function of x exp(x) exponential function of x, base e inverf(x) inverse error function of x invnorm(x) inverse normal distribution of x log(x) log of x, base e log10(x) log of x, base 10 norm(x) normal Gaussian distribution function rand(x) pseudo-random number generator sgn(x) 1 if x > 0, -1 if x < 0, 0 if x=0 sin(x) sine of x, x is in radians sinh(x) hyperbolic sine of x, x is in radians sqrt(x) the square root of x

2 Page 2 of 8 2/18/2013 tan(x) tangent of x, x is in radians tanh(x) hyperbolic tangent of x, x is in radians Bessel, gamma, ibeta, igamma, and lgamma functions are also supported Many functions can take complex arguments Binary and unary operators are also supported The supported operators in Gnuplot are the same as the corresponding operators in the C programming language, except that most operators accept integer, real, and complex arguments The ** operator (exponentiation) is supported as in FORTRAN Parentheses may be used to change the order of evaluation The variable names x, y, and z are used as the default independent variables 3 THE plot AND splot COMMANDS plot and splot are the primary commands in Gnuplot They plot functions and data in many many ways plot is used to plot 2-d functions and data, while splot plots 3-d surfaces and data Syntax: plot {[ranges]} {[function] {"[datafile]" {datafile-modifiers}}} {axes [axes] } { [title-spec] } {with [style] } {, {definitions,} [function] } where either a [function] or the name of a data file enclosed in quotes is supplied For more complete descriptions, type: help plot help plot with help plot using or help plot smooth 31 Plotting Functions To plot functions simply type: plot [function] at the gnuplot> prompt For example, try: gnuplot> plot sin(x)/x gnuplot> splot sin(x*y/20) gnuplot> plot sin(x) title 'Sine Function', tan(x) title 'Tangent' 32 Plotting Data Discrete data contained in a file can be displayed by specifying the name of the data file (enclosed in quotes) on the plot or splot command line Data files should have the data arranged in columns of numbers Columns should be separated by white space (tabs or spaces) only, (no commas) Lines beginning with a # character are treated as comments and are ignored by Gnuplot A blank line in the data file results in a break in the line connecting data points For example your data file, forcedat, might look like: # This file is called forcedat # Force-Deflection data for a beam and a bar # Deflection Col-Force Beam-Force

3 Page 3 of 8 2/18/ You can display your data by typing: gnuplot> plot "forcedat" using 1:2 title 'Column', \ "forcedat" using 1:3 title 'Beam' Do not type blank space after the line continuation character, "\" Your data may be in multiple data files In this case you may make your plot by using a command like: gnuplot> plot "fileadat" using 1:2 title 'data A', \ "filebdat" using 1:3 title 'data B' For information on plotting 3-D data, type: gnuplot> help splot datafile 4 CUSTOMIZING YOUR PLOT Many items may be customized on the plot, such as the ranges of the axes, the labels of the x and y axes, the style of data point, the style of the lines connecting the data points, and the title of the entire plot 41 plot command customization Customization of the data columns, line titles, and line/point style are specified when the plot command is issued Customization of the data columns and line titles were discussed in section 3 Plots may be displayed in one of eight styles: lines, points, linespoints, impulses, dots, steps, fsteps, histeps, errorbars, xerrorbars, yerrorbars, xyerrorbars, boxes, boxerrorbars, boxxyerrorbars, financebars, candlesticks or vector To specify the line/point style use the plot command as follows: gnuplot> plot "forcedat" using 1:2 title 'Column' with lines, \ "forcedat" u 1:3 t 'Beam' w linespoints Note that the words: using, title, and with can be abbreviated as: u, t, and w Also, each line and point style has an associated number 42 set command customization Customization of the axis ranges, axis labels, and plot title, as well as many other features, are specified using the set command Specific examples of the set command follow (The numerical values used in these examples are arbitrary) To view your changes type: replot at the gnuplot> prompt at any time

4 Page 4 of 8 2/18/2013 Create a title: > set title "Force-Deflection Data" Put a label on the x-axis: > set xlabel "Deflection (meters)" Put a label on the y-axis: > set ylabel "Force (kn)" Change the x-axis range: > set xrange [0001:0005] Change the y-axis range: > set yrange [20:500] Have Gnuplot determine ranges: > set autoscale Move the key: > set key 001,100 Delete the key: > unset key Put a label on the plot: > set label "yield point" at 0003, 260 Remove all labels: > unset label Plot using log-axes: > set logscale Plot using log-axes on y-axis: > unset logscale; set logscale y Change the tic-marks: > set xtics (0002,0004,0006,0008) Return to the default tics: > unset xtics; set xtics auto Other features which may be customized using the set command are: arrow, border, clip, contour, grid, mapping, polar, surface, time, view, and many more The best way to learn is by reading the on-line help information, trying the command, and reading the Gnuplot manual You may also post questions to the newsgroup compgraphicsappsgnuplot The Gnuplot demo page and the gnuplot intro page have many examples like this script for a transfer function producing this postscript plot 5 PLOTTING DATA FILES WITH OTHER COMMENT CHARACTERS If your data file has a comment character other than # you can tell Gnuplot about it For example, if your data file has "%" comment characters (for Matlab compatability), typing gnuplot> set datafile commentschars "#%" indicates that either a "#" or a "%" character starts a comment 6 GNUPLOT SCRIPTS Sometimes, several commands are typed to create a particular plot, and it is easy to make a typographical error when entering a command To stream- line your plotting operations, several Gnuplot commands may be combined into a single script file For example, the following file will create a customized display of the force-deflection data: # Gnuplot script file for plotting data in file "forcedat" # This file is called forcep set autoscale # scale axes automatically unset log # remove any log-scaling unset label # remove any previous labels set xtic auto # set xtics automatically set ytic auto # set ytics automatically set title "Force Deflection Data for a Beam and a Column" set xlabel "Deflection (meters)" set ylabel "Force (kn)" set key 001,100 set label "Yield Point" at 0003,260 set arrow from 00028,250 to 0003,280 set xr [00:0022]

5 Page 5 of 8 2/18/2013 set yr [0:325] plot "forcedat" using 1:2 title 'Column' with linespoints, \ "forcedat" using 1:3 title 'Beam' with points Then the total plot can be generated with the command: gnuplot> load 'forcep' 7 CURVE-FITTING WITH GNUPLOT To fit the data in forcedat with a function use the commands: f1(x) = a1*tanh(x/b1) # define the function to be fit a1 = 300; b1 = 0005; # initial guess for a1 and b1 fit f1(x) 'forcedat' using 1:2 via a1, b1 Final set of parameters Asymptotic Standard Error ======================= ========================== a1 = / (3442%) b1 = / (1155%) and the commands: f2(x) = a2 * tanh(x/b2) # define the function to be fit a2 = 300; b2 = 0005; # initial guess for a and b fit f2(x) 'forcedat' using 1:3 via a2, b2 Final set of parameters Asymptotic Standard Error ======================= ========================== a2 = / (4933%) b2 = / (1034%) The curve-fit and data may now be plotted with the commands: set key 0018,150 title "F(x) = A tanh (x/b)" # title to key!

6 Page 6 of 8 2/18/2013 set title "Force Deflection Data \n and curve fit" # note newline! set pointsize 15 # larger point! set xlabel 'Deflection, {/Symbol D}_x (m)' # Greek symbols! set ylabel 'Force, {/Times-Italic F}_A, (kn)' # italics! plot "forcedat" using 1:2 title 'Column data' with points 3, \ "forcedat" using 1:3 title 'Beam data' with points 4, \ a1 * tanh( x / b1 ) title 'Column-fit: A=309, B=000227', \ a2 * tanh( x / b2 ) title 'Beam-fit: A=260, B=000415' 8 SPREAD-SHEET LIKE CALCULATIONS ON DATA Gnuplot can mathematically modify your data column by column: to plot sin( col3 + col1 ) vs 3 * col2 type: plot 'forcedat' using (3*$2):(sin($3+$1)) 9 MULTI-PLOT Gnuplot can plot more than one figure in a frame ( like subplot in matlab ) ie, try: set multiplot; set size 1,05; set origin 00,05; set origin 00,00; unset multiplot plot sin(x); plot cos(x) # get into multiplot mode # exit multiplot mode

7 Page 7 of 8 2/18/ GNUPLOT DEMO FILES AND THE GNUPLOT FAQ Most of Gnuplot's current features are illustrated in one or more of the Gnuplot demonstration files To run the demo's yourself, download and unzip demozip, start Gnuplot from the resulting demo directory, and type load "alldem" The Gnuplot feature you are looking for will probably be illustrated in one of the demo files Gnuplot 42 also has an extensive FAQ 11 HARD-COPY (PLOTTING ON PAPER) You can create a PostScript file of your plot by using the following files and commands First, download and save the following general-purpose Gnuplot script: saveplt # File name: saveplt - saves a Gnuplot plot as a PostScript file # to save the current plot as a postscript file issue the commands: # gnuplot> load 'saveplot' # gnuplot>!mv my-plotps another-fileps set size 10, 06 set terminal postscript portrait enhanced mono dashed lw 1 "Helvetica" 14 set output "my-plotps" replot set terminal x11 set size 1,1 Then simply type the following commands to create and print the plot gnuplot> load 'saveplt' gnuplot>!mv my-plotps forceps gnuplot>!lpr forceps The PostScript files produced by Gnuplot may be read and edited with a text editor The PostScript file format convention used by Gnuplot is described in this document by Richard Crawford 12 ADVANCED COMPUTATION AND VISUALIZATION Gnuplot is used for plotting in a free and open Matlab-like programming environment called Octave 13 PRINTING TWO FIGURES ON ONE PAGE If you would like two figures to be laser-printed on the same page, you may use the following shell script Create file cat2, below, and make the file executable by typing: unix% chmod +x cat2 # cat2: Shell script for putting two Gnuplot plots on one page echo %! > gps echo gsave >> gps

8 Page 8 of 8 echo translate >> gps # for Gnuplot plots cat $1 sed -e "s/showpage//" >> gps echo grestore >> gps echo gsave >> gps echo translate >> gps # for Gnuplot plots cat $2 >> gps lpr -Phudsonlp1 gps To combine two PostScript figures (plot1ps and plot2ps) on one page: cat2 plot1ps plot2ps

9 Gnuplot: Simple Plotting Gnuplot is a freeware program available on the unix as well as MS Windows system which can be used for plotting To use it in a Unix-based operating system, it is invoked by typing gnuplot in a shell window This will give you a prompt something like: gnuplot> To use it you can now type additional commands For example there is an extensive help facility, just type help To exit type quit You may also wish to consult tutorials available on the internet- just search for gnuplot tutorial in google The following is one such guide In your work suppose you generate data in a le called results with the first column giving x values, the second giving y values and the third column giving y 1 values A simple plot of x versus y 1 is generated with plot results u 1:3 w li with the 1:3 representing the column numbers, 1 for xvalues and 3 for y 1 values Once you are satised with your plot, you can save the output in many formats For postscript output to a le say myploteps use set terminal postscript eps set output myploteps plot results u 1:2 w li Finally, you can also write scripts and load these up I have put an example script on my website with example results To load the script at the command type: load gnucom Note that the statements beginning with a # denote comments 1

10 Gnuplot: Contour Plotting To plot contours in gnuplot the data must be stored in columns, with the following format: x 0 y 0 f(x 0,y 0 ) x 1 y 0 f(x 1,y 0 ) x 2 y 0 f(x 2,y 0 ) x n y 0 f(x n,y 0 ) x 0 y 1 f(x 0,y 1 ) x n y 1 f(x n,y 1 ) x 0 y m f(x 0,y m ) x n y m f(x n,y m ) Notice that there is a single white line space inbetween changing for a new value in the y coordinate If we want to plot different sets of data in a single file we may use a double white space Different sets of data can then be accessed using the index command, where data sets in a file are indexed from 0 To plot a surface from this data, we can use splot resultsdat using 1:2:3 with line Another way to plot different sets of data would be to put it in a different column In order to plot contours from a file of this format, the quickest way to view contours is to issue the following commands: set parametric set contour base set view 0,0,1 unset surface set cntrparam levels 5 splot resultsdat using 1:2:3 with line If you wish to produce better quality graphs you must convert the contours into a data file and them print them using the plot command To do this, we issue the following commands before those listed above: set terminal table set output resultstab The file resultstab will now contain the data needed to plot just the contours You can now set up linestyles manually for each of the contours using the index command to access each one For example the command to plot the tab file may look something like: set terminal postscript eps color solid enhanced set output figureeps set style line 1 lt 1 lw 3 p resultstab i 0 w l ls 1,\ resultstab i 1 w l,\ resultstab i 2 w l,\ resultstab i 3 w l,\ resultstab i 4 w l 2

11 Working with functions Gnuplot Examples Sheet 1 Run the command gnuplot from a terminal Once the program is loaded the command line should now look like: 2 Enter the following: gnuplot> plot sin(x) w l you should see a graph for y = sin(x) appear on screen 3 Similarly, try to generate plots for the following function: (a) y = e x (b) y = e x sin(x) x (c) y = e x2 and y = cosh(x) Multiple plots are separated by a comma 4 Add labels, change the ranges on view and move the key to a different area using the set commands After each command, you need to replot for the changes to take effect Examples may be: set xrange [0:6] set key top left 5 Change the title of your plot using set title, and also the title of the plot within the key 3D Plots 1 Issue the command reset to reset all previous commands 2 Plot the function y = e sin(x)sin(y) xy using the command: splot exp( -sin(x)*sin(y)/x/y ) w l 1

12 3 Use your mouse to spin the plot around to look at it from different angles 4 Now plot contours using the following commands: set contour base set cntrparam levels 15 5 Change the contours from the base to the surface, replot 6 Change the number of samples in the graph using the commands: set samples 51 set isosample 51 7 Try adding more fancy graphics using the commands or set pm3d set hidden WARNING!! these commands may take up a lot of processing (time) to generate plots Output to file In gnuplot, the terminal denotes the output direction for your plots This could be any number of different formats ranging from the default screen option (X11) to encapsulated postscript (eps) or portable network graphics (png) We change terminal (output direction) using the set command 1 Changing to eps, the most workable format with L A TEX2εis executed with the command: set terminal postscript eps This sets the output type/direction, but NOT the destination To set the file which you wish to send the information to we use the command set output So to create a picture of the plot as the file mygrapheps, we could use the command: set output mygrapheps 2

13 2 Then every timeyou issue aplot commandtheinformationissent tothefile (previous information is not overwritten, so multiple figures can be stored in one file) So to create a figure in the file choose a previous plot command to issue, for example: splot exp( -sin(x)*sin(y)/x/y ) w l 3 Can you find where the graph is on your hard drive? Try to view it and see if it looks as you would expect 4 By issuing a set output command again the cache is cleared and a new figure file is created Plot files, Scripting and Variables One of the most powerful aspects of gnuplot is the ability to create script files to generate multiple plots from different files into a standard format You may be able to generate all figures for your thesis with a single command, meaning that changing the look of each and every one of the figures can be done simultaneously 1 First create a empty file called myplotfileplt IN THE SAME DIRECTORY AS WHICH YOU ARE WORKING WITH GNUPLOT! Check which directory gnuplot is working in with the command pwd, and move to a different directory with cd pathtodirectory 2 Open the file with a text editor (try using kate if you like) and type some gnuplot command into the file An example of what the file might look like is: reset set xlabel x set ylabel y p sin(x) title y=f(x) w l Then load the file by issuing the following command at the command line: load myplotfileplt You should see the graph of y = sin(x) appear on screen 3 Edit your plot file so that it generates an eps file using the terminal and output commands 4 Now let us introduce some variables to the plot file: 3

14 reset a = 2 xmin = 0 xmax = 4*atan(1) set xlabel x set ylabel y set xrange[xmin:xmax] p sin(x/a) title y=f(x) w l Notice that we can assign variable values, expressions, and use them inside commands such as the range command 5 Try out using variables for yourself 4

Data Graphics with Gnuplot

Data Graphics with Gnuplot Data Graphics with Gnuplot Le Yan User Services HPC @ LSU 4/17/2013 1 Training Goals Produce simple interactive plots and graphs Create 2- and 3-d graphs from functions and data files Understand the automation

More information

Visualisation Lab: gnuplot

Visualisation Lab: gnuplot Visualisation Lab: gnuplot Anton Gerdelan February 2, 2012 What is gnuplot? gnuplot is a tool for creating graphs and charts. gnuplot has a terminal. You can enter commands to tell gnuplot how to format

More information

Computational Approach to Materials Science and Engineering

Computational Approach to Materials Science and Engineering Computational Approach to Materials Science and Engineering Prita Pant and M. P. Gururajan January, 2012 Copyright c 2012, Prita Pant and M P Gururajan. Permission is granted to copy, distribute and/or

More information

Basic statistical operations

Basic statistical operations COSC 6397 Big Data Analytics Fundamental Analytics Edgar Gabriel Spring 2014 Basic statistical operations Calculating minimum, maximum, mean, median, standard deviation Data typically multi-dimensional

More information

A Quick Guide to Gnuplot. Andrea Mignone Physics Department, University of Torino AA

A Quick Guide to Gnuplot. Andrea Mignone Physics Department, University of Torino AA A Quick Guide to Gnuplot Andrea Mignone Physics Department, University of Torino AA 2017-2018 What is Gnuplot? Gnuplot is a free, command-driven, interactive, function and data plotting program, providing

More information

1 Gnuplot. Installing and running. Plot

1 Gnuplot. Installing and running. Plot 1 Gnuplot gnuplot is a simple and popular scripting language and program for producing plots. You may use any software you want for producing the plots in your report. Here, we introduce gnuplot because

More information

Exercise sheet 1 To be corrected in tutorials in the week from 23/10/2017 to 27/10/2017

Exercise sheet 1 To be corrected in tutorials in the week from 23/10/2017 to 27/10/2017 Einführung in die Programmierung für Physiker WS 207/208 Marc Wagner Francesca Cuteri: cuteri@th.physik.uni-frankfurt.de Alessandro Sciarra: sciarra@th.physik.uni-frankfurt.de Exercise sheet To be corrected

More information

Creating Plots with Gnuplot. May 18, 2017

Creating Plots with Gnuplot. May 18, 2017 Creating Plots with Gnuplot May 18, 2017 What is Gnuplot Gnuplot is a freely available command-line based interactive plotting program. $ gnuplot G N U P L O T Version 4.6 patchlevel 0 last modified 2012-03

More information

Bivariate Normal Density

Bivariate Normal Density gnuplot 3.5 User's Guide KCAng Division of Mathematics, NTU-NIE, Singapore. kcang@nie.edu.sg June 2 Introduction This document introduces the new user to gnuplot for Windows. It is a brief document to

More information

Gnuplot Tutorial. Gnuplot is a portable command-line driven graphing utility for - Linux, - MS Windows - Mac - Many other platforms.

Gnuplot Tutorial. Gnuplot is a portable command-line driven graphing utility for - Linux, - MS Windows - Mac - Many other platforms. Gnuplot Tutorial http://www.gnuplot.info https://www.cs.hmc.edu/~vrable/gnuplot/using-gnuplot.html http://people.duke.edu/~hpgavin/gnuplot.html Gnuplot is a portable command-line driven graphing utility

More information

Ordinary Differential Equation Solver Language (ODESL) Reference Manual

Ordinary Differential Equation Solver Language (ODESL) Reference Manual Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE

More information

AMS 27L LAB #1 Winter 2009

AMS 27L LAB #1 Winter 2009 AMS 27L LAB #1 Winter 2009 Introduction to MATLAB Objectives: 1. To introduce the use of the MATLAB software package 2. To learn elementary mathematics in MATLAB Getting Started: Log onto your machine

More information

An Introduction to Gnuplot for Chemists. By Nicholas Fitzkee Mississippi State University Updated September 1, 2016

An Introduction to Gnuplot for Chemists. By Nicholas Fitzkee Mississippi State University Updated September 1, 2016 An Introduction to Gnuplot for Chemists By Nicholas Fitzkee Mississippi State University Updated September 1, 2016 Introduction Many biophysical problems involve fitting a model (as described by some mathematical

More information

Goals for This Lecture:

Goals for This Lecture: Goals for This Lecture: Learn how to use gnuplot to make simple plots of data from a file. Introduce some basic I/O concepts Using Gnuplot to Plot data from a file Gnuplot (pronounced Ga-new-plot ) is

More information

MATLAB Tutorial EE351M DSP. Created: Thursday Jan 25, 2007 Rayyan Jaber. Modified by: Kitaek Bae. Outline

MATLAB Tutorial EE351M DSP. Created: Thursday Jan 25, 2007 Rayyan Jaber. Modified by: Kitaek Bae. Outline MATLAB Tutorial EE351M DSP Created: Thursday Jan 25, 2007 Rayyan Jaber Modified by: Kitaek Bae Outline Part I: Introduction and Overview Part II: Matrix manipulations and common functions Part III: Plots

More information

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment

What is MATLAB? What is MATLAB? Programming Environment MATLAB PROGRAMMING. Stands for MATrix LABoratory. A programming environment What is MATLAB? MATLAB PROGRAMMING Stands for MATrix LABoratory A software built around vectors and matrices A great tool for numerical computation of mathematical problems, such as Calculus Has powerful

More information

LAB 1 General MATLAB Information 1

LAB 1 General MATLAB Information 1 LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by

More information

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT

PROGRAMMING WITH MATLAB DR. AHMET AKBULUT PROGRAMMING WITH MATLAB DR. AHMET AKBULUT OVERVIEW WEEK 1 What is MATLAB? A powerful software tool: Scientific and engineering computations Signal processing Data analysis and visualization Physical system

More information

Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017

Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017 Part V Appendices c Copyright, Todd Young and Martin Mohlenkamp, Department of Mathematics, Ohio University, 2017 Appendix A Glossary of Matlab Commands Mathematical Operations + Addition. Type help plus

More information

Introduction to MATLAB 7 for Engineers

Introduction to MATLAB 7 for Engineers Introduction to MATLAB 7 for Engineers William J. Palm III Chapter 3 Functions and Files Getting Help for Functions You can use the lookfor command to find functions that are relevant to your application.

More information

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An.

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An. CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

Introduction to MatLab. Introduction to MatLab K. Craig 1

Introduction to MatLab. Introduction to MatLab K. Craig 1 Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Kristian Sandberg Department of Applied Mathematics University of Colorado Goal The goal with this worksheet is to give a brief introduction to the mathematical software Matlab.

More information

Sketchify Tutorial Properties and Variables. sketchify.sf.net Željko Obrenović

Sketchify Tutorial Properties and Variables. sketchify.sf.net Željko Obrenović Sketchify Tutorial Properties and Variables sketchify.sf.net Željko Obrenović z.obrenovic@tue.nl Properties and Variables Properties of active regions and sketches can be given directly, or indirectly

More information

Introduction to GNU-Octave

Introduction to GNU-Octave Introduction to GNU-Octave Dr. K.R. Chowdhary, Professor & Campus Director, JIETCOE JIET College of Engineering Email: kr.chowdhary@jietjodhpur.ac.in Web-Page: http://www.krchowdhary.com July 11, 2016

More information

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command...

2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... Contents 2D LINE PLOTS... 1 The plot() Command... 1 Labeling and Annotating Figures... 5 The subplot() Command... 7 The polarplot() Command... 9 2D LINE PLOTS One of the benefits of programming in MATLAB

More information

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.

Creates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window. EE 350L: Signals and Transforms Lab Spring 2007 Lab #1 - Introduction to MATLAB Lab Handout Matlab Software: Matlab will be the analytical tool used in the signals lab. The laboratory has network licenses

More information

This is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms:

This is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms: Appendix A Basic MATLAB Tutorial Extracted from: http://www1.gantep.edu.tr/ bingul/ep375 http://www.mathworks.com/products/matlab A.1 Introduction This is a basic tutorial for the MATLAB program which

More information

Programming in Mathematics. Mili I. Shah

Programming in Mathematics. Mili I. Shah Programming in Mathematics Mili I. Shah Starting Matlab Go to http://www.loyola.edu/moresoftware/ and login with your Loyola name and password... Matlab has eight main windows: Command Window Figure Window

More information

A Guide to Using Some Basic MATLAB Functions

A Guide to Using Some Basic MATLAB Functions A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available

More information

Matlab Programming Introduction 1 2

Matlab Programming Introduction 1 2 Matlab Programming Introduction 1 2 Mili I. Shah August 10, 2009 1 Matlab, An Introduction with Applications, 2 nd ed. by Amos Gilat 2 Matlab Guide, 2 nd ed. by D. J. Higham and N. J. Higham Starting Matlab

More information

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed.

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed. Example 4 Printing and Plotting Matlab provides numerous print and plot options. This example illustrates the basics and provides enough detail that you can use it for typical classroom work and assignments.

More information

PHYS-4007/5007: Computational Physics. Using IDL in Command Line Mode

PHYS-4007/5007: Computational Physics. Using IDL in Command Line Mode PHYS-4007/5007: Computational Physics Using IDL in Command Line Mode 1 Editing a New IDL Procedure File There are two ways to run IDL under Linux: (1) the IDL Workbench Graphic User Interface (GUI) and

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

More information

Starting MATLAB To logon onto a Temple workstation at the Tech Center, follow the directions below.

Starting MATLAB To logon onto a Temple workstation at the Tech Center, follow the directions below. What is MATLAB? MATLAB (short for MATrix LABoratory) is a language for technical computing, developed by The Mathworks, Inc. (A matrix is a rectangular array or table of usually numerical values.) MATLAB

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Math Sciences Computing Center. University ofwashington. September, Fundamentals Making Plots Printing and Saving Graphs...

Math Sciences Computing Center. University ofwashington. September, Fundamentals Making Plots Printing and Saving Graphs... Introduction to Plotting with Matlab Math Sciences Computing Center University ofwashington September, 1996 Contents Fundamentals........................................... 1 Making Plots...........................................

More information

Outline. CSE 1570 Interacting with MATLAB. Outline. Starting MATLAB. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An.

Outline. CSE 1570 Interacting with MATLAB. Outline. Starting MATLAB. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An. CSE 10 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX 1) Objective The objective of this lab is to review how to access Matlab, Simulink, and the Communications Toolbox, and to become familiar

More information

Getting Started. Chapter 1. How to Get Matlab. 1.1 Before We Begin Matlab to Accompany Lay s Linear Algebra Text

Getting Started. Chapter 1. How to Get Matlab. 1.1 Before We Begin Matlab to Accompany Lay s Linear Algebra Text Chapter 1 Getting Started How to Get Matlab Matlab physically resides on each of the computers in the Olin Hall labs. See your instructor if you need an account on these machines. If you are going to go

More information

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

9 Using Equation Networks

9 Using Equation Networks 9 Using Equation Networks In this chapter Introduction to Equation Networks 244 Equation format 247 Using register address lists 254 Setting up an enable contact 255 Equations displayed within the Network

More information

Quick MATLAB Syntax Guide

Quick MATLAB Syntax Guide Quick MATLAB Syntax Guide Some useful things, not everything if-statement Structure: if (a = = = ~=

More information

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB?

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB? Appendix A Introduction to MATLAB A.1 What Is MATLAB? MATLAB is a technical computing environment developed by The Math- Works, Inc. for computation and data visualization. It is both an interactive system

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Dr./ Ahmed Nagib Mechanical Engineering department, Alexandria university, Egypt Sep 2015 Chapter 5 Functions Getting Help for Functions You can use the lookfor command to find functions

More information

Introduction to MATLAB

Introduction to MATLAB ELG 3125 - Lab 1 Introduction to MATLAB TA: Chao Wang (cwang103@site.uottawa.ca) 2008 Fall ELG 3125 Signal and System Analysis P. 1 Do You Speak MATLAB? MATLAB - The Language of Technical Computing ELG

More information

Consider this m file that creates a file that you can load data into called rain.txt

Consider this m file that creates a file that you can load data into called rain.txt SAVING AND IMPORTING DATA FROM A DATA FILES AND PROCESSING AS A ONE DIMENSIONAL ARRAY If we save data in a file sequentially than we can call it back sequentially into a row vector. Consider this m file

More information

Graphical Analysis with Gnuplot. Evangelos Pournaras, Izabela Moise

Graphical Analysis with Gnuplot. Evangelos Pournaras, Izabela Moise Graphical Analysis with Gnuplot Evangelos Pournaras, Izabela Moise Evangelos Pournaras, Izabela Moise 1 Outline 1. Introduction to gnuplot 2. Gnuplot in practice 3. Plot examples 4. Output and terminals

More information

MATLAB NOTES. Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional.

MATLAB NOTES. Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional. MATLAB NOTES Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional. Excellent graphics that are easy to use. Powerful interactive facilities; and programs

More information

AMS 27L LAB #2 Winter 2009

AMS 27L LAB #2 Winter 2009 AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles

More information

Gnuplot Short Course

Gnuplot Short Course Gnuplot Short Course Tim Langlais langlais@meumnedu August 16, 1999 Introduction Gnuplot is a powerful freeware program for plotting both 2D and 3D data Gnuplot will run under a variety of environments

More information

An SM tutorial for programming and plotting

An SM tutorial for programming and plotting An SM tutorial for programming and plotting Gary Mamon January 2, 2014 1 Introduction SM (a.k.a. SuperMongo), written by Robert Lupton, is advertised by its author as a graphics language. In fact, SM is

More information

Goals for This Lecture:

Goals for This Lecture: Goals for This Lecture: Understand integer arithmetic Understand mixed-mode arithmetic Understand the hierarchy of arithmetic operations Introduce the use of intrinsic functions Real Arithmetic Valid expressions

More information

Introduction to Matlab to Accompany Linear Algebra. Douglas Hundley Department of Mathematics and Statistics Whitman College

Introduction to Matlab to Accompany Linear Algebra. Douglas Hundley Department of Mathematics and Statistics Whitman College Introduction to Matlab to Accompany Linear Algebra Douglas Hundley Department of Mathematics and Statistics Whitman College August 27, 2018 2 Contents 1 Getting Started 5 1.1 Before We Begin........................................

More information

Green Globs And Graphing Equations

Green Globs And Graphing Equations Green Globs And Graphing Equations Green Globs and Graphing Equations has four parts to it which serve as a tool, a review or testing device, and two games. The menu choices are: Equation Plotter which

More information

USER-DEFINED ELEMENT IN ZMAN TM

USER-DEFINED ELEMENT IN ZMAN TM ZIVE Application Note6: User defined element in ZMAN USER-DEFINED ELEMENT IN ZMAN TM How to add a new user-defined element? Introduced by ZMAN 2.2, the SIMPLE category provides you with a functionality

More information

gnuplot or, How To Make Your Data Look Neat and Shiny Ron Ho 3/14/01

gnuplot or, How To Make Your Data Look Neat and Shiny Ron Ho 3/14/01 gnuplot or, How To Make Your Data Look Neat and Shiny Ron Ho 3/14/01 ronho@vlsi.stanford.edu 1 Introduction Plotting data into pretty charts is pretty standard fare Ultimate consumer: journals, conference

More information

Basic MATLAB Tutorial

Basic MATLAB Tutorial Basic MATLAB Tutorial http://www1gantepedutr/~bingul/ep375 http://wwwmathworkscom/products/matlab This is a basic tutorial for the Matlab program which is a high-performance language for technical computing

More information

GRAPH 4.4. Megha K. Raman APRIL 22, 2015

GRAPH 4.4. Megha K. Raman APRIL 22, 2015 GRAPH 4.4 By Megha K. Raman APRIL 22, 2015 1. Preface... 4 2. Introduction:... 4 3. Plotting a function... 5 Sample funtions:... 9 List of Functions:... 10 Constants:... 10 Operators:... 11 Functions:...

More information

A very brief Matlab introduction

A very brief Matlab introduction A very brief Matlab introduction Siniša Krajnović January 24, 2006 This is a very brief introduction to Matlab and its purpose is only to introduce students of the CFD course into Matlab. After reading

More information

C++ Programming Lecture 11 Functions Part I

C++ Programming Lecture 11 Functions Part I C++ Programming Lecture 11 Functions Part I By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department Introduction Till now we have learned the basic concepts of C++. All the programs

More information

A QUICK INTRODUCTION TO MATLAB

A QUICK INTRODUCTION TO MATLAB A QUICK INTRODUCTION TO MATLAB Very brief intro to matlab Basic operations and a few illustrations This set is independent from rest of the class notes. Matlab will be covered in recitations and occasionally

More information

Data and Function Plotting with MATLAB (Linux-10)

Data and Function Plotting with MATLAB (Linux-10) Data and Function Plotting with MATLAB (Linux-10) This tutorial describes the use of MATLAB for general plotting of experimental data and equations and for special plots like histograms. (Astronomers -

More information

Part I. Introduction to Linux

Part I. Introduction to Linux Part I Introduction to Linux 7 Chapter 1 Linux operating system Goal-of-the-Day Familiarisation with basic Linux commands and creation of data plots. 1.1 What is Linux? All astronomical data processing

More information

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to.

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to. Starting Matlab Go to MATLAB Laboratory 09/09/10 Lecture Lisa A. Oberbroeckling Loyola University Maryland loberbroeckling@loyola.edu http://ctx.loyola.edu and login with your Loyola name and password...

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

More information

GNUPLOT. An Interactive Plotting Program. Thomas Williams & Colin Kelley

GNUPLOT. An Interactive Plotting Program. Thomas Williams & Colin Kelley GNUPLOT An Interactive Plotting Program Thomas Williams & Colin Kelley Version 3.5 organized by: Alex Woo Major contributors (alphabetic order): John Campbell Robert Cunningham Gershon Elber Roger Fearick

More information

C++ Overview. Chapter 1. Chapter 2

C++ Overview. Chapter 1. Chapter 2 C++ Overview Chapter 1 Note: All commands you type (including the Myro commands listed elsewhere) are essentially C++ commands. Later, in this section we will list those commands that are a part of the

More information

A QUICK INTRODUCTION TO MATLAB. Intro to matlab getting started

A QUICK INTRODUCTION TO MATLAB. Intro to matlab getting started A QUICK INTRODUCTION TO MATLAB Very brief intro to matlab Intro to matlab getting started Basic operations and a few illustrations This set is indepent from rest of the class notes. Matlab will be covered

More information

3 An Introductory Demonstration Execute the following command to view a quick introduction to Matlab. >> intro (Use your mouse to position windows on

3 An Introductory Demonstration Execute the following command to view a quick introduction to Matlab. >> intro (Use your mouse to position windows on Department of Electrical Engineering EE281 Introduction to MATLAB on the Region IV Computing Facilities 1 What is Matlab? Matlab is a high-performance interactive software package for scientic and enginnering

More information

A Brief Introduction to MATLAB

A Brief Introduction to MATLAB A Brief Introduction to MATLAB MATLAB (Matrix Laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB was first designed for matrix computations:

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

LinReg 2.06 Manual. DePauw University: Physics Department 120 Physics I and 130 Physics II

LinReg 2.06 Manual. DePauw University: Physics Department 120 Physics I and 130 Physics II LinReg 2.06 Manual DePauw University: Physics Department 120 Physics I and 130 Physics II Updated March 23 rd, 2011 1 About LinReg: LinReg is a program used extensively in DePauw s physics laboratory classes.

More information

TECH TIP VISION Calibration and Data Acquisition Software

TECH TIP VISION Calibration and Data Acquisition Software TECH TIP VISION Calibration and Data Acquisition Software May 2016 Using Calculated Channels in VISION Calculated channels are data items created in a Recorder file whose values are calculated from other

More information

Some elements for Matlab programming

Some elements for Matlab programming Some elements for Matlab programming Nathalie Thomas 2018 2019 Matlab, which stands for the abbreviation of MATrix LABoratory, is one of the most popular language for scientic computation. The classical

More information

An Introduction to Unix

An Introduction to Unix An Introduction to Unix Sylvia Plöckinger March 3, 2011 Sylvia Plöckinger () An Introduction to Unix March 3, 2011 1 / 29 General Information Find this file on: http://homepage.univie.ac.at/nigel.mitchell/numprac/

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

Chapter 1 Introduction to MATLAB

Chapter 1 Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 What is MATLAB? MATLAB = MATrix LABoratory, the language of technical computing, modeling and simulation, data analysis and processing, visualization and graphics,

More information

Programming in QBasic

Programming in QBasic Programming in QBasic Second lecture Constants In QBASIC: Constants In QBASIC division into three types: 1. Numeric Constants: there are two types of numeric constants: Real: the numbers used may be written

More information

Programming in MATLAB

Programming in MATLAB trevor.spiteri@um.edu.mt http://staff.um.edu.mt/trevor.spiteri Department of Communications and Computer Engineering Faculty of Information and Communication Technology University of Malta 17 February,

More information

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens.

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. PC-MATLAB PRIMER This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. >> 2*3 ans = 6 PCMATLAB uses several lines for the answer, but I ve edited this to save space.

More information

Welcome to EGR 106 Foundations of Engineering II

Welcome to EGR 106 Foundations of Engineering II Welcome to EGR 106 Foundations of Engineering II Course information Today s specific topics: Computation and algorithms MATLAB Basics Demonstrations Material in textbook chapter 1 Computation What is computation?

More information

General MATLAB Information 1

General MATLAB Information 1 Introduction to MATLAB General MATLAB Information 1 Once you initiate the MATLAB software, you will see the MATLAB logo appear and then the MATLAB prompt >>. The prompt >> indicates that MATLAB is awaiting

More information

Introduction to MATLAB Practical 1

Introduction to MATLAB Practical 1 Introduction to MATLAB Practical 1 Daniel Carrera November 2016 1 Introduction I believe that the best way to learn Matlab is hands on, and I tried to design this practical that way. I assume no prior

More information

Chapter 2. Outline. Simple C++ Programs

Chapter 2. Outline. Simple C++ Programs Chapter 2 Simple C++ Programs Outline Objectives 1. Building C++ Solutions with IDEs: Dev-cpp, Xcode 2. C++ Program Structure 3. Constant and Variables 4. C++ Operators 5. Standard Input and Output 6.

More information

ANSI C Programming Simple Programs

ANSI C Programming Simple Programs ANSI C Programming Simple Programs /* This program computes the distance between two points */ #include #include #include main() { /* Declare and initialize variables */ double

More information

Introduction to Python, Cplex and Gurobi

Introduction to Python, Cplex and Gurobi Introduction to Python, Cplex and Gurobi Introduction Python is a widely used, high level programming language designed by Guido van Rossum and released on 1991. Two stable releases: Python 2.7 Python

More information

What is MATLAB and howtostart it up?

What is MATLAB and howtostart it up? MAT rix LABoratory What is MATLAB and howtostart it up? Object-oriented high-level interactive software package for scientific and engineering numerical computations Enables easy manipulation of matrix

More information

A Mini-Manual for GNUPLOT

A Mini-Manual for GNUPLOT A Mini-Manual for GNUPLOT John E Floyd University of Toronto January 5, 2002 GNUPLOT is a useful program for creating charts of data for publication, frequently producing better quality charts than can

More information

2 Making Decisions. Store the value 3 in memory location y

2 Making Decisions. Store the value 3 in memory location y 2.1 Aims 2 Making Decisions By the end of this worksheet, you will be able to: Do arithmetic Start to use FORTRAN intrinsic functions Begin to understand program flow and logic Know how to test for zero

More information

Mathematical Computing

Mathematical Computing IMT2b2β Department of Mathematics University of Ruhuna A.W.L. Pubudu Thilan Graphics in Maxima Introduction Gnuplot is a comand-line oriented plot program. Maxima s plotting is based on the Gnuplot, which

More information

The value of f(t) at t = 0 is the first element of the vector and is obtained by

The value of f(t) at t = 0 is the first element of the vector and is obtained by MATLAB Tutorial This tutorial will give an overview of MATLAB commands and functions that you will need in ECE 366. 1. Getting Started: Your first job is to make a directory to save your work in. Unix

More information

Basic Graphs. Dmitry Adamskiy 16 November 2011

Basic Graphs. Dmitry Adamskiy 16 November 2011 Basic Graphs Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 16 November 211 1 Plot Function plot(x,y): plots vector Y versus vector X X and Y must have the same size: X = [x1, x2 xn] and Y = [y1, y2,, yn] Broken

More information

MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory

More information

Matlab Tutorial 1: Working with variables, arrays, and plotting

Matlab Tutorial 1: Working with variables, arrays, and plotting Matlab Tutorial 1: Working with variables, arrays, and plotting Setting up Matlab First of all, let's make sure we all have the same layout of the different windows in Matlab. Go to Home Layout Default.

More information

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing SECTION 1: INTRODUCTION ENGR 112 Introduction to Engineering Computing 2 Course Overview What is Programming? 3 Programming The implementation of algorithms in a particular computer programming language

More information

Laboratory 1 Octave Tutorial

Laboratory 1 Octave Tutorial Signals, Spectra and Signal Processing Laboratory 1 Octave Tutorial 1.1 Introduction The purpose of this lab 1 is to become familiar with the GNU Octave 2 software environment. 1.2 Octave Review All laboratory

More information

MATLAB QUICK START TUTORIAL

MATLAB QUICK START TUTORIAL MATLAB QUICK START TUTORIAL This tutorial is a brief introduction to MATLAB which is considered one of the most powerful languages of technical computing. In the following sections, the basic knowledge

More information

Matlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen.

Matlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen. University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2015 Matlab Tutorial 1 Overview The goal of this tutorial is to help you get familiar with MATLAB

More information

Introduction to Computational Modeling

Introduction to Computational Modeling Introduction to Computational Modeling Lecture 1 : Introduction to UNIX and Fortran Instructor : Cedric Weber Course : 4CCP1000 General informations Ø Lecture: Thursday, 9-10am Ø Practice: K3.16 (25C),

More information