Introduction to MATLAB?GNU OCTAVE

Multi-paradigm

 

A multi-paradigm programming language is a programming language that supports more than one programming paradigm.

 

The design goal of such languages is to allow programmers to use the most suitable programming style and associated language constructs for a particular job, considering that no single paradigm solves all problems in the easiest or most efficient way.

 

Syntax

 

The MATLAB application is built around the MATLAB scripting language. Common usage of the MATLAB application involves using the Command Window as an interactive mathematical shell or executing text files containing MATLAB code.

 

GNU Octave

GNU Octave is software featuring a high-level programming language, primarily intended for numerical computations.

 

It provides a command-line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with MATLAB.

 

 It is part of the GNU Project, it is free software under the terms of the GNU General Public License.

 

GNU Octave is mostly compatible with MATLAB.

 

However, Octave's parser allows some (often very useful) syntax that MATLAB's does not, so programs written for Octave might not run in MATLAB.

 

Octave supports the use of both single and double quotes. MATLAB only supports single quotes, which means parsing errors will occur if you try to use double quotes (e.g. in an Octave script when run on MATLAB).

 

It is written in C++ language.

Text

It invokes Octave from the command-line.

Open Command Window and perform several operations on it.

Figure command with no parameters create new figure with next available number.

Hold on command retain plot data so that subsequent plot commands are displayed on a single graph.

 

Legend command creates a legend for the current axes using the specified labels.

 

 

 

 

 

You can save your figure as shown .

Copy of deck

By amisha2016

Copy of deck

  • 507