matlab_final_quick_reference (1)

matlab_final_quick_reference (1) - MatLab Syntax Quick...

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

View Full Document Right Arrow Icon
MatLab Syntax Quick Reference Sheet Arithmetic + , - , * , / , \ , ^ , .* , ./ , .\ , .^ , Mathematical Functions sqrt( x ) nthroot( x ) sin( x ) acos( x ) tanh( x ) rem( n , m ) floor( x ) exp( x ) cos( x ) atan( x ) asinh( x ) max( v ) ceil( x ) log( x ) tan( x ) sinh( x ) factorial( n ) min( v ) fix( x ) log10( x ) asin( x ) cosh( x ) abs( x ) sign( x ) angle( x ) rand sind( x ) rem( x , y ) mod( x , y ) gcd( x , y ) lcd( x , y ) primes( x ) isprime( x ) round( x ) Mathematical Constants pi ( π 3 . 14159) i ( i = - 1) inf ( ) NaN (not a number) Functions function [out] = f(in) f = @(in) mathExpression; nargout nargin eye( n ) (identity matrix) inv( m ) (inverse of matrix) sparse( m ) (create sparse matrix) ones( n ) (size n vector of 1’s) zeros( n , m ) (0’s matrix) det( m ) (determinant) transpose( m ) : (colon operator) end dot( A , B ) linspace( a , b , np ) ; (semicolon) prod( A , B ) mean( M ) median( M ) sortrows( M ) flipud(
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.

Page1 / 2

matlab_final_quick_reference (1) - MatLab Syntax Quick...

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