Basic Functions in MATLAB

In MATLAB, you can view the usage and examples of the function sin by entering >> help sin in the command line.

%% MATLAB Basic Function List

sin Sine

cos Cosine

tan Tangent

cot Cotangent

sec Secant

csc Cosecant

sinh Hyperbolic Sine

tanh Hyperbolic Tangent

cosh Hyperbolic Cosine

coth Hyperbolic Cotangent

sqrt Square Root

abs Absolute Value (Magnitude of a Complex Number)

angle Phase Angle of a Complex Number

unwrap Unwrap Phase Angle Sequence

asin Inverse Sine

acos Inverse Cosine

atan Inverse Tangent

atan2 Four-Quadrant Inverse Tangent

acot Inverse Cotangent

asec Inverse Secant

acsc Inverse Cosecant

acsch Inverse Hyperbolic Cosecant

asech Inverse Hyperbolic Secant

acoth Inverse Hyperbolic Cotangent

asinh Inverse Hyperbolic Sine

acosh Inverse Hyperbolic Cosine

atanh Inverse Hyperbolic Tangent

conj Conjugate of a Complex Number

imag Imaginary Part of a Complex Number

real Real Part of a Complex Number

isreal Check if a Number is Real

round Round to Nearest Integer

fix Round Towards Zero

floor Round Towards Negative Infinity

ceil Round Towards Positive Infinity

log Natural Logarithm

log10 Common Logarithm

log2 Logarithm Base 2

mod Modulus Operation (Same Sign as Divisor)

rem Modulus Operation (Same Sign as Dividend)

exp Exponential Function

pow2 Exponential Function Base 2

sign Sign Function

%%%%%%%%%%%

cond Condition Number of a Matrix

det Determinant of a Square Matrix

norm Norm of a Matrix

rank Rank of a Matrix

expm Matrix Exponential Function

logm Matrix Logarithm Function

sqrtm Matrix Square Root

funm Compute Function of a Matrix

%%%%%%%%%%%%%%

conv Polynomial Multiplication

deconv Polynomial Division

poly Polynomial Expression from Roots

polyder Polynomial Derivative

polyfit Polynomial Fitting

polyval Evaluate Polynomial

polyvalm Evaluate Polynomial in Matrix Form

roots Compute Roots of a Polynomial

%%%%%%

syms Define Symbolic Variables

double Convert Symbolic Variable to Numeric

digits Set Number of Digits for Symbolic Variables

vpa Variable Precision Arithmetic for Symbolic Variables

numeric Convert Symbolic Variable to Numeric

limit Compute Limit

diff Compute Derivative of a Function

int Compute Integral of a Function

Taylor Taylor Series Expansion of a Function

solve Solve Algebraic Equations

dsolve Solve Differential Equations

%%%%%%%%%%%

ifend

switch casecaseotherwiseend

forend

whileend

break;

return;

pause();

%%%%%%%%%%%%%%

plot();

plotyy();

subplot();

polar();

stem();

stairs();

axis();

title();

xlabel();

ylabel();

zlabel();

legend();

text();

gtext();

hold on; hold off;

Leave a Comment