

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Prepara tus exámenes
Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Prepara tus exámenes con los documentos que comparten otros estudiantes como tú en Docsity
Encuentra los documentos específicos para los exámenes de tu universidad
Estudia con lecciones y exámenes resueltos basados en los programas académicos de las mejores universidades
Responde a preguntas de exámenes reales y pon a prueba tu preparación
Consigue puntos base para descargar
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Comunidad
Pide ayuda a la comunidad y resuelve tus dudas de estudio
Ebooks gratuitos
Descarga nuestras guías gratuitas sobre técnicas de estudio, métodos para controlar la ansiedad y consejos para la tesis preparadas por los tutores de Docsity
Una lista de comandos básicos para la herramienta de análisis y programación octave. Aprenda a navegar por la ayuda integrada, realizar motion, seleccionar nodos, buscar cadenas y completar comandos. Además, se incluyen funciones para la manipulación de texto, eliminación y rotación de texto, y manejo de historial de comandos.
Tipo: Apuntes
1 / 3
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!


return to top-level prompt
file argument)
no file argument)
from the history list
list
commands to edit or run. If beg is greater than end, reverse the list of commands before editing. If end is omitted, select commands from beg to the end of the history list. If both arguments are omitted, edit the previous item in the history list.
variable
Square brackets delimit literal matrices. Commas separate elements on the same row. Semicolons separate rows. Commas may be replaced by spaces, and semicolons may be replaced by one or more newlines. Elements of a matrix may be arbitrary expressions, assuming all the dimensions agree.
Multi-dimensional arrays may be created with the cat or reshape commands from two-dimensional sub-matrices.
Specify a range of values beginning with base with no elements greater than limit. If it is omitted, the default value of incr is 1. Negative increments are permitted.
A string constant consists of a sequence of characters enclosed in either double-quote or single-quote marks. Strings in double- quotes allow the use of the escape sequences below.
scalar select row (column) corresponding to scalar vector select rows (columns) corresponding to the elements of vector range select rows (columns) corresponding to the elements of range
val
Declare a variable as static to a function and set its initial value. Global variables may be accessed inside the body of a function without having to be passed in the function parameter list provided they are declared global when used.
Copyright 1996, 1997, 2007 John W. Eaton Permissions on back
Assignment Expressions
var {idx} = expr assign elements of a cell array.
Arithmetic and Increment Operators
Comparison and Boolean Operators
These operators work on an element-by-element basis. Both arguments are always evaluated.
Short-circuit Boolean Operators
Operators evaluate left-to-right. Operands are only evaluated if necessary, stopping once overall truth value can be determined.
Operator Precedence Table of Octave operators, in order of increasing precedence.
Paths and Packages
Cells and Structures
var{idx} = ... set an element of a cell array.
Statements
Execute stmt-list once for each column of expr. The variable identifier is set to the value of the current column during each iteration.
Execute stmt-list while condition is true.
if (condition) if-body [else else-body] endif Execute if-body if condition is true, otherwise execute else- body. if (condition) if-body [elseif (condition) elseif-body] endif Execute if-body if condition is true, otherwise execute the
is true, otherwise execute else-body.
statement.
Execute body. Execute cleanup no matter how control exits body.
Execute body. Execute cleanup if body fails.
Strings
Defining Functions
function [ret-list] function-name [ (arg-list) ] function-body
ret-list may be a single identifier or a comma-separated list of identifiers delimited by square-brackets. arg-list is a comma-separated list of identifiers and may be empty.
Function Handles
handle.
function handle.
Evaluate a function handle or string, passing remaining args to func Anonymous function handles take a copy of the variables in the current workspace.
Miscellaneous Functions
Basic Matrix Manipulations
Linear Algebra