2D Plots Using GUI

image

You can use Octave commands to change the appearance of your graphs and to add informative text. If using QtOctave you can use the graphical user interface (GUI) instead of commands.

The recording below shows how to

  • use linspace(first value, last value, number of evenly spaced points) to make a vector x
  • make a vector y, where all the elements of y are functions of corresponding elements of the vector x
  • use the command plot(x,y)
  • change the appearance of a graph using the QtOctave GUI
  • use hold on to draw several graphs in one window (the command hold off turns it off)
  • enter labels and titles using the QtOctave GUI
  • saving the graph as a png-file using the QtOctave GUI

by Malin Christersson under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Sweden License