Basic Two-Dimensional plots in Octave

Description

Suppose that we wish to plot $y = \sin x$ on the interval $[0, 2 \pi]$. We must first create two vectors—one containing values of $x$ and a second containing the corresponding values of $y = \sin x$.

Sage Cell

Code

plot(sin(x),-10,10)

Options

Option

Adding axes labels

Code

plot(sin(x),-10,10)

Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

Attribute

Permalink:

Author:

Date: 10 Dec 2018 15:46

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License