How does one plot in Octave? Supposedly the command should be the same as in Matlab, e.g.

x = 1:10; figure, plot(x,x.^2)

However, nothing showed up in the terminal. Please help.

1 | initial version |

How does one plot in Octave? Supposedly the command should be the same as in Matlab, e.g.

x = 1:10; figure, plot(x,x.^2)

However, nothing showed up in the terminal. Please help.

2 | No.2 Revision |

To add context as requested by kcrisman, I am using Octave in Cloud.Sagemath.com running scripts in .m files.

How does one plot in Octave? Supposedly the command should be the same as in Matlab, e.g.

x = 1:10; figure, plot(x,x.^2)

However, nothing showed up in the terminal. Please help.

3 | retagged |

To add context as requested by kcrisman, I am using Octave in Cloud.Sagemath.com running scripts in .m files.

How does one plot in Octave? Supposedly the command should be the same as in Matlab, e.g.

x = 1:10; figure, plot(x,x.^2)

However, nothing showed up in the terminal. Please help.

4 | retagged |

To add context as requested by kcrisman, I am using Octave in Cloud.Sagemath.com running scripts in .m files.

How does one plot in Octave? Supposedly the command should be the same as in Matlab, e.g.

x = 1:10; figure, plot(x,x.^2)

However, nothing showed up in the terminal. Please help.

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.