PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: dental hygienist

Octave Tutorial 5: How to plot data in Octave

Octave Tutorial 5: How to plot data in Octavewith extracts fromIntroduction to Octave , by LongIn this Tutorial you will learn how to plot data in has powerful facilities for plotting graphs via a second open-source program GNU- plot . The basic command isplot(x,y), wherexandyare the co-ordinate. If given justone pair of numbers it plots a point, but usually you passvectors, and it plots all the pointsgiven by the two vectors joining them with straight us start with a few examples. First, we will plot the functionf(x) =x2over the interval[0,1]. Here are some instructions on how to do that: Create a vectorxof length 11 containing values between 0 and 1 using thelinspacecommand as follows: Octave #:#> x = linspace(0,1,11)The vectorxcorresponds to the end points of 10 equally spaced subintervals of [0,1]. Now we will map these points to the functionf(x) =x2and store the values in thevectory. Enter the following command: Octave #:#> y = x.^ t forget the dot in the command above, which tells Octave to take the square ofeach entry ofx.

Octave Tutorial 5: How to plot data in Octave with extracts from Introduction to Octave, by P.J.G. Long In this tutorial you will learn how to • plot data in Octave. Octave has powerful facilities for plotting graphs via a second open-source program GNU-PLOT. The basic command is plot(x,y), where x and y are the co-ordinate. If given just

Loading..

Tags:

  Data, Tutorials, Plot, Octave, Octave tutorial 5, How to plot data in octave

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Octave Tutorial 5: How to plot data in Octave

Related search queries