Foreword
This document contains a list of some Matlab basis functions and compare them with the Scilab equivalent functions if there are. It gives the main differences and gives examples of particular cases.

However not all Matlab and Scilab functions are described here.

Equivalents for operators and variables can be found at the end of this document.

Caution:
This document is not dedicated to explain how functions work. Users can used online manuals of Matlab and Scilab for it.

How to use this HTML guide:
To have more details about functions and examples, clic on the "triangles" just at the left of Matlab function name.
To have a more detailed index, clic on the letters and keywords.

Matlab A

abs Absolute value and complex magnitude abs

acosh Inverse hyperbolic cosine acosh

acos Inverse cosine acos

acoth(A) Inverse hyperbolic cotangent atanh(1 ./A)

acot(A) Inverse cotangent atan(1 ./A)

acsch(A) Inverse hyperbolic cosecant asinh(1 ./A)

acsc(A) Inverse cosecant asin(1 ./A)

all Test to determine if all elements are nonzero and

angle(A) Phase angle atan(imag(A),real(A))

any Test to determine if any nonzeros elements or

asech(A) Inverse hyperbolic secant acosh(1 ./A)

asec(A) Inverse secant acos(1 ./A)

asinh Inverse hyperbolic sine asinh

asin Inverse sine asin

atan2 Four-quadrant inverse tangent atan2

atanh Inverse hyperbolic tangent atanh

atan Two-quadrant inverse tangent atan

Matlab B

balance Diagonal scaling to improve eigenvalue accuracy balanc

barh Bar histogram horizontal barh

bar Bar histogram bar

beep Produce a beep sound beep

besseli Modified Bessel functions of the first kind besseli

besselj Bessel functions of the first kind besselj

besselk Modified Bessel functions of the second kind besselk

bessely Bessel functions of the second kind bessely

beta Beta function beta

bin2dec Returns the integer corresponding to a Given binary representation bin2dec

bitand The AND of two integers bitand

bitcmp The binary complementary of an integer bitcmp

bitget Gets the bit of an integer whose the positon is given in the input argument bitget

bitor The OR of two integers bitor

bitxor Returns the exclusive OR of two integers bitxor

blanks A string of blanks No equivalent

box Display axes border No equivalent

break Terminate execution of a for loop or while loop break

Matlab C

case Case switch case

cat Arrays concatenation cat

cd Change/get working directory cd

ceil Round up ceil

cell2mat Convert a cell array into a matrix cell2mat

cellstr Convert strings vector (or strings matrix) into a cell of strings cellstr

cell Create cell array cell

chol Cholesky factorization chol

cla Clear current axes No equivalent

clc Clear Command Window clc([nblines])

clear Remove items from workspace, freeing up system memory clear

clf Clear current figure window clf

clock Current time as a date vector No equivalent

closereq Default figure close request function delete(gcf())

close Delete specified figure close ↔ xdel ↔ delete

colordef Set default property values to display different color schemes No equivalent

complex Returns the complex form corresponding to the given real part and imaginary part complex

conj Complex conjugate conj

continue Keyword to pass control to the next iteration of a loop continue

conv Convolution convol

cosh Hyperbolic cosine cosh

cos Cosine cos

coth Hyperbolic cotangent coth

cot Cotangent cotg

cputime Elapsed CPU time timer()

csch(A) Hyperbolic cosecant 1 ./sinh(A)

csc(A) Cosecant 1 ./sin(A)

cumprod Cumulative product cumprod

cumsum Cumulative sum cumsum

Matlab D

date Current date string date()

dec2bin The binary representation of a decimal number dec2bin

dec2hex Decimal to hexadecimal number conversion dec2hex

delete Delete files or graphics objects mdelete ↔ delete

det Determinant det

diag Diagonal including or extracting diag

diary Save session to a file diary

diff Differences and approximate derivatives diff

dir Display directory listing dir

display Overloaded method to display an object display

disp Display text or array disp

docopt Web browser for UNIX platforms No equivalent

doc Display online documentation help

dos Execute a UNIX command and return result unix_g

double Conversion to double precision double

drawnow Complete pending drawing events No equivalent

Matlab E

echo Echo lines during execution mode

eig Find eigenvalues and eigenvectors spec ↔ bdiag

elseif Conditionally execute statements elseif

else Conditionally execute statements else

end Terminate loops and conditionals end

erfcx Scaled complementary error function erfcx

erfc Complementary error function erfc

erf Error function erf

error Display error messages error

etime Elapsed time etime

eval Execute a string containing an instruction/expression evstr ↔ execstr

exist Check if a variable or file exists exist

exit Ends current session exit

expm Matrix exponential expm

exp Exponential exp

eye Identity matrix eye

Matlab F

factor Prime numbers decomposition factor

false False array No equivalent

fclose Close one or more open files mclose

feof Test for end-of-file meof

ferror Query about errors in file input or output mclearerr ↔ merror

feval Function evaluation evstr ↔ execstr

fftshift Shift zero-frequency component of discrete Fourier transform to center of spectrum fftshift

fft(A[,...]) Discrete Fourier transform fft(A,-1[,...])

fgetl Read line(s) from file, discard newline character mgetl

fgets Read line from file, keep newline character fgetstr

fileparts Return filename parts fileparts

filesep Return the directory separator for this platform No equivalent

findstr Find one string within another No equivalent

find Find indices and values of nonzero elements find

fix Round towards zero fix

fliplr(A) Flip matrix in left/right direction A(:,$:-1:1)

flipud(A) Flip matrix in up/down direction A($:-1:1,:)

floor Round down floor

fopen Open a file or obtain information about open files mopen

format Control display format for output format

for Repeat statements a specific number of times for

fprintf Write formatted data to file No equivalent

fread Read binary data to a file No equivalent