11.07.2015 Views

MatlabNotes

MatlabNotes

MatlabNotes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Further information regarding the commands listedin this section may then be obtained by using:>> help topictry, for example,>> help helpabs Absolute valuesqrt Square root functionsign Signum functionconj Conjugate of a complex numberimag Imaginary part of a complexnumberreal Real part of a complex numberangle Phase angle of a complex numbercos Cosine function, radianssin Sine function, radianstan Tangent function, radianscosd Cosine function, degreessind Sine function, degreestand Tangent function, degreesexp Exponential functionlog Natural logarithmlog10 Logarithm base 10cosh Hyperbolic cosine functionsinh Hyperbolic sine functiontanh Hyperbolic tangent functionacos Inverse cosine, result in radiansacosd Inverse cosine, result in degreesacosh Inverse hyperbolic cosineasin Inverse sine, result in radiansasind Inverse sine, result in degreesasinh Inverse hyperbolic sineatan Inverse tan, result in radiansatand Inverse tan, result in degreesatan2 Two–argument form of inversetanatanh Inverse hyperbolic tanround Round to nearest integerfloor Round towards minus infinityfix Round towards zeroceil Round towards plus infinityrem Remainder after divisionTable 2: Elementary FunctionsManaging commands and functions.help On-line documentation.doc Load hypertext documentation.what Directory listing of M-, MATandMEX-files.type List M-file.lookfor Keyword search through theHELP entries.which Locate functions and files.demo Run demos.Managing variables and the workspace.who List current variables.whos List current variables, long form.load Retrieve variables from disk.save Save workspace variables to disk.clear Clear variables and functionsfrom memory.size Size of matrix.length Length of vector.disp Display matrix or text.Working with files and the operating system.cd Change current working directory.dir Directory listing.delete Delete file.! Execute operating system command.unix Execute operating system command& return result.diary Save text of MATLAB session.Controlling the command window.cedit Set command line edit/recall facilityparameters.clc Clear command window.home Send cursor home.format Set output format.echo Echo commands inside scriptfiles.more Control paged output in commandwindow.Quitting from MATLAB.quit Terminate MATLAB.Table 3: General purpose commands.42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!