PDF4PRO ⚡AMP

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

Example: bachelor of science

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].

Some options are b,r,k, or g, corresponding to blue, red, black, or green respectively. linestyle : Specifies the style of the line you wish to plot. -,-- or (blank space) are common ... it also frees up system memory. The clf command clears the current figure window.

Loading..

Tags:

  Memory, Data, Tutorials, Options, 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