Matlab reference

Matlab reference - Commands clc clear command window clear...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Commands clc clear command window clear delete all variables clear var1 var2 var3 … delete selected variables grid on adds a grid to the current graph grid off removes grid from current graph help command provide help on command (e.g. help clear) help function provide help on function (e.g. help sqrt) format compact prevent blank lines in output lookfor keyword looks for functions having keyword in their initial comment who list all variables whos list all variables (with variable sizes) name = @( args ) expression define an “anonymous” function Miscellaneous comments % this is a comment long comments %{ Everything in here is a comment. The start and end markers must be on lines by themselves. % } long lines Lines that are uncomfortably long may be broken across ... multiple lines by ending all but the last line with a ... series of three dots. creating vectors linspace (s, e, n) n evenly spaced values from s to e s : e from s to e in steps of 1 s : inc : e from s in steps of inc , last value not to exceed e [ v1 v2 v3 v3 . ..] vector containing specified values ones (1, n) row vector of n ones zeros (1, n) row vector of n zeroes left division x\y can be thought of as being equivalent to x
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 04/14/2010.

Page1 / 3

Matlab reference - Commands clc clear command window clear...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online