This action might not be possible to undo. Are you sure you want to continue?
)
A
Absolute value and complex magnitude Inverse hyperbolic cosine Inverse cosine Inverse hyperbolic cotangent abs acosh acos atanh(1 ./A)
In Matlab y=acoth(x) and Scilab y=atanh(1 ./x), for real elements of x outside the domain [1,1], the complex part of Scilab y value is the opposite of Matlab y value. See atanh/. acot(A) Inverse cotangent atan(1 ./A) asinh(1 ./A) asin(1 ./A) and
acsch(A)
Inverse hyperbolic cosecant
acsc(A) all
Inverse cosecant Test to determine if all elements are nonzero
Matlab all function can work with complexes, what Scilab and can not, so a call to abs function can be necessary when translating from Matlab to Scilab. ▹ B=all(A) ↔ B=and(A): If A is a matrix, all(A) is equivalent to all(A,1) in Matlab whereas in Scilab and(A) is a logical AND of all elements of A. If A is a multidimensional array then Matlab treats the values along the first nonsingleton dimension, but Scilab returns logical AND of all elements of A. ▹ B=all(A,dim) ↔ B=and(A,dim): In Scilab dim=1 is equivalent to dim=''r'' and dim=2 is equivalent dim=''c''. In Matlab, dim can be greater then the number of dimension of A (in this case, B=A), in Scilab you will get an error message.
y = all([1,1,0;1,0,1]) y = and([1,1,0;1,0,1])
y = [1,0,0] y = all([1,1,0;1,0,1],1) y = [1,0,0]
y = %F y = and([1,1,0;1,0,1],1) y = [%T,%F,%F]
angle(A) any
Phase angle
atan(imag(A),real(A)) or
Test to determine if any nonzeros elements
Matlab any function can work with complexes, what Scilab or can not, so a call to abs function can be necessary when translating from Matlab to Scilab. ▹ B=any(A) ↔ B=or(A): If A is a matrix, any(A) is equivalent to any(A,1) in Matlab whereas in Scilab or(A) is a logical OR of all elements of A. If A is a multidimensional array then Matlab treats the values along the first nonsingleton dimension, but Scilab returns logical OR of all elements of A. ▹ B=any(A,dim) ↔ B=or(A,dim): In Scilab dim=1 is equivalent to dim=''r'' and dim=2 is equivalent dim=''c''. In Matlab, dim can be greater then the number of dimension of A (in this case, B=A), in Scilab you will get an error message.
y y y y = = = = any([1,1,0;1,0,1]) [1,1,1] any([1,1,0;1,0,1],1) [1,1,1] y y y y = = = = or([1,1,0;1,0,1]) %T or([1,1,0;1,0,1],1) [%T,%T,%T]
asech(A)
Inverse hyperbolic secant
acosh(1 ./A) acos(1 ./A) asinh asin
asec(A) asinh asin
Inverse secant Inverse hyperbolic sine Inverse sine
In y=asin(x), for real elements of x outside the domain [1,1], the complex part of Scilab y value is the opposite of Matlab y value.
y = asin(2) y = 1.5708  1.3170i y = asin(2) y = 1.5708 + 1.3170i
atan2
Fourquadrant inverse tangent
atan2
Matlab atan2 function can work with complexes (in this case, complex part is ignored), what Scilab atan can not. atanh Inverse hyperbolic tangent atanh
In y=atanh(x), for real elements of x outside the domain [1,1], the complex part of Scilab y value is the opposite of Matlab y value.
y = atanh(2) y = 0.5493 + 1.5708i y = atanh(2) y = 0.5493061  1.5707963i
atan
Twoquadrant inverse tangent
atan
Matlab
B
balance Diagonal scaling to improve eigenvalue accuracy balanc There is no equivalent for B=balance(A) in Scilab, balanc function does not work with only one output value. When used with two outputs, these functions return value in inverse order.
[T,Ab] = balance(A) [Ab,T] = balanc(A)
barh bar beep
Bar histogram horizontal Bar histogram Produce a beep sound
barh bar beep
Scilab beep always returns a value but not Matlab function. besseli Modified Bessel functions of the first kind besseli
Scilab besseli function can work with only one output argument, but the Matlab function can work with two outputs arguments.
y = besseli(alpha,x) y = besseli(alpha,x,1) [y,ierr] = besseli(alpha,...) y = besseli(alpha,x) y = besseli(alpha,x,ice),ice = 1 or ice = 2
besselj
Bessel functions of the first kind
besselj
Scilab besselj function can work with only one output argument, but the Matlab function can work with two outputs arguments.
y = besselj(alpha,x) y = besselj(alpha,x,1) [y,ierr] = besselj(alpha,...) y = besselj(alpha,x) y = besselj(alpha,x,ice),ice = 1 or ice = 2
besselk
Modified Bessel functions of the second kind
besselk
Scilab besselk function can work with only one output argument, but the Matlab function can work with two outputs arguments.
y = besselk(alpha,x) y = besselk(alpha,x,1) [y,ierr] = besselk(alpha,...) y = besselk(alpha,x) y = besselk(alpha,x,ice),ice = 1 or ice = 2
bessely
Bessel functions of the second kind
bessely
Scilab bessely function can work with only one output argument, but the Matlab function can work with two outputs arguments.
y = bessely(alpha,x) y = bessely(alpha,x,1) [y,ierr] = bessely(alpha,...) y = bessely(alpha,x) y = bessely(alpha,x,ice),ice = 1 or ice = 2
beta
Beta function
beta
Matlab beta function can work with only one scalar input an done notscalar input parameter, but in Scilab both parameters must have the same size.
A = 1; B = [1 2 3]; Y = beta(A,B); A = 1; B = [1 2 3]; // So that A and B have the same size tmp = A;A = B;A(:) = tmp; Y = beta(A,B);
bin2dec bitand bitcmp
Returns the integer corresponding to a Given binary representation The AND of two integers The binary complementary of an integer
bin2dec bitand bitcmp
bitget bitor bitxor blanks
Gets the bit of an integer whose the positon is given bitget in the input argument The OR of two integers Returns the exclusive OR of two integers A string of blanks bitor bitxor No equivalent
There is no Scilab equivalent function for Matlab box but it can be easyly replaced by Scilab equivalent instructions.
A = ['xxx' blanks(20) 'yyy']; A = "xxx"+part(" ",ones(1,20))+"yyy";
box
Display axes border
No equivalent
There is no Scilab equivalent function for Matlab box but it can be easyly replaced by Scilab equivalent instructions.
box on box off box box(h,'on') box(h,'off') box(h) a = gca(); a.box = "on"; a.box = "off"; if a.box=="on" then a.box="off";else a.box="on";end; h.box = "on"; h.box = "off"; if h.box=="on" then h.box="off";else h.box="on";end;
break
Terminate execution of a for loop or while loop
break
Matlab case
C
Case switch case
In Matlab expression evaluated can be a cell, in this particular use, all values of cell are considered individually (similarly to a OR). In Scilab it can not be a cell (Matlab particularity can be replaced by others
"case" or all switch/case statement can be replaced by a if/then/else statement.). cat cd Arrays concatenation Change/get working directory cat cd
Note that cd .. does not work in Scilab, but it does in Matlab. In Scilab you can use cd(".."). ceil cell2mat cellstr cell Round up Convert a cell array into a matrix ceil cell2mat
Convert strings vector (or strings matrix) into a cell cellstr of strings Create cell array cell
Note that in Matlab, input can contain complex values (in these cases, only real part of it is taken in account), what Scilab function do not tolerate. chol Cholesky factorization chol
Scilab chol function can only have one output whereas Matlab one can have two ouputs. cla Clear current axes No equivalent
▹ cla: Scilab equivalent could be a = gca();delete(a.children); but in this case, all current axes children will be deleted because there is no HandleVisibility property in Scilab graphics. ▹ cla reset: Scilab equivalent is a = gca();delete(a.children);. clc Clear Command Window clc([nblines])
Note that Scilab function allows to clear only a set of lines above the cursor using clc(nblines). Note that Scilab function can not be used in no window mode under Unix/Linux while Matlab one clears the terminal display as if you were using "clear" command. clear Remove items from workspace, freeing up system memory clear
Scilab and Matlab clear functions are only equivalent when called using clear or clear name. ▹ clear global ...: Scilab equivalent for Matlab clear global [name] is clearglobal([name]). ▹ clear variables ...: Scilab equivalent for Matlab clear variables is simply clear. ▹ clear keyword ...: For all other keywords, there is no Scilab equivalent for Matlab clear call. clf Clear current figure window clf
▹ clf: In this case, all current figure children will be deleted because there is no HandleVisibility property in Scilab graphics. ▹ fig_handle = clf: Scilab equivalent is be fig_handle = gcf();clf;. In this case, all current figure children will be deleted because there is no HandleVisibility property in Scilab graphics. clock Current time as a date vector No equivalent
Even if there no equivalent for Matlab clock in Scilab, it can be emuled as shown in example.
c = clock w = getdate(); w(3:5) = []; w(6) = w(6)+w(7)/1000; c = w(1:6);
closereq
Default figure close request function
delete(gcf())
close
Delete specified figure
close ↔ xdel ↔ delete
▹ close: If current figure is a uicontrol one, Scilab and Matlab close are equivalent. But if current figure is a graphic window, Scilab equivalent for Matlab close is delete(gcf()). ▹ close(h): If h is a uicontrol figure, Scilab and Matlab close(h) are equivalent. But if h is a graphic window, Scilab equivalent for Matlab close(h) is delete(h). ▹ close('all'): Scilab equivalent for Matlab close('all') is xdel(winsid()). ▹ close(name): There is no Scilab equivalent for Matlab close(name) however, mtlb_close can be an equivalent. ▹ close('all','hidden'): Scilab equivalent for Matlab close('all','hidden') is xdel(winsid()) but Scilab kills all figures even if they are hidden. colordef Set default property values to display different No color schemes equivalent
▹ [h = ]mtlb_colordef(color_option): Scilab equivalent is fig = gcf();fig.background = 1;[h = fig]; if color_option is equal to "black" or "none" and fig = gcf();fig.background = 1;[h = fig]; else. ▹ [h = ]mtlb_colordef(fig,color_option): Considering fig is a graphics handle, Scilab equivalent is fig.background = 1;[h = fig]; if color_option is equal to "black" or "none" and fig.background = 2;[h = fig]; else. ▹ [h = ]mtlb_colordef('new',color_option): Scilab equivalent is fig=scf(max(winsid())+1);fig.background = 1;[h = fig]; if color_option is equal to "black" or "none" and fig=scf(max(winsid())+1);fig.background = 2;[h = fig]; else. complex Returns the complex form corresponding to the given real part and imaginary part complex
conj continue conv
Complex conjugate
conj
Keyword to pass control to the next iteration of a continue loop Convolution convol
Scilab convol output value is always a row vector while Matlab conv output value is a column vector if at least one input is a column vector. To have a closer result, replace Matlab conv(A) by clean(convol(A)) in Scilab. cosh cos coth cot cputime csch(A) Hyperbolic cosine Cosine Hyperbolic cotangent Cotangent Elapsed CPU time Hyperbolic cosecant cosh cos coth cotg timer() 1 ./sinh(A) 1 ./sin(A) cumprod
csc(A) cumprod
Cosecant Cumulative product
▹ C = cumprod(A): If A is a matrix, cumprod(A) is equivalent to cumprod(A,1) in Matlab whereas in Scilab cumprod(A) gives the cumulative product of all the entries of A taken columnwise. Actually, Matlab works on the first nonsingleton dimension and Scilb does not. ▹ C = cumprod(A,dim): Matlab can work with dim greater than number of dimensions of A but Scilab can not, in this can use mtlb_cumprod instead.
B B B B = = = = cumprod([1,2,3;4,5,6]) [1,2,3;4,10,18] cumprod([1,2,3;4,5,6],1) [1,2,3;4,10,18] B B B B = = = = cumprod([1,2,3;4,5,6]) [1,8,120;4,40,720] cumprod([1,2,3;4,5,6],1) [1,2,3;4,10,18]
cumsum
Cumulative sum
cumsum
▹ C=cumsum(A): If A is a matrix, cumsum(A) is equivalent to cumsum(A,1) in Matlab whereas in Scilab cumsum(A) gives the cumulative sum of all the entries of A taken columnwise. Actually, Matlab works on the first nonsingleton dimension and Scilb does not. ▹ C = cumsum(A,dim): Matlab can work with dim greater than number of dimensions of A but Scilab can not, in this can use mtlb_cumsum instead.
B = cumsum([1,2,3;4,5,6]) B=[1,2,3;5,7,9] B = cumsum([1,2,3;4,5,6],1) B=[1,2,3;5,7,9] B = cumsum([1,2,3;4,5,6]) B=[1,7,15;5,12,21] B = cumsum([1,2,3;4,5,6],1) B=[1,2,3;5,7,9]
Matlab date dec2bin dec2hex
D
Current date string The binary representation of a decimal number Decimal to hexadecimal number conversion date() dec2bin dec2hex
▹ Empty matrix input: In Matlab dec2hex returns "" when input is [] but Scilab dec2hex returns []. ▹ Complex inputs: In Matlab dec2hex automatically removes complex part of input but not in Scilab. ▹ Two inputs: In Matlab dec2hex can have two inputs, in Scilab mtlb_dec2hex emulates this case. mdelete ↔ delete
delete
Delete files or graphics objects
▹ Files: When Matlab delete is used to delete a file, Scilab equivalent is
mdelete. ▹ Graphics objects: When Matlab delete is used to delete a graphics object, Scilab equivalent is delete. Note that Scilab delete can delete a set of graphics handles is its input is a matrix of such objects. det diag Determinant Diagonal including or extracting det diag
Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal if A is a string matrix or vector in diag(A) or diag(A,k). Note that mtlb_diag can emulate this particularity in Scilab.
B = diag('str') B = ['s ';' t ';' r'] B B B B = = = = diag(``str'') ``str'' mtlb_diag(``str'') [``s ``;'' t ``;'' r'']
diary
Save session to a file
diary
When a filename is given to save environment, if this file exists, Scilab returns an error message while Matlab save environment at the end of existing file (append). Note that diary on and diary toggle exist only in Matlab. The equivalent for Matlab diary off is diary(0) in Scilab. diff Differences and approximate derivatives diff
▹ Y = diff(X[,n]): For this kind of use of diff (dim parameter not given), Matlab works on the first nonsingleton dimension of X what Scilab does not. In this case, Scilab considers dim to be "*" so that diff threats all values of X, what Matlab does not. ▹ Y = diff(X,n,dim): If dimension given by dim reaches 1 before n iterations have been done, Matlab switches to next nonsingleton dimension, but Scilab does not, use mtlb_diff to get equivalent results...When n is greater than all existing dimensions of X, Matlab returns [] what Scilab may not give for all inputs... dir Display directory listing dir
When used in command window, Scilab and Matlab dir are equivalents. When result is stored in a value, Matlab returns a struture but Scilab returns a tlist. To get the same result, you can use mtlb_dir, note that in this case, hidden files are not get. display disp docopt Overloaded method to display an object Display text or array Web browser for UNIX platforms display disp No equivalent
There no Scilab equivalent function, however, information about Web Browser used can be found using globalvariable %browsehelp. Thos variables exists under all platforms. doc dos Display online documentation Execute a UNIX command and return result help unix_g
Output values order is inversed in Scilab and in Matlab. In Scilab use disp to emulate Matlab echo option.
[status,result] = dos(...) [result,status] = unix_g(...)
double
Conversion to double precision
double
In Matlab, this function returns a Boolean type value for a Boolean input whereas Scilab function returns a Double type value. drawnow Complete pending drawing events No equivalent
In Scilab, drawing events are executed immediately. Scilab drawnow is different from Matlab one.
Matlab echo
E
Echo lines during execution mode
Scilab mode and Matlab echo are not exactly equivalents but they both change the information displayed during execution. Scilab mode has to be called inside a script or a function but Matlab echo can be called from prompt. However, some uses are equivalents such as: ▹ echo: is equivalent to Scilab mode(abs(mode()1)) for scripts and noncompiled functions ▹ echo on: is equivalent to Scilab mode(1) for scripts and noncompiled functions ▹ echo off: is equivalent to Scilab mode(0) spec ↔ bdiag
eig
Find eigenvalues and eigenvectors
▹ eig(A): Scilab equivalent for eig(A) is spec(A). Scilab eigen vector matrix can differ from Matlab one... ▹ eig(A,'nobalance'): There is no Scilab equivalent for 'nobalance' option. See examples... ▹ eig(A,B,flag): There is no Scilab equivalent for flag.
d = eig(A,'balance') [V,D] = eig(A,'balance') d = eig(A,B) [V,D] = eig(A,B) d = spec(A) [V,D] = bdiag(A+%i,1/%eps) [al,be] = spec(A); d = al./be; [al,be,V] = spec(A); D = spec(al./be);
elseif else end erfcx erfc erf
Conditionally execute statements Conditionally execute statements Terminate loops and conditionals Scaled complementary error function Complementary error function Error function
elseif else end erfcx erfc erf
error
Display error messages
error
Scilab error function can only take one character string as input but Matlab function can take more than one character string as input and also numerical values... etime Elapsed time etime
In Scilab, etime can be used with 6 and 10 value vectors but Matlab etime can only be used with 6 value vectors ([Year Month Day Hour Minute Second]). Execute a string containing an instruction/expression evstr ↔ execstr
eval
▹ Expression: When eval has to execute an expression then Scilab equivalent for eval is evstr ▹ Instruction: When eval has to execute an instruction with just one output value then Scilab equivalent for eval is evstr. If instruction has more than one output value then execstr has to be used as follows.When eval is used with two inputs then an equivalent can be found in examples below.
eval('1+1') eval('x=1+1') eval('[d1,d2]=size(1)') [d1,d2]=eval('size(1)') eval('1+1','1+2') evstr('1+1') x = evstr('1+1') execstr('[d1,d2]=size(1)') execstr('[d1,d2]=size(1)') if execstr("1+1","errcatch") then execstr("1+2");end
exist
Check if a variable or file exists
exist
Scilab exist function only works for variables, not for Mfiles or else... Scilab mtlb_exist function is a partial emulation for Matlab exist exit expm exp Ends current session Matrix exponential Exponential exit expm exp
eye
Identity matrix
eye
Note that in Matlab, A can contain complex values (in these cases, only real part of A is taken in account), what Scilab function do not tolerate. ▹ B=eye(A): If A is a scalar, then Matlab returns a A*A identity matrix but in Scilab you get a 1, use eye(A,A) to get the same matrix B. If A is a vector, Scilab and Matlab give the same B. Finally, if A is a matrix, in Scilab, B will be a matrix having the same size as A whereas in Matlab, you get an error message.
B B B B B B = = = = = = eye(2) [1,0;0,1] eye(2,2) [1,0;0,1] eye([3,3]) [1,0,0;0,1,0;0,0,1] B B B B B B = = = = = = eye(2) 1 eye(2,2) [1,0;0,1] eye([3,3]) [1,0]
Matlab factor false
F
Prime numbers decomposition False array factor No equivalent
To get the same result in Scilab, use: zeros(...)==1. See zeros. fclose feof Close one or more open files Test for endoffile mclose meof mclearerr ↔ merror
ferror
Query about errors in file input or output
▹ ferror(fid): When Matlab ferror is called with just one input and one output, then Scilab equivalent is merror. ▹ ferror(fid,'clear'): When Matlab ferror is called with two inputs and just one output,
then Scilab equivalent is mclearerr.For all other cases, there no equivalent in Scilab. evstr ↔ execstr
feval
Function evaluation
▹ One output: In this case Scilab evstr is an equivalent to feval, after modifying inputs such as in examples below. ▹ More than one output: In this case Scilab execstr is an equivalent to feval, after modifying inputs such as in examples below.
[y1] = feval(@cos,0) [y1,y2] = feval(@size,1) y1 = evstr("cos(0)") execstr("[y1,y2] = size(1)")
fftshift
Shift zerofrequency component of discrete Fourier fftshift transform to center of spectrum
▹ fftshift(A[,dim]): Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal if A is a string matrix or vector in fftshift(A) or fftshift(A,dim). mtlb_fftshift can emulate this particularity in Scilab. ▹ fftshift(A,dim): In Matlab, dim can be greater than the number of dimensions of A but in Scilab you get an error message in this case. mtlb_fftshift can emulate this particularity in Scilab.
Y = fftshift('str') Y = 'rst' Y Y Y Y = = = = fftshift('str') 'str' mtlb_fftshift('str') 'rst'
fft(A[,...])
Discrete Fourier transform
fft(A,1[,...])
▹ Y = fft(X): If X is a vector then Scilab equivalent for Matlab fft(X) is fft(X,1). If X is a matrix then Scilab equivalent for Matlab fft(X) is fft(X,1,2,1). ▹ Y = fft(X,n) / Y = fft(X,n,dim) / Y = fft(X,[],dim): There is no Scilab equivalent for all these Matlab uses of fft, in these cases, use mtlb_fft instead.
fgetl
Read line(s) from file, discard newline character
mgetl
Matlab fgetl reads file line per line while Scilab mgetl allows to read the whole file. Matlab fgetl returns 1 if it could not read a line in file but Scilab mgetl returns an empty string is this case. You can used meof to check if End Of File has been reached. fgets Read line from file, keep newline character fgetstr
Input parameter order is inversed in Scilab compared to Matlab.
fgets(fid,n) fgetstr(n,fid)
fileparts
Return filename parts
fileparts
Scilab function does not get file version but Matlab one does. Scilab function can take a second input parameter specifying the output value we want to get saying: "path", "fname" or "extension". filesep Return the directory separator for this platform No equivalent
There is no Scilab function equivalent to Matlab filesep but the same output can be obtained with pathconvert("/"). findstr Find one string within another No equivalent
There is no equivalent for findstr in Scilab, but an emulation function has been written: mtlb_findstr. Scilab strindex function is very similar to findstr but do not consider the size of the strings passed as parameters. strindex can replace findstr only if findstr can be replaced by strfind in Matlab. find Find indices and values of nonzero elements find
Matlab function can work with complex values what is not possible in Scilab, however, using abs it is very easy to have the same results. Note that Scilab function can only return two output values and Matlab one can return a third value that can be computed according to the first two output matrices as explained in Matlab help.
For example, in [i,j,v]=find(X), v is equal to: X(i+(j1))*size(X,1). Another great difference between Scilab and Matlab is that Matlab returns column vectors of indices when X is a column vector or a matrix but Scilab always returns row vectors. For this kind of input, use matrix to get the same output value...what is done mtlb_find() fix fliplr(A) Round towards zero Flip matrix in left/right direction fix A(:,$:1:1)
Due to the fact that Scilab and Matlab do not consider character string in the same way, result is different for this kind of input, in this case, use mtlb_fliplr instead. flipud(A) floor Flip matrix in up/down direction Round down A($:1:1,:) floor
fopen Open a file or obtain information about open files mopen ▹ Access permission: Matlab offers two permissions options not supported by Scilab: W and A (for tape drives) ▹ Input values: In Matlab, fopen('all') lists all opened files, in Scilab, this type of call for fopen does not exist. You can also use fopen in Matlab to get informations on a file identifier (fopen(fid)), this case is not implemented in Scilab. ▹ Machine format: Note that Scilab does not support machine format values as input or output.Matlab fopen can return an error message but not Scilab mopen, moreover, returned file identifier is 1 in case of error in Matlab but does not exist in this case in Scilab, so an emulation function has been written mtlb_fopen. format Control display format for output format
Some Matlab formats have no Scilab equivalent, see examples below.
format format + format("v",6) format(6)
format format format format format format format format format format format
bank compact hex long long e long g loose rat short short e short g
No equivalent for: "bank" No equivalent for: "compact" No equivalent for: "hex" format(16) format("e",16) format("e",16) No equivalent for: "loose" No equivalent for: "rat" format(6) format("e",6) format("e",6)
format format format
format format
for
Repeat statements a specific number of times
for
The variable used as loop index is clear in Scilab if all iterations have been made but is not clear if llop is ended by a break. In Matlab, this variable is never cleared. fprintf Write formatted data to file No equivalent
There is no equivalent function for Matlab fprintf in Scilab but an emulation function has been written: mtlb_fprintf. This function probably not allows all Matlab fprintf possibilities... fread Read binary data to a file No equivalent
There is no equivalent function for Matlab fread in Scilab but an emulation function has been written: mtlb_fread. This function probably not allows all Matlab fread possibilities (skip parameter is ignored...). frewind(fid) Move the file position indicator to the mseek("0",fid) beginning of an open file Read formatted data to file No equivalent
fscanf
There is no equivalent function for Matlab fscanf in Scilab but an emulation function has been written: mtlb_fscanf. This function
probably not allows all Matlab fscanf possibilities... fseek Set file position indicator mseek
Scilab and Matlab functions differ by the flag which indicate the origin of the position indicator, see examples below. Note that order of input value is different...
File beginning: fseek(fid,offset,'bof') fseek(fid,offset,1) Current position: fseek(fid,offset,'cof') fseek(fid,offset,0) File end: fseek(fid,offset,'eof') fseek(fid,offset,1) File beginning: fseek(offset,fid,"set") Current position: fseek(offset,fid,"cur") File end: fseek(offset,fid,"end")
ftell fullfile full function fwrite
Get file position indicator Build a full filename from parts Convert sparse matrix to full matrix Function definition Write binary data to a file
mtell fullfile full function No equivalent
There is no equivalent function for Matlab fwrite in Scilab but an emulation function has been written: mtlb_fwrite. This function probably not allows all Matlab fwrite possibilities (skip parameter is ignored...).
Matlab gammaln gamma getenv
G
Logarithm of gamma function Gamma function Get environment variable gammaln gamma getenv
Scilab getenv allows to set the string that will be returned if environment variable we want to get does not exist, but not Matlab function. global Define a global variable global No equivalent
graymon Set graphics defaults for grayscale monitors This Matlab function can be replaced in Scilab by: set(gdf(),"color_map",[0.75,0.5,0.25]'*ones(1,3)). grid Grid lines for two and threedimensional plots
No equivalent
There is no minor grid in Scilab. There is no equivalent function for Matlab grid function in Scilab but it has equivalents: ▹ grid on: may be replaced by set(gca(),"grid",[1 1]) ▹ grid off: may be replaced by set(gca(),"auto_clear",[1 1]) ▹ grid minor: can be emuled in Scilab by mtlb_hold but all grids are toggled ▹ grid: can be emuled in Scilab by mtlb_hold ▹ grid(axes_handle,'on'): may be replaced by axes_handle.grid=[1 1] ▹ grid(axes_handle,'off'): may be replaced by axes_handle.grid=[1 1] ▹ grid(axes_handle,'minor'): can be emuled in Scilab by mtlb_hold but all grids are toggled ▹ grid(axes_handle): can be emuled in Scilab by mtlb_hold(axes_handle)
Matlab hankel
H
Hankel matrix hank
The main difference between Scilab and Matlab function is that they do not use the same input values to build an Hankel matrix. If in Matlab, you just have to give a column vector (and eventually a row vector), Scilab function requires the size of the Hankel matrix to build and a covariance sequence vector for this matrix. (See syntax below)
H1 = hankel(C1) H2 = hankel(C2,R2) N1 = size(C1,"*"); COV1 = [matrix(C1,1,1),zeros(1,N1)]; H1 = hank(N1,N1,COV1); M2 = size(C2,"*"); N2 = size(R2,"*"); COV2 = [matrix(C2,1,1),matrix(R2(2:$),1,1)]; H2 = hank(M2,N2,COV2);
helpbrowser helpdesk
Display Help browser for access to full online documentation Display Help browser
help help
helpwin Provide access to and display help for all functions help help Display help help
In Scilab you can not get help on a toolbox, only on a function... Scilab equivalent for Matlab help syntax is help("names"). hess hold Hessenberg form of a matrix Hold current graph hess No equivalent
There is no equivalent function for Matlab hold function in Scilab but it has equivalents: ▹ hold on: may be replaced by set(gca(),"auto_clear","off") ▹ hold off: may be replaced by set(gca(),"auto_clear","on") ▹ hold: can be emuled in Scilab by mtlb_hold home Move the cursor to the upper left corner of the Command Window tohome
Note that Matlab function has no effect in no window mode under Unix/Linux while Scilab one clears the terminal display as if you were using "clear" command. horzcat Horizontal concatenation No equivalent
Scilab equivalent for Matlab horzcat(A1,A2,...,An) is [A1,A2,...,An] if all Ai are not character strings, else, Scilab equivalent is A1+A2+...+An.
Matlab ifft(A[,...])
I
Inverse discrete Fourier transform fft(A,1[,...])
▹ Y = ifft(X): If X is a vector then Scilab equivalent for Matlab ifft(X) is fft(X,1). If X is a matrix then Scilab equivalent for Matlab ifft(X) is fft(X,1,2,1). ▹ Y = ifft(X,n) / Y = ifft(X,n,dim) / Y = ifft(X,[],dim): There is no Scilab equivalent for all these Matlab uses of ifft, in these cases, use mtlb_ifft instead. if Conditionally execute statements if
In Scilab condition can be ended by then but not in Matlab. imag input int16 Complex imaginary part Request user input Convert to 16bit signed integer imag input int16
For infinite and NaNs values, Scilab and Matlab int16 return different values.
A A A A A = = = = = int16(inf) 32767 int16(inf) 32768 int16(nan) A A A A A = = = = = int16(%inf) 32768 int16(%inf) 32768 int16(%nan)
A = 0
A = 32768
int32
Convert to 32bit signed integer
int32
For infinite and NaNs values, Scilab and Matlab int32 return different values.
A A A A A A = = = = = = int32(inf) 2147483647 int32(inf) 2147483648 int32(nan) 0 A A A A A A = = = = = = int32(%inf) 2147483648 int32(%inf) 2147483648 int32(%nan) 2147483648
int8
Convert to 8bit signed integer
int8
For infinite values, Scilab and Matlab int8 return different values.
A A A A = = = = int8(inf) 127 int8(inf) 128 A A A A = = = = int8(%inf) 0 int8(%inf) 0
interp1
One_dimension interpolation function
interp1
Scilab interp1 function doesn't work with the pchip interpolation method. inv isa Matrix inverse Detect an object of a given type inv No equivalent
There is no equivalent function for Matlab isa function in Scilab but it can be replaced by equivalent syntaxes as shown is examples.
a b c d e f g h k l m n o = = = = = = = = = = = = = isa(x,'logical') isa(x,'char') isa(x,'numeric') isa(x,'int8') isa(x,'uint8') isa(x,'int16') isa(x,'uint16') isa(x,'int32') isa(x,'uint32') isa(x,'single') isa(x,'double') isa(x,'cell') isa(x,'struct') a b c d e f g h k l m n o = = = = = = = = = = = = = type(x)==4; type(x)==10; or(type(x)==[1,5,8]); typeof(x)=="int8"; typeof(x)=="uint8"; typeof(x)=="int16"; typeof(x)=="uint16"; typeof(x)=="int32"; typeof(x)=="uint32"; type(x)==1; type(x)==1; typeof(x)=="ce"; typeof(x)=="st";
p = isa(x,'function_handle') p = type(x)==13; q = isa(x,'sparse') q = type(x)==5; r = isa(x,'lti') r = typeof(x)=="statespace";
iscell(A) ischar(A) isdir isempty isequal
Determine if input is a cell array Determine if item is a character array Determine if item is a directory True for empty matrix
typeof(A)=="ce" type(A)==10 isdir isempty isequal
Determine if arrays are numerically equal
In Scilab, struct fields must be in the same order so that structs can be equal but not in Matlab. isfield Determine if input is a structure array field No equivalent
There is no Scilab equivalent function for Matlab tf=isfield(A,field) but there are equivalent instructions: ▹ If A is not a structure and/or field is not a character string: Scilab equivalent is %F. ▹ If A is a structure and field is a character string: Scilab equivalent is allfields=getfield(1,A);tf=or(allfields(3:$)==field);. isfinite True for finite elements No equivalent
There is no equivalent function for Matlab isfinite function in Scilab but it can be emuled by: abs(A)<%Inf isglobal ishandle(A) Determine if item is a global variable Determines if values are valid graphics object handles Return hold state isglobal type(A)==9 No equivalent
ishold
There is no equivalent function for Matlab ishold function in Scilab but it can be emuled by: get(gca(),"auto_clear")=="off";. isinf isinteger(A) True for infinite elements isinf
Detect whether an array has integer data type(A)==8 type True for letters of the alphabet No equivalent
isletter
There is no equivalent function to Matlab isletter function in Scilab. However it can be replaced as follows. Using mtlb_isletter will give a prettier code.
tf = isletter(A) If A is a String matrix: tf = ((asciimat(A)>=65) & (asciimat(A)<=90))  ((asciimat(A)>=97) & (asciimat(A)<=122)) If A is not a String matrix: tf = zeros(A)
islogical(A)
Determine if item is a logical array
No equivalent
There is no equivalent function for Matlab islogical function in Scilab but it can be emuled by: or(type(A)==[4,6]). isnan isnumeric(A) Detect NaN elements of an array Determine if input is a numeric array isnan No equivalent
There is no equivalent function for Matlab isnumeric function in Scilab but it can be emuled by: or(type(A)==[1 5 8]). ispc isreal Determine if PC (Windows) version Determine if all array elements are real numbers MSDOS isreal
Scilab isreal function can take two values as input. The first one is the same as Matlab one and the second allows to give a tolerance on the
absolute value of the imaginary part of first input. So to have the same results in Matlab and in Scilab, second input in Scilab function must be set to 0.
tf = isreal(1+0i) tf = 1 tf tf tf tf = = = = isreal(1+0*%i) %F isreal(1+0*%i,0) %T
isscalar(A) isspace
Determine if input is scalar
sum(length(A))==1 No equivalent
Detect elements that are ASCII white spaces
There is no equivalent function to Matlab isspace function in Scilab. However it can be replaced as shown below.
tf = isspace(A) If tf If tf A = A = is a String matrix: asciimat(A)==32 is not a String matrix: zeros(A)
issparse(S)
Test if matrix is sparse
No equivalent
There is no equivalent function for Matlab issparse function in Scilab but it can be emuled by: or(type(S)==[5,6]). isstruct(A) Determine if input is a structure array typeof(A)=="st" isstr(A) isunix isvector Determine if item is a character array Determine if Unix version Determine if input is a vector type(A)==10 ~MSDOS No equivalent
There is no Scilab equivalent function for Matlab tf=isvector(A) but there are equivalent instructions: ▹ If A is not a character string: Scilab equivalent is tf = size(A,1)==1  size(A,2)==1. ▹ If A is a character string: Scilab equivalent is tf = size(asciimat(A),1)==1  size(asciimat(A),2)==1.
Matlab keyboard kron(A,B)
K
Invoke the keyboard in a file Kronecker tensor product pause A .*. B
Matlab
L
Length of vector No equivalent
length(A)
If A is a vector, Scilab equivalent for length(A) is size(A,"*"). If A is a matrix, Scilab equivalent for length(A) is max(size(A)). If A contains character strings, String matrix has to be converted to a "character" string matrix using mstr2sci (Using asciimat to convert will give the same result). Scilab length is different from Matlab length. linspace Linearly spaced vector linspace
When A and/or B is a String in Matlab, linspace(A,B[,n]) returns a String matrix, in Scilab, it can be made with ascii(linspace(ascii(A),ascii(B),n)). load Load workspace variables from disk loadmatfile
Scilab loadmatfile does not handle option regexp yet. log10 Common (base 10) logarithm log10 log2 ↔ frexp
log2
Base 2 logarithm and dissect floating point number
Scilab log2 is equivalent to Matlab log2 for logarithm computation,
but for floating point number dissection, Scilab equivalent to Matlab log2 is frexp. logical(A) Convert numeric values to logical No equivalent
If A is not an empty matrix, Scilab equivalent for logical(A) is is not equal to 0 else Scilab equivalent is []. log Natural logarithm log apropos
lookfor Search for specified keyword in all help entries No Scilab equivalent for Matlab all option. lower(str) Convert string to lower case
convstr(str,''u'')
If A is not a character string matrix, Scilab equivalent for B=lower(A) is B=A, else equivalent is B=convstr(A). lu LU matrix factorization lu
There is no Scilab equivalent for Matlab lu when called with 1 or 4 outputs or with 2 inputs.
Matlab max
M
Maximum max
Matlab max function can work with complexes, what Scilab max can not, so a emulation function called mtlb_max has been written. Note that in Scilab, second input parameter can give the dimension to use to find the maximum values or another matrix (maximum of two matrices), in Matlab, dimension parameter is given in a third input parameter (in this case, second parameter must be []). ▹ C=max(A): If A is a matrix, max(A) is equivalent to max(A,[],1) in Matlab whereas in Scilab max(A) gives the maximum value found in A. Matlab max treats the values along the first nonsingleton dimension.
A = [1,2,3;4,5,6] C = max(A) C = [4,5,6] C = max(A,[],1) C = [4,5,6] B=[7,8,9;2,3,4] C = max(A,B) C = [7,8,9;4,5,6]
A = [1,2,3;4,5,6] C = max(A) C = 6 C = max(A,''r'') C = [4,5,6] B=[7,8,9;2,3,4] C = max(A,B) C = [7,8,9;4,5,6]
min
Minimum
min
Matlab min function can work with complexes, what Scilab min can not, so a emulation function called mtlb_min has been written. Note that in Scilab, second input parameter can give the dimension to use to find the minimum values or another matrix (minimum of two matrices), in Matlab, dimension parameter is given in a third input parameter (in this case, second parameter must be []). ▹ C=min(A): If A is a matrix, min(A) is equivalent to min(A,[],1) in Matlab whereas in Scilab min(A) gives the minimum value found in A. Matlab min treats the values along the first nonsingleton dimension.
A C C C C B C C = = = = = = = = [1,2,3;4,5,6] min(A) [1,2,3] min(A,[],1) [1,2,3] [7,8,9;2,3,4] min(A,B) [1,2,3;2,3,4] A C C C C B C C = = = = = = = = [1,2,3;4,5,6] min(A) 1 min(A,''r'') [1,2,3] [7,8,9;2,3,4] min(A,B) [1,2,3;2,3,4]
mkdir
mkdir
Scilab mkdir returns 1 or 2 values but Matlab one can return up to three values (third output is a Matlab messageid). mod Modulus after division pmodulo
Scilab pmodulo can work with Complex values what Matlab mod can not. more Display Command Window output one screenful at a lines time
See examples.
more off lines(0)
more on more(30)
lines(60) lines(30)
Matlab Number of function input arguments
N
argn(2) ↔ size(getfield(1,macrovar(fun)),"*")
nargin ↔ nargin('fun')
Number of nargout ↔ argn(1) ↔ function output nargout('fun') size(getfield(2,macrovar(fun)),"*") arguments ndims Number of array dimensions No equivalent
There is no Scilab equivalent function for ndims(A) but it can be emuled by: size(size(A),"*") norm Vector and matrix norms norm string ↔ msprintf
num2str
Number to string conversion
▹ num2str(a,precision): There is no Scilab equivalent for this Matlab expression. ▹ num2str(a,format): Scilab equivalent for Matlab num2str(a,format) is msprintf(format,a).
Matlab ones
O
Create an array of all ones ones
Note that in Matlab, A can contain complex values (in these cases, only real part of A is taken in account), what Scilab function do not
tolerate. ▹ B=ones(A): If A is a scalar, then Matlab returns a A*A matrix of ones but in Scilab you get a 1, use ones(A,A) to get the same matrix B. If A is a vector, Scilab and Matlab give the same B. Finally, if A is a matrix, in Scilab, B will be a matrix having the same size as A whereas in Matlab, you get an error message.
B B B B B B = = = = = = ones(2) [1,1;1,1] ones(2,2) [1,1;1,1] ones([3,3]) [1,1,1;1,1,1;1,1,1] B B B B B B = = = = = = ones(2) 1 ones(2,2) [1,1;1,1] ones([3,3]) [1,1]
otherwise
Default part of switch/select statement
else
Matlab
P
Halt execution temporarily xpause ↔ halt
pause
Scilab equivalent for Matlab pause(n) is xpause(1000*n). ▹ pause ↔ halt(): Scilab halt() and Matlab pause are equivalents. ▹ pause on/off: There is no Scilab equivalent for Matlab pause on or pause off perms permute pie plot Array of all permutations of vector components Permute the dimensions of an array circular graphic Linear 2D plot perms permute pie plot
Scilab plot doesn't accept all the properties of the Matlab plot pow2 Base 2 power and scale floatingpoint numbers No equivalent
▹ X=pow2(Y): There is not equivalent function for pow2 in Scilab but, when called with one input argument it can be emulated by: 2^ Y ▹ X=pow2(F,E): In this case, Matlab pow2() ignores imaginary part of input arguments. An equivalent expression for this use of pow2 is: F.* 2 .^ E (Note that 2 must be preceeded and followed by a white space). primes prod Returns the primes numbers included between 1 and primes given number Product of array elements prod
▹ M=prod(A): Scilab prod(A) returns the product of all components of A. So, if A is a vector, then Scilab and Matlab work in the same way. If A is a matrix, Scilab prod(A) gives the product of all elements of A but Matlab returns the product of each column. Finally, if A is a multidimensional array, Matlab works on the first nonsingleton dimension of A what Scilab does not. So, to be sure to find a Scilab equivalent for Matlab call to prod it is better to precise dimension on which to work. ▹ M=prod(A,dim): In Scilab dim=1 is equivalent to dim=''r'' and dim=2 is equivalent dim=''c''. In Matlab, dim can be greater then the number of dimension of A (in this case, M=A), in Scilab you will get an error message.
A M M M M = = = = = [1,2,3;4,5,6] prod(A) [4,10,18] prod(A,1) [4,10,18] A M M M M = = = = = [1,2,3;4,5,6] prod(A) 720 prod(A,''r'') [4,10,18]
Matlab qr
Q
Orthogonaltriangular decomposition qr
When used with two input values and tree output values, Scilab and Matlab qr results can differ. Use mtlb_qr instead. quit Terminate session quit
Matlab
R
Normally distributed random numbers and arrays rand(A,''normal'')
randn(A)
▹ B=randn(A) ↔ B=rand(A,``normal''): If A is a scalar, then Matlab returns a A*A random matrix but in Scilab you get a single random value, use rand(A,A,''normal'') to get the same matrix B. Finally, if A is a matrix, in Scilab, B will be a matrix having the same size as A whereas in Matlab, you get an error message.Note that in Matlab, A can contain complex values (in these cases, only real part of A is taken in account), what Scilab function do not tolerate. Particular case: To get the state of the normal generator, in Matlab you have to use s=randn('state') to get 2 current values of the generator, but Scilab equivalent s=rand(``seed'') return only one value. rand(A) Uniformly distributed random numbers and arrays rand(A[,''uniform''])
▹ B=rand(A): If A is a scalar, then Matlab returns a A*A random matrix but in Scilab you get a single random value, use rand(A,A) to get the same matrix B. Finally, if A is a matrix, in Scilab, B will be a matrix having the same size as A whereas in Matlab, you get an error message.Note that in Matlab, A can contain complex values (in these cases, only real part of A is taken in account), what Scilab function do not tolerate. Particular case: To get the state of the uniform generator, in Matlab you have to use s=rand('state') to get 35 current values of the generator, but Scilab equivalent s=rand(``seed'') return only one value. rcond Matrix reciprocal condition number estimate rcond
Scilab and Matlab values differ for empty matrix.
c = rcond([]) c = Inf c = rcond([]) c = []
realmax
Largest positive floatingnumber_properties("huge") point number
There is no Scilab equivalent for Matlab realmax('single'). realmin Smallest positive floatingpoint number number_properties("tiny")
There is no Scilab equivalent for Matlab realmin('single'). real rem(X,Y) Real part of a complex number Remainder after division real Xfix(X./Y).*Y No equivalent
repmat
Replicate and tile an array
There is no Scilab equivalent function for Matlab repmat but it can be replaced by the following expressions (considering m and n being real values): ▹ repmat(A,m) with m a scalar: can be replaced by ones(m,m).*.A if A is of Double type, by ones(m,m).*.bool2s(A) if A is of Boolean type and by asciimat(ones(m,m).*.asciimat(A) if A is of String type ▹ repmat(A,m) with m a vector: can be replaced by ones(m(1),m(2),...).*.A is of Double type, by ones(m(1),m(2),...).*.bool2s(A) if A is of Boolean type and by asciimat(ones(m(1),m(2),...).*.asciimat(A) if A is of String type ▹ repmat(A,m,n): can be replaced by ones(m,n).*.A if A is of Double type, by ones(m,n).*.bool2s(A) if A is of Boolean type and by asciimat(ones(m,n).*.asciimat(A) if A is of String type reshape Reshape array matrix
To get the same result for character string matrices in Scilab than in Matlab, convert Scilab character string matrices using mstr2sci. All unspecified dimensions are represented by a [] input in Matlab while in Scilab they are given by a 1. Matlab reshape suppresses singleton higher dimension, it is not the case for matrix in Scilab... return Return to the invoking function return
round
Round to nearest integer
round
Matlab save
S
Save workspace variables from disk mtlb_save
Scilab mtlb_save does not handle options v4 mat and append yet. schur setstr Schur decomposition Set string flag schur ascii
▹ S = setstr(A) with A a caracter string: In this case, Scilab ascii function convert string to ascii code matrix, but setstr keeps string format. sign sinh sin size Signum function Hyperbolic sine Sine Array dimension sign sinh sin size
Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal for string matrices, convert it using m2scistr to have the same result. ▹ d = size(X,dim): If dim is greater than number of dimensions of X, Matlab returns d=1, but in Scilab, you get an error message. Scilab mtlb_size can work with dim greater than number of dimensions of X. ▹ [d1,...dn] = size(X): If n is greater than number of dimensions of X, all "extra" variables are set to 1 in Matlab but Scilab returns an error message. Scilab mtlb_size returns a Matlab like result in these cases. When n is less than number of dimensions of X, dn contains the product of the sizes of the remaining dimensions in Matlab but in Scilab dn = size(X,n), use mtlb_size for such uses.
sort
Sort elements in ascending order
No equivalent
Scilab sort and Matlab sort are different functions ! For character string inputs, please use better mtlb_sort in Scilab... ▹ B = sort(A): Scilab gsort can be used as an equivalent for Matlb sort giving it the good inputs. If A is a vector, call gsort(A,"g","i"). If A is a matrix then call gsort(A,"r","i"). Note that gsort does not work with multidimensional arrays... ▹ B = sort(A,dim): If in Matlab, dim is 1 (respectively 2) then replace it by "r" (respectively "c") in Scilab when calling gsort(A,dim,"i"). Note that gsort does not work with multidimensional arrays... sparse Create sparse matrix sparse
Matlab and Scilab equivalents: ▹ sparse(A) ↔ sparse(A): ▹ sparse(m,n) ↔ sparse([],[],[m,n]): ▹ sparse(i,j,s) ↔ sparse([i,j],s): This equivalence is true considering i, j and s have the same length and that i and j are column vectors. ▹ sparse(i,j,s,m,n) ↔ sparse([i,j],s,[m,n]): This equivalence is true considering i, j and s have the same length and that i and j are column vectors. ▹ sparse(i,j,s,m,n,nzmax): There is no Scilab equivalent for this use of Matlab sparse. sqrt strcmpi(str1,str2) Square root sqrt
Compare strings convstr(str1)==convstr(str2) ignoring case
Note that strcmpi can be use with not string inputs, in this case Matlab returns 0. Scilab == will in this case return %T if both inputs are equal...
strcmp(str1,str2)
Compare strings
str1==str2
Note that strcmp can be use with not string inputs, in this case Matlab returns 0. Scilab == will in this case return %T if both inputs are equal... strfind Find one string within another strindex
Note that strfind can be use with not string inputs, in this case Matlab returns 1 if inputs are equal and 0 else but strindex can not do such comparison... strrep String search and replace strsubst
Note that Matlab strrep can be use with not string inputs, what Scilab strsubst can not. In this case use mtlb_strrep instead. struct sum Create struct array Sum of array elements struct sum
▹ M=sum(A): Scilab sum(A) returns the sum of all components of A. So, if A is a vector, then Scilab and Matlab work in the same way. If A is a matrix, Scilab sum(A) gives the sum of all elements of A but Matlab returns the sum of each column. Finally, if A is a multidimensional array, Matlab works on the first nonsingleton dimension of A what Scilab does not. So, to be sure to find a Scilab equivalent for Matlab call to sum it is better to precise dimension on which to work. ▹ M=sum(A,dim): In Scilab dim=1 is equivalent to dim=''r'' and dim=2 is equivalent dim=''c''. In Matlab, dim can be greater then the number of dimension of A (in this case, M=A), in Scilab you will get an error message.
A M M M M = = = = = [1,2,3;4,5,6] sum(A) [5,7,9] sum(A,1) [5,7,9] A M M M M = = = = = [1,2,3;4,5,6] sum(A) 21 sum(A,''r'') [5,7,9]
surf
3D surface plot
surf
Scilab surf doesn't accept all the properties of the Matlab surf
svd switch
Singular value decomposition Switch among several cases based on expression
svd select
Matlab tanh tan tic
T
Hyperbolic tangent Tangent Starts a stopwatch timer tanh tan tic()
In Scilab, tic can be called as a command when output value is just displayed. title toc Display a title on a graphic window Read the stopwatch timer title toc()
In Scilab, toc can be called as a command when output value is just displayed. toeplitz Toeplitz matrix toeplitz
toeplitz can be used with empty matrices in Scilab but not in Matlab. ▹ T=toeplitz(c): If c is complex, use mtlb_toeplitz in Scilab to have the same result than Matlab.Else if c is not a scalar or a vector, use mtlb_toeplitz in Scilab to have the same result than Matlab. ▹ T=toeplitz(c,r): If c and r are not scalars or vectors or if c(1,1)<>r(1,1), use: mtlb_toeplitz in Scilab to have the same result than Matlab. tril Lower triangular part of a matrix tril
In L=tril(X) and L=tril(X,k), Scilab function gives different results from Matlab one if X is a String matrix. In this case use mtlb_tril instead.
Note that k can be complex in Matlab, in this case, only real part of k is taken in account, Scilab gives an error message for a such use. triu Upper triangular part of a matrix triu
In U=triu(X) and U=triu(X,k), Scilab function gives different results from Matlab one if X is a String matrix. In this case use mtlb_triu instead. Note that k can be complex in Matlab, in this case, only real part of k is taken in account, Scilab gives an error message for a such use. true True array No equivalent
To get the same result in Scilab, use: ones(...)==1. See ones. type List file No equivalent
Scilab mtlb_type is a partial emulation of Matlab type function. Scilab type function does not match with Matlab type !
Matlab uigetdir uint16
U
Standard dialog box for selecting a directory Convert to 16bit unsigned integer tk_getdir uint16
For infinite values, Scilab and Matlab uint16 return different values.
A = uint16(inf) A = 65535 A = uint16(%inf) A = 0
uint32
Convert to 32bit unsigned integer
uint32
For infinite values, Scilab and Matlab uint32 return different values.
A = uint32(inf) A = 4294967295 A = uint32(%inf) A = 0
uint8
Convert to 8bit unsigned integer
uint8
For infinite values, Scilab and Matlab uint8 return different values.
A = uint8(inf) A = 255 A = uint8(%inf) A = 0
unix
Execute a UNIX command and return result
unix_g
Output values order is inversed in Scilab and in Matlab. In Scilab use disp to emulate Matlab echo option.
[status,result] = unix(...) [result,status] = unix_g(...)
upper(str)
Convert string to upper case
convstr(str,''u'')
If A is not a character string matrix, Scilab equivalent for B=upper(A) is B=A, else equivalent is B=convstr(A,''u'').
Matlab varargin
V
Pass variable numbers of arguments varargin
In Matlab varargin is a cell and in Scilab it is a list. varargout Return variable numbers of arguments varargout
In Matlab varargout is a cell and in Scilab it is a list. vertcat Vertical concatenation No equivalent
Scilab equivalent for Matlab vertcat(A1,A2,...,An) is [A1;A2;...;An].
Matlab
W
No equivalent
waitforbuttonpress Wait for key or mouse button press
There is no equivalent function for Matlab w=waitforbuttonpress in Scilab however it can be replaced by: [%v0,%v1,%v2,%v3,%v4] = xclick();w = bool2s(%v0>64); warning Display warning messages warning
Scilab warning function can only take one character string as input but Matlab function can take more than one character string as input and also numerical values... while whos Repeat statements an indefinite number of times List variables in the workspace while whos
Scilab whos is an equivalent for Matlab whos just when called as follows: whos or whos("global") who List variables in the workspace who
Scilab who is an equivalent for Matlab who just when called as follows: who or who("global") winqueryreg Get item from Microsoft Windows registry winqueryreg
Scilab function returns a matrix of strings or a int32 value but Matlab function returns a Cell of strings or a int32 value.
Matlab xlabel
X
Display a string along the x axis xlabel
Matlab ylabel
Y
Display a string along the y axis ylabel
Matlab zeros
Z
Create an array of all zeros zeros
▹ B=zeros(A): If A is a scalar, then Matlab returns a A*A matrix of zeros but in Scilab you get a 1, use zeros(A,A) to get the same matrix B. If A is a row vector, Scilab and Matlab give the same B. Finally, if A is a matrix, in Scilab, B will be a matrix having the same size as A whereas in Matlab, you get an error message.Note that in Matlab, A can contain complex values (in these cases, only real part of A is taken in account), what Scilab function do not tolerate.
B B B B B B = = = = = = zeros(2) [0,;0,0] zeros(2,2) [0,0;0,0] zeros([3,3]) [0,0,0;0,0,0;0,0,0] B B B B B B = = = = = = zeros(2) 0 zeros(2,2) [0,0;0,0] zeros([3,3]) [0,0]
zlabel
Display a string along the z axis
zlabel
Matlab :
Operators
Colon :
▹ Using colon with empty matrices: In Matlab if almost one operand is an empty matrix, then result is an empty matrix what gives an error message in Scilab. ▹ Using colon with NaNs and Infs: In Matlab if almost one operand is an empty matrix, then result is a NaN what make Scilab returning an error. + Plus +
▹ Character strings addition: In Scilab, string addition is the same as string concatenation, what is done in Matlab by strcat function. In Matlab, string addition is the equivalent of the addition of corresponding ASCII codes.
▹ Empty matrix and addition: In Matlab, addition can only be made if the operands have the same size unless one is a scalar. For exemple, empty matrices can only be added to another empty matrix or a scalar. Note that when you add a scalar and an empty matrix, Matlab result is always an empty matrix while in Scilab, result is equal to the scalar. ▹ Unary plus: In Matlab, unary plus exists, but in Scilab it is automatically deleted when compiling so we can consider that Scilab unary plus does not exist.
str str str str A = A = = 'str1'+'str2' = [230,232,228,99] = strcat('str1','str2') = 'str1str2' 1 + [] [] str = 'str1'+'str2' str = 'str1str2' str = strcat(['str1','str2']) str = 'str1str2' A = 1 + [] A = 1

Minus

▹ Empty matrix and substraction: In Matlab, substraction can only be made if the operands have the same size unless one is a scalar. For exemple, empty matrices can only be substracted to another empty matrix or a scalar. Note that when you substract an empty matrix to a scalar and inversely, Matlab result is always an empty matrix while in Scilab, result is equal to the scalar.
A = 1  [] A = [] A = 1  [] A = 1
* / \
Mutiplication Right division Left division
* / \
Note that Matlab left division gives strange results when one operand is a character string matrix and not the other one... == .* Equal to Elementwise mutiplication == .*
WARNING: Expressions like X.*.23 are interpreted in Matlab as X
elementwisely multiplied by 0.23 while Scilab computes the Kronecker product of X and 23, to have the same result, insert a blank between * and .23 ./ Elementwise right division ./
WARNING: Expressions like X./.23 are interpreted in Matlab as the elementwise right division of X by 0.23 while Scilab computes the Kronecker right division of X and 23, to have the same result, insert a blank between / and .23 .\ Elementwise left division .\
WARNING: Expressions like X.\.23 are interpreted in Matlab as the elementwise division of 0.23 by X while Scilab computes the Kronecker left division of X and 23, to have the same result, inser a blank between \ and .23 .' Elementwise transpose .'
▹ Character string elementwise transpose: In Scilab, the result of a character string elementwise transpose is the string itself; but in Matlab, elementwise transpose of a character string gives a column vector of characters. To have the same result in Scilab, use: mtlb_0.
s = ('str1')' s = ['s';'t';'r';'1'] s s s s = = = = ('str1')' 'str1' mtlb_0('str1') ['s';'t';'r';'1']
.^
Elementwise exponent
.^
Note that Matlab seems to have a bug when exposant is a character... WARNING: Expressions like X.^.23 are interpreted in Matlab as X to the power of 0.23 while Scilab executes X elementwisely powered to 23, to have the same result, inser a blank between ^ and .23 ' Transpose '
▹ Character string transpose: In Scilab, the result of a character string transpose is the string itself; but in Matlab, transpose of a character string gives a column vector of
characters. To have the same result in Scilab, use: mtlb_t.
s = ('str1')' s = ['s';'t';'r';'1'] s s s s = = = = ('str1')' 'str1' mtlb_t('str1') ['s';'t';'r';'1']
&
Logical AND
&
Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal for string matrices, convert it to ascii code matrices using m2scistr to have the same result. Scilab function has a bug!  Logical OR 
Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal for string matrices, convert it to ASCII code matrices using m2scistr to have the same result. Scilab function has a bug! > Greater than >
When both operands are empty matrices, Matlab result is an empty matrix while in Scilab you get an error. In Scilab this operator does not work with complex values while in Matlab it considers Real part of them for comparison. >= Greater or equal to >=
When both operands are empty matrices, Matlab result is an empty matrix while in Scilab you get an error. In Scilab this operator does not work with complex values while in Matlab it considers Real part of them for comparison. < Smaller than <
When both operands are empty matrices, Matlab result is an empty matrix while in Scilab you get an error. In Scilab this operator does not work with complex values while in Matlab it considers Real part of them for comparison. <= Smaller or equal to <=
When both operands are empty matrices, Matlab result is an empty matrix while in Scilab you get an error. In Scilab this operator does not work with complex values while in Matlab it considers Real part of them for comparison. ^ Exponent ^
Note that Matlab seems to have a bug for X^(Y) when X is a character and that in Scilab operations such as X^(Y) with X a scalar and Y a matrix is equivalent to X.^(Y) (Will change in next Scilab versions...). ~ Negation ~
Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal for string matrices, convert it to ascii code matrices using m2scistr to have the same result. ~= Not equal to ~=
Matlab ans end (index) eps
Variables
The most recent answer Last index Floatingpoint relative accuracy ans $ %eps
Only Matlab allows to change the value of this variable and clear eps allows to set the value of eps to its initial value. i Imaginary unit %i
Only Matlab allows to change the value of this variable. j Imaginary unit %i
Only Matlab allows to change the value of this variable.
pi
Ratio of a circle's circumference to its diameter
%pi
Scilab manual
Table of Contents I. Scilab abort — interrupt evaluation. add_demo — Add an entry in the demos list ans — answer argn — number of arguments in a function call backslash (\) — left matrix division. banner — show scilab banner (Windows) boolean — Scilab Objects, boolean variables and operators &  ~ brackets — ([,]) left and right brackets break — keyword to interrupt loops case — keyword used in select chdir — changes Scilab current directory — changes Scilab current directory clear — kills variables clearfun — remove primitive. clearglobal — kills global variables colon — (:) colon operator comma — (,) column, instruction, argument separator comments — comments comp — scilab function compilation comparison — comparison, relational operators continue — keyword to pass control to the next iteration of a loop debug — debugging level delbpt — delete breakpoints dispbpt — display breakpoints do — language keyword for loops dot — (.) symbol edit — function editing else — keyword in ifthenelse elseif — keyword in ifthenelse empty — ([]) empty matrix end — end keyword equal — (=) assignment , comparison, equal sign errcatch — error trapping errclear — error clearing error — error messages
error_table — table of error messages evstr — evaluation of expressions exec — script file execution exists — checks variable existence exit — Ends the current Scilab session external — Scilab Object, external function or routine extraction — matrix and list entry extraction for — language keyword for loops format — number printing and display format funcprot — switch scilab functions protection mode funptr — coding of primitives ( wizard stuff ) getdebuginfo — get informations about Scilab to debug getmd5 — get md5 checksum getmemory — returns free and total system memory getmodules — returns list of modules installed in Scilab getos — return Operating System name and version getscilabmode — returns scilab mode getshell — returns current command interpreter. getvariablesonstack — get variable names on stack of scilab getversion — get scilab and modules version information global — Define global variable gstacksize — set/get scilab global stack size hat — (^) exponentiation ieee — set floating point exception mode if — conditional execution insertion — partial variable assignation or modification — partial variable assignation intppty — set interface argument passing properties inv_coeff — build a polynomial matrix from its coefficients iserror — error occurence test isglobal — check if a variable is global lasterror — get last recorded error message left — ([) left bracket less — (<) lower than comparison — (<) greater than comparison librarieslist — get scilab libraries libraryinfo — get macros and path of a scilab library macr2lst — function to list conversion macr2tree — function to tree conversion matrices — Scilab object, matrices in Scilab matrix — reshape a vector or a matrix to a different size matrix mode — select a mode in exec file mtlb_mode — switch Matlab like operations names — scilab names syntax newfun — add a name in the table of functions null — delete an element in a list parents — ( ) left and right parenthesis
pause — pause mode, invoke keyboard percent — (%) special character perl — Call Perl script using appropriate operating system executable plus — (+) addition operator poly — polynomial definition power — power operation (^,.^) predef — variable protection pwd — print Scilab current directory — get Scilab current directory quit — Terminates Scilab or decreases the pause level quote — (') transpose operator, string delimiter rational — Scilab objects, rational in Scilab readgateway — get primitives list of a module resume — return or resume execution and copy some local variables return — return or resume execution and copy some local variables sciargs — scilab command line arguments scilab — Major unix script to execute Scilab and miscellaneous tools select — select keyword semicolon (;) — ending expression and row separator setbpt — set breakpoints sethomedirectory — Set Scilab home directory slash — (/) right division and feed back stacksize — set scilab stack size star — (*) multiplication operator startup — startup file symbols — scilab operator names testmatrix — generate some particular matrices then — keyword in ifthenelse tilda — (~) logical not try — beginning of try block in trycatch control instruction — beginning of catch block in trycatch control instruction type — Returns the type of a variable typename — associates a name to variable type user — interfacing a Fortran or C routine varn — symbolic variable of a polynomial ver — Version information for Scilab warning — warning messages what — list the Scilab primitives where — get current instruction calling tree whereami — display current instruction calling tree whereis — name of library containing a function while — while keyword who — listing of variables who_user — listing of user's variables whos — listing of variables in long form with_atlas — Checks if Scilab has been built with Atlas Library with_gtk — Checks if Scilab has been built with the "GIMP Toolkit" library
with_javasci — Checks if Scilab has been built with the java interface with_macros_source — Checks if macros source are installed with_module — Checks if a Scilab module is installed with_pvm — Checks if Scilab has been built with the "Parallel Virtual Machine" interface with_texmacs — Checks if Scilab has been called by texmacs with_tk — Checks if Scilab has been built with TCL/TK II. ARnoldi PACKage dnaupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute approximations to a few eigenpairs of a real linear operator dneupd — ARnoldi Package (not documented 5) dsaupd — Interface for the Implicitly Restarted Arnoldi Iteration, to compute approximations to a few eigenpairs of a real and symmetric linear operator dseupd — ARnoldi Package (not documented 4) znaupd — ARnoldi Package (not documented 3) zneupd — ARnoldi Package (not documented 6) III. Boolean bool2s — convert boolean matrix to a zero one matrix. find — find indices of boolean vector or matrix true elements IV. CACSD abcd — statespace matrices abinv — AB invariant subspace arhnk — Hankel norm approximant arl2 — SISO model realization by L2 transfer approximation arma — Scilab arma library arma2p — extract polynomial matrices from ar representation armac — Scilab description of an armax process armax — armax identification armax1 — armax identification arsimul — armax simulation augment — augmented plant balreal — balanced realization bilin — general bilinear transform black — Black's diagram (Nichols chart) bode — Bode plot bstap — hankel approximant cainv — Dual of abinv calfrq — frequency response discretization canon — canonical controllable form ccontrg — central Hinfinity controller chart — Nichols chart cls2dls — bilinear transform colinout — innerouter factorization colregul — removing poles and zeros at infinity cont_frm — transfer to controllable statespace cont_mat — controllability matrix
contr — controllability, controllable subspace, staircase contrss — controllable part copfac — right coprime factorization csim — simulation (time response) of linear system ctr_gram — controllability gramian dbphi — frequency response to phase and magnitude representation dcf — double coprime factorization ddp — disturbance decoupling des2ss — descriptor to statespace des2tf — descriptor to transfer function conversion dhinf — H_infinity design of discretetime systems dhnorm — discrete Hinfinity norm dscr — discretization of linear system dsimul — state space discrete time simulation dt_ility — detectability test dtsi — stable antistable decomposition equil — balancing of pair of symmetric matrices equil1 — balancing (nonnegative) pair of matrices evans — Evans root locus feedback — feedback operation findABCD — discretetime system subspace identification findAC — discretetime system subspace identification findBD — initial state and system matrices B and D of a discretetime system findBDK — Kalman gain and B D system matrices of a discretetime system findR — Preprocessor for estimating the matrices of a linear timeinvariant dynamical system findx0BD — Estimates state and B and D matrices of a discretetime linear system flts — time response (discrete time, sampled system) fourplan — augmented plant to four plants frep2tf — transfer function realization from frequency response freq — frequency response freson — peak frequencies fspecg — stable factorization fstabst — Youla's parametrization g_margin — gain margin and associated crossover frequency gainplot — magnitude plot gamitg — Hinfinity gamma iterations gcare — control Riccati equation gfare — filter Riccati equation gfrancis — Francis equations for tracking gtild — tilde operation h2norm — H2 norm h_cl — closed loop matrix h_inf — Hinfinity (central) controller h_inf_st — static H_infinity problem
h_norm — Hinfinity norm hankelsv — Hankel singular values hinf — H_infinity design of continuoustime systems imrep2ss — statespace realization of an impulse response inistate — Estimates the initial state of a discretetime system invsyslin — system inversion kpure — continuous SISO system limit feedback gain krac2 — continuous SISO system limit feedback gain lcf — normalized coprime factorization leqr — Hinfinity LQ gain (full state) lft — linear fractional transformation lin — linearization linf — infinity norm linfn — infinity norm linmeq — Sylvester and Lyapunov equations solver lqe — linear quadratic estimator (Kalman Filter) lqg — LQG compensator lqg2stan — LQG to standard problem lqg_ltr — LQG with loop transform recovery lqr — LQ compensator (full state) ltitr — discrete time response (state space) m_circle — plots the complex plane isogain contours of y/(1+y) macglov — Mac Farlane Glover problem markp2ss — Markov parameters to statespace minreal — minimal balanced realization minss — minimal realization mucomp — mu (structured singular value) calculation narsimul — armax simulation ( using rtitr) nehari — Nehari approximant noisegen — noise generation nyquist — nyquist plot obs_gram — observability gramian obscont — observer based controller observer — observer design obsv_mat — observability matrix obsvss — observable part p_margin — phase margin and associated crossover frequency parrot — Parrot's problem pfss — partial fraction decomposition phasemag — phase and magnitude computation ppol — pole placement prbs_a — pseudo random binary sequences generation projsl — linear system projection reglin — Linear regression repfreq — frequency response ric_desc — Riccati equation
ricc — Riccati equation riccati — Riccati equation routh_t — Routh's table rowinout — innerouter factorization rowregul — removing poles and zeros at infinity rtitr — discrete time response (transfer matrix) sensi — sensitivity functions sgrid — splane grid lines. show_margins — display gain and phase margin and associated crossover frequencies sident — discretetime statespace realization and Kalman gain sm2des — system matrix to descriptor sm2ss — system matrix to statespace sorder — computing the order of a discretetime system specfact — spectral factor ss2des — (polynomial) statespace to descriptor form ss2ss — statespace to statespace conversion, feedback, injection ss2tf — conversion from statespace to transfer function st_ility — stabilizability test stabil — stabilization svplot — singularvalue sigmaplot sysfact — system factorization syssize — size of statespace system tf2des — transfer function to descriptor tf2ss — transfer to statespace time_id — SISO least square identification trzeros — transmission zeros and normal rank ui_observer — unknown input observer unobs — unobservable subspace zeropen — zero pencil zgrid — zgrid plot V. Compatibility Functions asciimat — string matrix ascii conversions firstnonsingleton — Finds first dimension which is not 1 makecell — Creates a cell array. mstr2sci — character string matrix to character matrix conversion mtlb_0 — Matlab nonconjugate transposition emulation function mtlb_a — Matlab addition emulation function mtlb_all — Matlab all emulation function mtlb_any — Matlab any emulation function mtlb_axis — Matlab axis emulation function mtlb_beta — Matlab beta emulation function mtlb_box — Matlab box emulation function mtlb_close — Matlab close emulation function mtlb_colordef — Matlab colordef emulation function mtlb_conv — Matlab conv emulation function
mtlb_cumprod — Matlab cumprod emulation function mtlb_cumsum — Matlab cumsum emulation function mtlb_dec2hex — Matlab dec2hex emulation function mtlb_delete — Matlab delete emulation function mtlb_diag — Matlab diag emulation function mtlb_diff — Matlab diff emulation function mtlb_dir — Matlab dir emulation function mtlb_double — Matlab double emulation function mtlb_e — Matlab extraction emulation function mtlb_echo — Matlab echo emulation function mtlb_eig — Matlab eig emulation function mtlb_eval — Matlab eval emulation function mtlb_exist — Matlab exist emulation function mtlb_eye — Matlab eye emulation function mtlb_false — Matlab false emulation function mtlb_fft — Matlab fft emulation function mtlb_fftshift — Matlab fftshift emulation function mtlb_find — Matlab find emulation function mtlb_findstr — Matlab findstr emulation function mtlb_fliplr — Matlab fliplr emulation function mtlb_fopen — Matlab fopen emulation function mtlb_format — Matlab format emulation function mtlb_fprintf — Matlab fprintf emulation function mtlb_fread — Matlab fread emulation function mtlb_fscanf — Matlab fscanf emulation function mtlb_full — Matlab full emulation function mtlb_fwrite — Matlab fwrite emulation function mtlb_grid — Matlab grid emulation function mtlb_hold — Matlab hold emulation function mtlb_i — Matlab insertion emulation function mtlb_ifft — Matlab ifft emulation function mtlb_imp — Matlab colon emulation function mtlb_int16 — Matlab int16 emulation function mtlb_int32 — Matlab int32 emulation function mtlb_int8 — Matlab int8 emulation function mtlb_is — Matlab string insertion emulation function mtlb_isa — Matlab isa emulation function mtlb_isfield — Matlab isfield emulation function mtlb_isletter — Matlab isletter emulation function mtlb_isspace — Matlab isspace emulation function mtlb_l — Matlab left division emulation function mtlb_legendre — Matlab legendre emulation function mtlb_linspace — Matlab linspace emulation function mtlb_load — Matlab load emulation function mtlb_logic — Matlab logical operators emulation function mtlb_logical — Matlab logical emulation function
mtlb_lower — Matlab lower emulation function mtlb_max — Matlab max emulation function mtlb_min — Matlab min emulation function mtlb_more — Matlab more emulation function mtlb_num2str — Matlab num2str emulation function mtlb_ones — Matlab ones emulation function mtlb_plot — Matlab plot emulation function mtlb_prod — Matlab prod emulation function mtlb_rand — Matlab rand emulation function mtlb_randn — Matlab randn emulation function mtlb_rcond — Matlab rcond emulation function mtlb_realmax — Matlab realmax emulation function mtlb_realmin — Matlab realmin emulation function mtlb_repmat — Matlab repmat emulation function mtlb_s — Matlab substraction emulation function mtlb_save — save variables on file with matlab4 format. mtlb_setstr — Matlab setstr emulation function mtlb_size — Matlab size emulation function mtlb_sort — Matlab sort emulation function mtlb_strcmp — Matlab strcmp emulation function mtlb_strcmpi — Matlab strcmpi emulation function mtlb_strfind — Matlab strfind emulation function mtlb_strrep — Matlab strrep emulation function mtlb_sum — Matlab sum emulation function mtlb_t — Matlab transposition emulation function mtlb_toeplitz — Matlab toeplitz emulation function mtlb_tril — Matlab tril emulation function mtlb_triu — Matlab triu emulation function mtlb_true — Matlab true emulation function mtlb_uint16 — Matlab uint16 emulation function mtlb_uint32 — Matlab uint32 emulation function mtlb_uint8 — Matlab uint8 emulation function mtlb_upper — Matlab upper emulation function mtlb_zeros — Matlab zeros emulation function VI. Completion completion — returns words that start with the text you pass as parameter. VII. Data Structures cell — Create a cell array of empty matrices. definedfields — return index of list's defined fields getfield — list field extraction hypermat — initialize an N dimensional matrices hypermatrices — Scilab object, N dimensional matrices in Scilab iscell — Check if a variable is a cell array iscellstr — Check if a variable is a cell array of strings isstruct — Check if a variable is a structure array list — Scilab object and list function definition
lsslist — Scilab linear state space function definition lstcat — list concatenation mlist — Scilab object, matrix oriented typed list definition. rlist — Scilab rational fraction function definition setfield — list field insertion struct — create a struct tlist — Scilab object and typed list definition. VIII. Development tools tbx_build_gateway — Build a gateway (toolbox compilation process) tbx_build_gateway_loader — Generate a loader_gateway.sce script (toolbox compilation process) tbx_build_help — Generate help files (toolbox compilation process) tbx_build_help_loader — Generate a addchapter.sce script (toolbox compilation process) tbx_build_loader — Generate a loader.sce script (toolbox compilation process) tbx_build_macros — Compile macros (toolbox compilation process) tbx_build_src — Build sources (toolbox compilation process) tbx_builder_gateway — Run builder_gateway.sce script if it exists (toolbox compilation process) tbx_builder_gateway_lang — Run builder_gateway_(language).sce script if it exists (toolbox compilation process) tbx_builder_help — Run builder_help.sce script if it exists (toolbox compilation process) tbx_builder_help_lang — Run build_help.sce script if it exists (toolbox compilation process) tbx_builder_macros — Run buildmacros.sce script if it exists (toolbox compilation process) tbx_builder_src — Run builder_src.sce script if it exists (toolbox compilation process) tbx_builder_src_lang — Run builder_(language).sce script if it exists (toolbox compilation process) test_run — Launch tests IX. Differential Equations dasrt — DAE solver with zero crossing dassl — differential algebraic equation feval — multiple evaluation impl — differential algebraic equation int2d — definite 2D integral by quadrature and cubature method int3d — definite 3D integral by quadrature and cubature method intg — definite integral ode — ordinary differential equation solver ode_discrete — ordinary differential equation solver, discrete time simulation ode_optional_output — ode solvers optional outputs description ode_root — ordinary differential equation solver with root finding odedc — discrete/continuous ode solver odeoptions — set options for ode solvers
X. Dynamic/incremental Link G_make — call make or nmake VCtoLCCLib — converts Ms VC libs to LCCWin32 libs. addinter — new functions interface incremental/dynamic link at run time c_link — check incremental/dynamic link call — Fortran or C user routines call chooselcccompiler — choose LCCWin32 as the default C Compiler. configure_lcc — set environments variables for LCCWin32 C Compiler. configure_ifort — set environments variables for Intel Fortran Compiler (Windows). configure_msvc — set environments variables for Microsoft C Compiler. dllinfo — provides information about the format and symbols provided in executable and DLL files (Windows). findlcccompiler — detects LCCWin32 C Compiler findmsifortcompiler — detects Intel fortran Compiler findmsvccompiler — detects Microsoft C Compiler fort — Fortran or C user routines call getdynlibext — get the extension of dynamic libraries on your operating system. haveacompiler — detect if you have a C compiler. ilib_build — utility for shared library management ilib_compile — ilib_build utility: executes the makefile produced by ilib_gen_Make ilib_for_link — utility for shared library management with link ilib_gen_Make — utility for ilib_build: produces a makefile for building shared libraries ilib_gen_gateway — utility for ilib_build, generates a gateway file. ilib_gen_loader — utility for ilib_build: generates a loader file ilib_mex_build — utility for mex library management link — dynamic linker ulink — unlink a dynamically linked shared object with_lcc — returns if LCCWin32 is the default C Compiler. XI. Elementary Functions abs — absolute value, magnitude acos — element wise cosine inverse acosh — hyperbolic cosine inverse acoshm — matrix hyperbolic inverse cosine acosm — matrix wise cosine inverse adj2sp — converts adjacency form into sparse matrix. amell — Jacobi's am function and — (&) logical and asin — sine inverse asinh — hyperbolic sine inverse asinhm — matrix hyperbolic inverse sine asinm — matrix wise sine inverse atan — 2quadrant and 4quadrant inverse tangent atanh — hyperbolic tangent inverse
atanhm — matrix hyperbolic tangent inverse atanm — square matrix tangent inverse base2dec — conversion from base b representation to integers bin2dec — integer corresponding to a binary form binomial — binomial distribution probabilities bitand — AND applied to binary representation of inputs arguments bitor — OR applied to binary representation of inputs arguments bloc2exp — blockdiagram to symbolic expression bloc2ss — blockdiagram to statespace conversion cat — concatenate several arrays ceil — rounding up cell2mat — convert a cell array into a matrix cellstr — convert strings vector (or strings matrix) into a cell of strings char — char function conj — conjugate cos — cosine function cosh — hyperbolic cosine coshm — matrix hyperbolic cosine cosm — matrix cosine function cotg — cotangent coth — hyperbolic cotangent cothm — matrix hyperbolic cotangent cumprod — cumulative product cumsum — cumulative sum dec2bin — binary representation dec2hex — hexadecimal representation of integers dec2oct — octal representation of integers delip — elliptic integral diag — diagonal including or extracting diff — Difference and discrete derivative double — conversion from integer to double precision representation dsearch — binary search (aka dichotomous search in french) eval — evaluation of a matrix of strings exp — elementwise exponential eye — identity matrix factor — factor function fix — rounding towards zero flipdim — flip x components along a given dimension floor — rounding down frexp — dissect floatingpoint numbers into base 2 exponent and mantissa gsort — decreasing order sorting hex2dec — conversion from hexadecimal representation to integers imag — imaginary part imult — multiplication by i the imaginary unitary ind2sub — linear index to matrix subscript values int — integer part
int8 — conversion to one byte integer representation — conversion to 2 bytes integer representation — conversion to 4 bytes integer representation — conversion to one byte unsigned integer representation — conversion to 2 bytes unsigned integer representation — conversion to 4 bytes unsigned integer representation intc — Cauchy integral integrate — integration of an expression by quadrature interp1 — one_dimension interpolation function interp2d — bicubic spline (2d) evaluation function intersect — returns the vector of common values of two vectors intl — Cauchy integral inttrap — integration of experimental data by trapezoidal interpolation isdef — checks variable existence isempty — check if a variable is an empty matrix or an empty list isequal — objects comparison isequalbitwise — bitwise comparison of variables isinf — check for infinite entries isnan — check for "Not a Number" entries isreal — check if a variable as real or complex entries kron — Kronecker product (.*.) lex_sort — lexicographic matrix rows sorting linspace — linearly spaced vector log — natural logarithm log10 — logarithm log1p — computes with accuracy the natural logarithm of its argument added by one log2 — base 2 logarithm logm — square matrix logarithm logspace — logarithmically spaced vector lstsize — list, tlist, mlist numbers of entries max — maximum maxi — maximum meshgrid — create matrices or 3D arrays min — minimum mini — minimum minus — () substraction operator, sign changes modulo — symetric arithmetic remainder modulo m — positive arithmetic remainder modulo m ndgrid — arrays for multidimensional function evaluation on grid ndims — number of dimensions of an array nearfloat — get previous or next floatingpoint number nextpow2 — next higher power of 2. norm — matrix norms not — (~) logical not number_properties — determine floatingpoint parameters oct2dec — conversion from octal representation to integers
ones — matrix made of ones or — () logical or pen2ea — pencil to E,A conversion perms — all permutations of vector components permute — permute the dimensions of an array pertrans — pertranspose primes — primes function prod — product rand — random number generator rat — Floating point rational approximation real — real part resize_matrix — create a new matrix with a different size round — rounding setdiff — returns components of a vector which do not belong to another one sign — sign function signm — matrix sign function sin — sine function sinc — sinc function sinh — hyperbolic sine sinhm — matrix hyperbolic sine sinm — matrix sine function size — size of objects solve — symbolic linear system solver sort — order sorting sp2adj — converts sparse matrix into adjacency form speye — sparse identity matrix splin2d — bicubic spline gridded 2d interpolation spones — sparse matrix sprand — sparse random matrix spzeros — sparse zero matrix sqrt — square root sqrtm — matrix square root squarewave — generates a square wave with period 2*%pi ssprint — pretty print for linear system ssrand — random system generator sub2ind — matrix subscript values to linear index sum — sum (row sum, column sum) of vector/matrix entries sysconv — system conversion sysdiag — block diagonal system connection syslin — linear system definition tan — tangent tanh — hyperbolic tangent tanhm — matrix hyperbolic tangent tanm — matrix tangent toeplitz — toeplitz matrix trfmod — poles and zeros display
trianfml — symbolic triangularization tril — lower triangular part of matrix trisolve — symbolic linear system solver triu — upper triangle typeof — object type union — extract union components of a vector unique — extract unique components of a vector or matrices vectorfind — finds in a matrix rows or columns matching a vector zeros — matrix made of zeros XII. FFTW fftw — fast fourier transform that use fftw library fftw_flags — set computation method of fast fourier transform of the fftw function fftw_forget_wisdom — Reset fftw wisdom get_fftw_wisdom — return fftw wisdom set_fftw_wisdom — set fftw wisdom XIII. Files : Input/Output functions basename — strip directory and suffix from filenames copyfile — Copy file createdir — Make new directory deletefile — delete a file dir — get file list dirname — get directory from filenames dispfiles — display opened files properties fileext — returns extension for a file path fileparts — returns the path, filename and extension for a file path filesep — returns directory separator for current platform findfiles — Finding all files with a given filespec fprintf — Emulator of C language fprintf function fprintfMat — print a matrix in a file. fscanf — Converts formatted input read on a file fscanfMat — Reads a Matrix from a text file. fullfile — Build a full filename from parts fullpath — Creates an full path name for the specified relative path name. getdrives — Get the drive letters of all mounted filesystems on the computer. getlongpathname — get long path name (Only for Windows) getshortpathname — get short path name (Only for Windows) isdir — checks if argument is a directory path listfiles — list files listvarinfile — list the contents of a saved data file ls — show files maxfiles — sets the limit for the number of files a scilab is allowed to have open simultaneously. mclearerr — reset binary file access errors mclose — close an opened file mdelete — Delete file(s)
meof — check if end of file has been reached merror — tests the file access errors indicator mscanf — interface to the C scanf function — interface to the C fscanf function — interface to the C sscanf function mget — reads byte or word in a given binary format and convert to double — reads byte or word in a given binary format return an int type mgetl — read lines from an ascii file mgetstr — read a character string mkdir — Make new directory mopen — open a file mfprintf — converts, formats, and writes data to a file — converts, formats, and writes data to the main scilab window — converts, formats, and writes data in a string mput — writes byte or word in a given binary format mputl — writes strings in an ascii file mputstr — write a character string in a file mseek — set current position in binary file. mtell — binary file management pathconvert — pathnames convertion between posix and windows. pathsep — returns path separator for current platform removedir — Remove a directory rmdir — Remove a directory save_format — format of files produced by "save" scanf — Converts formatted input on standard input scanf_conversion — scanf, sscanf, fscanf conversion specifications XIV. Functions add_profiling — Adds profiling instructions to a function. bytecode — given a function returns the "bytecode" of a function in a Scilab array and conversely. bytecodewalk — walk in function bytecode applying transformation. fun2string — generates ascii definition of a scilab function function — opens a function definition — closes a function definition functions — Scilab procedures and Scilab objects genlib — build library from functions in given directory get_function_path — get source file path of a library function getd — getting all functions defined in a directory head_comments — display scilab function header comments library — library datatype description listfunctions — properties of all functions in the workspace macro — Scilab procedure and Scilab object macrovar — variables of function plotprofile — extracts and displays execution profiles of a Scilab function profile — extract execution profiles of a Scilab function recompilefunction — recompiles a scilab function, changing its type remove_profiling — Removes profiling instructions toout of a function. reset_profiling — Resets profiling counters of a function.
showprofile — extracts and displays execution profiles of a Scilab function varargin — variable numbers of arguments in an input argument list varargout — variable numbers of arguments in an output argument list XV. GUI about — show "about scilab" dialog box addmenu — interactive button or menu definition buttondialog — Create a simple button dialog clipboard — Copy and paste strings to and from the system clipboard. close — close a figure delmenu — interactive button or menu deletion exportUI — Call the file export graphical interface figure — create a figure findobj — find an object with specified property gcbo — Handle of the object whose callback is executing. getcallbackobject — Return the handle of the object whose callback is executing. getinstalledlookandfeels — returns a string matrix with all Look and Feels. getlookandfeel — gets the current default look and feel. getvalue — xwindow dialog for data acquisition messagebox — Open a message box. printfigure — Opens a printing dialog and prints a figure. printsetupbox — Display print dialog box. progressionbar — Draw a progression bar root_properties — description of the root object properties. setlookandfeel — sets the current default look and feel. setmenu — interactive button or menu activation toolbar — show or hide a toolbar toprint — Send text or figure to the printer. uicontrol — create a Graphic User Interface object uigetcolor — Opens a dialog for selecting a color. uigetdir — dialog for selecting a directory uigetfont — Opens a dialog for selecting a font. uimenu — Create a menu or a submenu in a figure unsetmenu — interactive button or menu or submenu deactivation waitbar — Draw a waitbar x_choices — interactive Xwindow choices through toggle buttons x_choose — interactive window choice (modal dialog) x_choose_modeless — interactive window choice (not modal dialog) x_dialog — Xwindow dialog x_matrix — Xwindow editing of matrix x_mdialog — Xwindow dialog x_message — X window message x_message_modeless — X window modeless message xgetfile — dialog to get a file path XVI. Genetic Algorithms coding_ga_binary — A function which performs conversion between binary and continuous representation
coding_ga_identity — A "nooperation" conversion function crossover_ga_binary — A crossover function for binary code crossover_ga_default — A crossover function for continuous variable functions init_ga_default — A function a initialize a population mutation_ga_binary — A function which performs binary mutation mutation_ga_default — A continuous variable mutation function optim_ga — A flexible genetic algorithm optim_moga — add short decription here optim_nsga — A multiobjective Niched Sharing Genetic Algorithm optim_nsga2 — A multiobjective Niched Sharing Genetic Algorithm version 2 pareto_filter — A function which extracts non dominated solution from a set selection_ga_elitist — An 'elitist' selection function selection_ga_random — A function which performs a random selection of individuals XVII. Graphics : exporting and printing driver — select a graphics driver xend — close a graphics session xinit — Initialization of a graphics driver xs2bmp — send graphics to a file in BMP syntax xs2emf — send graphics to a file in EMF syntax (Only for Windows) xs2eps — save graphics to a Postscript file. xs2fig — send graphics to a file in FIG syntax xs2gif — send graphics to a file in GIF syntax xs2jpg — send graphics to a file in JPG syntax xs2pdf — save graphics to a PDF file. xs2png — send graphics to a file in PNG syntax xs2ppm — send graphics to a file in PPM syntax xs2ps — send graphics to a file in PS syntax xs2svg — save graphics to a SVG file. XVIII. Graphics Library GlobalProperty — to customize the objects appearance (curves, surfaces...) in a plot or surf command. Graphics — graphics library overview LineSpec — to quickly customize the lines appearance in a plot Matplot — 2D plot of a matrix using colors Matplot1 — 2D plot of a matrix using colors Matplot_properties — description of the Matplot entities properties Sfgrayplot — smooth 2D plot of a surface defined by a function using colors Sgrayplot — smooth 2D plot of a surface using colors addcolor — add new colors to the current colormap alufunctions — pixel drawing functions arc_properties — description of the Arc entity properties autumncolormap — red through orange to yellow colormap axes_properties — description of the axes entity properties axis_properties — description of the axis entity properties bar — bar histogram
barh — horizontal display of bar histogram barhomogenize — homogenize all the bars included in the current working axes bonecolormap — gray colormap with a light blue tone captions — draw graph captions champ — 2D vector field plot champ1 — 2D vector field plot with colored arrows champ_properties — description of the 2D vector field entity properties clear_pixmap — erase the pixmap buffer clf — clear or reset the current graphic figure (window) to default values color — returns the color id of a color color_list — list of named colors colorbar — draw a colorbar colordef — Set default color values to display different color schemes colormap — using colormaps Compound_properties — description of the Compound entity properties contour — level curves on a 3D surface contour2d — level curves of a surface on a 2D plot contour2di — compute level curves of a surface on a 2D plot contourf — filled level curves of a surface on a 2D plot coolcolormap — cyan to magenta colormap coppercolormap — black to a light copper tone colormap copy — copy a graphics entity. delete — delete a graphic entity and its children. dragrect — Drag rectangle(s) with mouse draw — draw an entity. drawaxis — draw an axis drawlater — makes axes children invisible. drawnow — draw hidden graphics entities. edit_curv — interactive graphic curve editor errbar — add vertical error bars on a 2D plot eval3d — values of a function on a grid eval3dp — compute facets of a 3D parametric surface event handler functions — Prototype of functions which may be used as event handler. fac3d — 3D plot of a surface (obsolete) fchamp — direction field of a 2D first order ODE fcontour — level curves on a 3D surface defined by a function fcontour2d — level curves of a surface defined by a function on a 2D plot fec — pseudocolor plot of a function defined on a triangular mesh fec_properties — description of the fec entities properties fgrayplot — 2D plot of a surface defined by a function using colors figure_properties — description of the graphics figure entity properties fplot2d — 2D plot of a curve defined by a function fplot3d — 3D plot of a surface defined by a function fplot3d1 — 3D gray or color level plot of a surface defined by a function gca — Return handle of current axes.
gce — Get current entity handle. gcf — Return handle of current graphic window. gda — Return handle of default axes. gdf — Return handle of default figure. ged — Scilab Graphic Editor genfac3d — compute facets of a 3D surface geom3d — projection from 3D on 2D after a 3D plot get — Retrieve a property value from a graphics entity or an User Interface object. get_figure_handle — get a figure handle from its id getcolor — opens a dialog to show colors in the current colormap getfont — dialog to select font . Obsolete function. getlinestyle — dialog to select linestyle. Obsolete function. getmark — dialog to select mark (symbol). Obsolete function getsymbol — dialog to select a symbol and its size. Obsolete function glue — glue a set of graphics entities into an Compound. graduate — pretty axis graduations graphics_entities — description of the graphics entities data structures — description of the graphics entities data structures graycolormap — linear gray colormap grayplot — 2D plot of a surface using colors grayplot_properties — description of the grayplot entities properties graypolarplot — Polar 2D plot of a surface using colors havewindow — return scilab window mode hist3d — 3D representation of a histogram histplot — plot a histogram hotcolormap — red to yellow colormap hsv2rgb — Converts HSV colors to RGB hsvcolormap — Huesaturationvalue colormap is_handle_valid — Check wether a set of graphic handles is still valid. isoview — set scales for isometric plot (do not change the size of the window) jetcolormap — blue to red colormap label_properties — description of the Label entity properties legend — draw graph legend legend_properties — description of the Legend entity properties. legends — draw graph legend locate — mouse selection of a set of points mesh — 3D mesh plot milk_drop — milk drop 3D function move — move, translate, a graphic entity and its children. name2rgb — returns the RGB values of a named color newaxes — Creates a new Axes entity nf3d — rectangular facets to plot3d parameters object_editor — description of the graphic object editor capacities — description of the graphic object editor capacities — description of the graphic object editor capacities
oceancolormap — linear blue colormap oldplot — simple plot (old version) param3d — 3D plot of a parametric curve param3d1 — 3D plot of parametric curves param3d_properties — description of the 3D curves entities properties paramfplot2d — animated 2D plot, curve defined by a function pie — draw a pie pinkcolormap — sepia tone colorization on black and white images plot — 2D plot plot2d — 2D plot plot2d1 — 2D plot (logarithmic axes) (obsolete) plot2d2 — 2D plot (step function) plot2d3 — 2D plot (vertical bars) plot2d4 — 2D plot (arrows style) plot2d_old_version — The syntaxes described below are obsolete plot3d — 3D plot of a surface plot3d1 — 3D gray or color level plot of a surface plot3d2 — plot surface defined by rectangular facets plot3d3 — mesh plot surface defined by rectangular facets plot3d_old_version — 3D plot of a surface plotframe — plot a frame with scaling and grids. This function is obsolete. plzr — polezero plot polarplot — Plot polar coordinates polyline_properties — description of the Polyline entity properties rainbowcolormap — red through orange, yellow, green,blue to violet colormap rectangle_properties — description of the Rectangle entity properties relocate_handle — Move handles inside the graphic hierarchy. replot — redraw the current graphics window with new boundaries rgb2name — returns the name of a color rotate — rotation of a set of points rotate_axes — Interactive rotation of an Axes handle. rubberbox — Rubberband box for rectangle selection sca — set the current axes entity scaling — affine transformation of a set of points scf — set the current graphic figure (window) sd2sci — gr_menu structure to scilab instruction convertor sda — Set default axes. sdf — Set default figure. secto3d — 3D surfaces conversion segs_properties — description of the Segments entity properties set — set a property value of a graphic entity object or of a User Interface object. set_posfig_dim — change defaut transformation for exporting in postscript seteventhandler — set an event handler for the current graphic window show_pixmap — send the pixmap buffer to the screen show_window — raises a graphics window springcolormap — magenta to yellow colormap
square — set scales for isometric plot (change the size of the window) stringbox — Compute the bounding rectangle of a text or a label. subplot — divide a graphics window into a matrix of subwindows summercolormap — green to yellow colormap surf — 3D surface plot surface_properties — description of the 3D entities properties swap_handles — Permute two handles in the graphic Hierarchy. text_properties — description of the Text entity properties title — display a title on a graphic window titlepage — add a title in the middle of a graphics window twinkle — is used to have a graphics entity twinkle unglue — unglue a coumpound object and replace it by individual children. unzoom — unzoom graphics whitecolormap — completely white colormap winsid — return the list of graphics windows wintercolormap — blue to green colormap xarc — draw a part of an ellipse xarcs — draw parts of a set of ellipses xarrows — draw a set of arrows xbasc — clear a graphics window and erase the associated recorded graphics xbasimp — send graphics to a Postscript printer or in a file xbasr — redraw a graphics window xchange — transform real to pixel coordinates xclear — clear a graphics window xclick — Wait for a mouse click. xclip — set a clipping zone xdel — delete a graphics window xfarc — fill a part of an ellipse xfarcs — fill parts of a set of ellipses xfpoly — fill a polygon xfpolys — fill a set of polygons xfrect — fill a rectangle xget — get current values of the graphics context. This function is obsolete. xgetech — get the current graphics scale xgetmouse — get the mouse events and current position xgraduate — axis graduation xgrid — add a grid on a 2D plot xinfo — draw an info string in the message subwindow xlfont — load a font in the graphic context or query loaded font xload — load a saved graphics xname — change the name of the current graphics window xnumb — draw numbers xpause — suspend Scilab xpoly — draw a polyline or a polygon xpolys — draw a set of polylines or polygons xrect — draw a rectangle
xrects — draw or fill a set of rectangles xrpoly — draw a regular polygon xsave — save graphics into a file xsegs — draw unconnected segments xselect — raise the current graphics window xset — set values of the graphics context. This function is obsolete. xsetech — set the subwindow of a graphics window for plotting xsetm — dialog to set values of the graphics context. Obsolete function. xstring — draw strings xstringb — draw strings into a box xstringl — compute a box which surrounds strings xtape — set up the record process of graphics xtitle — add titles on a graphics window zoom_rect — zoom a selection of the current graphic figure XIX. History manager addhistory — add lines to current history. displayhistory — displays current scilab history gethistory — returns current scilab history in a string matrix gethistoryfile — get filename used for scilab's history historymanager — enable or disable history manager historysize — get number of lines in history loadhistory — load a history file removelinehistory — remove the Nth line in history. resethistory — Deletes all entries in the scilab history. saveafterncommands — Save the history file after n statements are added to the file. saveconsecutivecommands — Save consecutive duplicate commands. savehistory — save the current history in a file sethistoryfile — set filename for scilab history XX. Input/Output functions deff — online definition of function diary — diary of session disp — displays variables execstr — execute Scilab code in strings file — file management fileinfo — Provides information about a file get_absolute_file_path — Given an absolute pathname of a file opened in scilab. getenv — get the value of an environment variable getf — defining a function from a file getio — get Scilab input/output logical units getpid — get Scilab process identificator getrelativefilename — Given an absolute directory and an absolute filename, returns a relative file name. getscilabkeywords — returns a list with all scilab keywords. halt — stop execution host — Unix or DOS command execution
input — prompt for user input keyboard — keyboard commands lib — library definition load — load saved variable newest — returns newest file of a set of files oldload — load saved variable in 2.4.1 and previous formats oldsave — saving variables in 2.4.1 and previous format print — prints variables in a file printf — Emulator of C language printf function printf_conversion — printf, sprintf, fprintf conversion specifications read — matrices read read4b — fortran file binary read readb — fortran file binary read readc_ — read a character string save — saving variables in binary files setenv — set the value of an environment variable sprintf — Emulator of C language sprintf function sscanf — Converts formatted input given by a string unix — shell (sh) command execution unix_g — shell (sh) command execution, output redirected to a variable unix_s — shell (sh) command execution, no output unix_w — shell (sh) command execution, output redirected to scilab window unix_x — shell (sh) command execution, output redirected to a window writb — fortran file binary write write — write in a formatted file write4b — fortran file binary write XXI. Integers iconvert — conversion to 1 or 4 byte integer representation inttype — type integers used in integer data types XXII. Interpolation bsplin3val — 3d spline arbitrary derivative evaluation function cshep2d — bidimensional cubic shepard (scattered) interpolation eval_cshep2d — bidimensional cubic shepard interpolation evaluation interp — cubic spline evaluation function interp3d — 3d spline evaluation function interpln — linear interpolation intsplin — integration of experimental data by spline interpolation linear_interpn — n dimensional linear interpolation lsq_splin — weighted least squares cubic spline fitting smooth — smoothing by spline functions splin — cubic spline interpolation splin3d — spline gridded 3d interpolation XXIII. Intersci intersci — scilab tool to interface C of Fortran functions with scilab XXIV. JVM javaclasspath — set and get dynamic Java class path
javalibrarypath — set and get dynamic java.library.path jre_path — returns Java Runtime Environment used by Scilab system_getproperty — gets the system property indicated by a specified key. system_setproperty — set a system property indicated by a specified key and value. with_embedded_jre — checks if scilab uses a embedded JRE XXV. Java Interface SciBoolean — Class to use boolean object with scilab SciBooleanArray — Class to use boolean matrix in Scilab. SciComplex — Class to use complex object with scilab SciComplexArray — Class to use complex matrix in Scilab. SciDouble — Class to use double object with scilab SciDoubleArray — Class to use real matrix in Scilab. SciString — Class to use String object in Scilab. SciStringArray — Classe to use String matrix in Scilab. Scilab — Scilab Class javasci — Scilab tool to interface Scilab functions to Java XXVI. Linear Algebra aff2ab — linear (affine) function to A,b conversion balanc — matrix or pencil balancing bdiag — block diagonalization, generalized eigenvectors chfact — sparse Cholesky factorization chol — Cholesky factorization chsolve — sparse Cholesky solver classmarkov — recurrent and transient classes of Markov matrix cmb_lin — symbolic linear combination coff — resolvent (cofactor method) colcomp — column compression, kernel, nullspace companion — companion matrix cond — condition number det — determinant eigenmarkov — normalized left and right Markov eigenvectors ereduc — computes matrix column echelon form by qz transformations expm — square matrix exponential fstair — computes pencil column echelon form by qz transformations fullrf — full rank factorization fullrfk — full rank factorization of A^k genmarkov — generates random markov matrix with recurrent and transient classes givens — Givens transformation glever — inverse of matrix pencil gschur — generalized Schur form (obsolete). gspec — eigenvalues of matrix pencil (obsolete) hess — Hessenberg form householder — Householder orthogonal reflexion matrix im_inv — inverse image
inv — matrix inverse kernel — kernel, nullspace kroneck — Kronecker form of matrix pencil linsolve — linear equation solver lsq — linear least square problems. lu — LU factors of Gaussian elimination lyap — Lyapunov equation nlev — Leverrier's algorithm orth — orthogonal basis pbig — eigenprojection pencan — canonical form of matrix pencil penlaur — Laurent coefficients of matrix pencil pinv — pseudoinverse polar — polar form proj — projection projspec — spectral operators psmall — spectral projection qr — QR decomposition quaskro — quasiKronecker form randpencil — random pencil range — range (span) of A^k rank — rank rankqr — rank revealing QR factorization rcond — inverse condition number rowcomp — row compression, range rowshuff — shuffle algorithm rref — computes matrix row echelon form by lu transformations schur — [ordered] Schur decomposition of matrix and pencils spaninter — subspace intersection spanplus — sum of subspaces spantwo — sum and intersection of subspaces spec — eigenvalues of matrices and pencils sqroot — W*W' hermitian factorization squeeze — squeeze sva — singular value approximation svd — singular value decomposition sylv — Sylvester equation. trace — trace XXVII. Localization dgettext — get text translated into the current locale and a specific domain domain. getdefaultlanguage — getdefaultlanguage() returns the default language used by Scilab. getlanguage — getlanguage() returns current language used by Scilab. gettext — get text translated into the current locale and domain. LANGUAGE — Variable defining the language (OBSOLETE)
setlanguage — Sets the internal LANGUAGE value. XXVIII. Maple Interface sci2map — Scilab to Maple variable conversion XXIX. Matlab binary files I/O loadmatfile — loads a Matlab V6 MATfile (binary or ASCII) into Scilab matfile_close — Closes a Matlab V5 binary MATfile. matfile_listvar — Lists variables of a Matlab V5 binary MATfile. matfile_open — Opens a Matlab V5 binary MATfile. matfile_varreadnext — Reads next variable in a Matlab V5 binary MATfile. matfile_varwrite — Write a variable in a Matlab V5 binary MATfile. savematfile — write a Matlab MATfile (binary or ASCII) XXX. Matlab to Scilab Conversion Tips About_M2SCI_tools — Generally speaking about tools to convert Matlab files to Scilab... Contents — Create a tree containing contents inference data Cste — Create a tree representing a constant Equal — Create a tree representing an instruction Funcall — Create a tree representing a function call Infer — Create a tree containing inference data MatlabScilab_character_strings — Generally speaking about... Operation — Create a tree representing an operation Type — Create a tree containing type inference data Variable — Create a tree representing a variable get_contents_infer — Search for informations in a "M2SCi tlist" contents m2scideclare — Giving tips to help M2SCI... matfile2sci — converts a Matlab 5 MATfile into a Scilab binary file mfile2sci — Matlab Mfile to Scilab conversion function sci_files — How to write conversion functions translatepaths — convert a set of Matlab Mfiles directories to Scilab XXXI. Metanet : Graph and Network toolbox add_edge — adds an edge or an arc between two nodes add_edge_data — associates new data fields to the edges data structure of a graph add_node — adds disconnected nodes to a graph add_node_data — associates new data fields to the nodes data structure of a graph adj_lists — computes adjacency lists arc_graph — graph with nodes corresponding to arcs arc_number — number of arcs of a graph articul — finds one or more articulation points bandwr — bandwidth reduction for a sparse matrix best_match — maximum matching of a graph chain_struct — chained structure from adjacency lists of a graph check_graph — checks a Scilab graph data structure circuit — finds a circuit or the rank function in a directed graph con_nodes — set of nodes of a connected component connex — connected components contract_edge — contracts edges between two nodes
convex_hull — convex hull of a set of points in the plane cycle_basis — basis of cycle of a simple undirected graph delete_arcs — deletes all the arcs or edges between a set of nodes delete_edges — deletes all the arcs or edges between a set of nodes delete_nodes — deletes nodes edge_number — number of edges of a graph edgedatafields — returns the vector of edge data fields names edges_data_structure — description of the data structure representing the edges of a graph edit_graph — graph and network graphical editor edit_graph_menus — edit_graph menus description egraphic_data_structure — data structure representing the graphic properties used for edges graphical display find_path — finds a path between two nodes gen_net — interactive or random generation of a network girth — girth of a directed graph glist — Scilab4.x graph list creation graphlist — description of graph list (obsolete) graph_2_mat — nodearc or nodenode incidence matrix of a graph graph_center — center of a graph graph_complement — complement of a graph graph_data_structure — description of the main graph data structure graph_diameter — diameter of a graph graph_power — kth power of a directed 1graph graph_simp — converts a graph to a simple undirected graph graph_sum — sum of two graphs graph_union — union of two graphs hamilton — hamiltonian circuit of a graph hilite_edges — highlights a set of edges — unhighlights a set of edges hilite_nodes — highlights a set of nodes — unhighlights a set of nodes index_from_tail_head — Computes the index of edges given by (tail,head) pairs is_connex — connectivity test knapsack — solves a 01 multiple knapsack problem line_graph — graph with nodes corresponding to edges load_graph — loads a graph from a file make_graph — makes a graph list mat_2_graph — graph from nodearc or nodenode incidence matrix max_cap_path — maximum capacity path max_clique — maximum clique of a graph max_flow — maximum flow between two nodes mesh2d — triangulation of n points in the plane metanet_module_path — Returns the path of the metanet module min_lcost_cflow — minimum linear cost constrained flow min_lcost_flow1 — minimum linear cost flow min_lcost_flow2 — minimum linear cost flow min_qcost_flow — minimum quadratic cost flow
min_weight_tree — minimum weight spanning tree neighbors — nodes connected to a node netclose — closes an edit_graph window netwindow — selects the current edit_graph window netwindows — gets the numbers of edit_graph windows ngraphic_data_structure — data structure representing the graphic properties used for nodes graphical display node_number — number of nodes of a graph nodedatafields — returns the vector of node data fields names nodes_2_path — path from a set of nodes nodes_data_structure — description of the data structure representing the nodes of a graph nodes_degrees — degrees of the nodes of a graph path_2_nodes — set of nodes from a path perfect_match — mincost perfect matching pipe_network — solves the pipe network problem plot_graph — general plot of a graph (obsolete) predecessors — tail nodes of incoming arcs of a node qassign — solves a quadratic assignment problem salesman — solves the travelling salesman problem save_graph — saves a graph in a file set_nodes_id — displays labels near selected nodes in a graph display. shortest_path — shortest path show_arcs — highlights a set of arcs show_edges — highlights a set of edges show_graph — displays a graph show_nodes — highlights a set of nodes split_edge — splits an edge by inserting a node strong_con_nodes — set of nodes of a strong connected component strong_connex — strong connected components subgraph — subgraph of a graph successors — head nodes of outgoing arcs of a node supernode — replaces a group of nodes with a single node trans_closure — transitive closure update_graph — converts an old graph data structure to the current one. XXXII. Online help management add_help_chapter — Add an entry in the helps list apropos — searches keywords in Scilab help foo — foo short description help — online help command help_skeleton — build the skeleton of the xml help file associated to a Scilab function make_index — creates a new index file for online help man — on line help XML file description format manedit — editing a manual item %helps — Variable defining the path of help directories
xmltohtml — converts xml Scilab help files to HTML format xmltojar — converts xml Scilab help files to javaHelp format xmltopdf — converts xml Scilab help files to pdf format xmltops — converts xml Scilab help files to postscript format XXXIII. Optimization and Simulation NDcost — generic external for optim computing gradient using finite differences bvode — boundary value problems for ODE bvodeS — simplified call of bvode datafit — Parameter identification based on measured data derivative — approximate derivatives of a function fit_dat — Parameter identification based on measured data fsolve — find a zero of a system of n nonlinear functions karmarkar — karmarkar algorithm leastsq — Solves nonlinear least squares problems linpro — linear programming solver (obsolete) lmisolver — linear matrix inequation solver lmitool — tool for solving linear matrix inequations lsqrsolve — minimize the sum of the squares of nonlinear functions, levenbergmarquardt algorithm mps2linpro — convert lp problem given in MPS format to linpro format (obsolete) numdiff — numerical gradient estimation optim — nonlinear optimization routine qld — linear quadratic programming solver qp_solve — linear quadratic programming solver builtin qpsolve — linear quadratic programming solver quapro — linear quadratic programming solver (obsolete) semidef — semidefinite programming XXXIV. Overloading overloading — display, functions and operators overloading capabilities XXXV. Parameters add_param — Add a parameter to a list of parameters get_param — Get the value of a parameter in a parameter list init_param — Initialize the structure which will handles the parameters list is_param — Check if a parameter is present in a parameter list list_param — List all the parameters name in a list of parameters remove_param — Remove a parameter and its associated value from a list of parameters set_param — Set the value of a parameter in a parameter list XXXVI. Polynomials bezout — Bezout equation for polynomials or integers clean — cleans matrices (round to zero small entries) cmndred — common denominator form coeff — coefficients of matrix polynomial coffg — inverse of polynomial matrix colcompr — column compression of polynomial matrix
degree — degree of polynomial matrix denom — denominator derivat — rational matrix derivative determ — determinant of polynomial matrix detr — polynomial determinant diophant — diophantine (Bezout) equation factors — numeric real factorization gcd — gcd calculation hermit — Hermite form horner — polynomial/rational evaluation hrmt — gcd of polynomials htrianr — triangularization of polynomial matrix invr — inversion of (rational) matrix lcm — least common multiple lcmdiag — least common multiple diagonal factorization ldiv — polynomial matrix long division numer — numerator pdiv — polynomial division pol2des — polynomial matrix to descriptor form pol2str — polynomial to string conversion polfact — minimal factors residu — residue roots — roots of polynomials rowcompr — row compression of polynomial matrix sfact — discrete time spectral factorization simp — rational simplification simp_mode — toggle rational simplification sylm — Sylvester matrix systmat — system matrix XXXVII. Randlib grand — Random number generator(s) XXXVIII. Scilab to Fortran sci2for — scilab function to Fortran routine conversion XXXIX. Scipad edit_error — opens in SciPad the source of the last recorded error scipad — Embedded Scilab text editor XL. Shell clc — Clear Command Window Keyboard Shortcuts — Keyboard Shortcuts in Scilab lines — rows and columns used for display prompt — get current prompt tohome — Move the cursor to the upper left corner of the Command Window XLI. Signal Processing Signal — Signal manual description analpf — create analog lowpass filter
bilt — bilinear or biquadratic transform SISO system given by a zero/poles representation buttmag — response of Butterworth filter casc — cascade realization of filter from coefficients cepstrum — cepstrum calculation cheb1mag — response of Chebyshev type 1 filter cheb2mag — response of type 2 Chebyshev filter chepol — Chebychev polynomial convol — convolution corr — correlation, covariance cspect — spectral estimation (correlation method) czt — chirp ztransform algorithm detrend — remove constant, linear or piecewise linear trend from a vector dft — discrete Fourier transform ell1mag — magnitude of elliptic filter eqfir — minimax approximation of FIR filter eqiir — Design of iir filters faurre — filter computation by simple Faurre algorithm ffilt — coefficients of FIR lowpass fft — fast Fourier transform. — fast Fourier transform. fft2 — twodimension fast Fourier transform fftshift — rearranges the fft output, moving the zero frequency to the center of the spectrum filt_sinc — samples of sinc function filter — filters a data sequence using a digital filter find_freq — parameter compatibility for elliptic filter design findm — for elliptic filter design frfit — frequency response fit frmag — magnitude of FIR and IIR filters fsfirlin — design of FIR, linear phase filters, frequency sampling technique group — group delay for digital filter hank — covariance to hankel matrix hilb — FIR approximation to a Hilbert transform filter hilbert — Discretetime analytic signal computation of a real signal using Hilbert transform iir — iir digital filter iirgroup — group delay Lp IIR filter optimization iirlp — Lp IIR filter optimization intdec — Changes sampling rate of a signal jmat — row or column block permutation kalm — Kalman update lattn — recursive solution of normal equations lattp — lattp lev — YuleWalker equations (Levinson's algorithm) levin — Toeplitz system solver by Levinson algorithm (multidimensional) lgfft — utility for fft
lindquist — Lindquist's algorithm mese — maximum entropy spectral estimation mfft — multidimensional fft mrfit — frequency response fit %asn — elliptic integral %k — Jacobi's complete elliptic integral %sn — Jacobi 's elliptic function phc — Markovian representation pspect — crossspectral estimate between 2 series remez — Remez's algorithm remezb — Minimax approximation of magnitude response rpem — RPEM estimation sincd — digital sinc function or Direchlet kernel srfaur — squareroot algorithm srkf — square root Kalman filter sskf — steadystate Kalman filter syredi — Design of iir filters, syredi code interface system — observation update trans — lowpass to other filter transform wfir — linearphase FIR filters wiener — Wiener estimate wigner — 'timefrequency' wigner spectrum window — compute symmetric window of various type yulewalk — leastsquare filter design zpbutt — Butterworth analog filter zpch1 — Chebyshev analog filter zpch2 — Chebyshev analog filter zpell — lowpass elliptic filter XLII. Simulated Annealing compute_initial_temp — A SA function which allows to compute the initial temperature of the simulated annealing neigh_func_csa — The classical neighborhood relationship for the simulated annealing neigh_func_default — A SA function which computes a neighbor of a given point neigh_func_fsa — The Fast Simulated Annealing neghborhood relationship neigh_func_vfsa — The Very Fast Simulated Annealing neighborhood relationship optim_sa — A Simulated Annealing optimization method temp_law_csa — The classical temperature decrease law temp_law_default — A SA function which computed the temperature of the next temperature stage temp_law_fsa — The Szu and Hartley Fast simulated annealing temp_law_huang — The Huang temperature decrease law for the simulated annealing temp_law_vfsa — This function implements the Very Fast Simulated Annealing from L. Ingber
XLIII. Sound file handling analyze — frequency plot of a sound signal auread — load .au sound file auwrite — writes .au sound file beep — Produce a beep sound lin2mu — linear signal to mulaw encoding loadwave — load a sound wav file into scilab mapsound — Plots a sound map mu2lin — mulaw encoding to linear signal playsnd — sound player facility savewave — save data into a sound wav file. sound — sound player facility soundsec — generates n sampled seconds of time parameter wavread — load .wav sound file wavwrite — writes .wav sound file XLIV. Sparses Matrix full — sparse to full matrix conversion gmres — Generalized Minimum RESidual method ludel — utility function used with lufact lufact — sparse lu factorization luget — extraction of sparse LU factors lusolve — sparse linear system solver mtlb_sparse — convert sparse matrix nnz — number of non zero entries in a matrix pcg — precondioned conjugate gradient qmr — quasi minimal resiqual method with preconditioning readmps — reads a file in MPS format sparse — sparse matrix definition spchol — sparse cholesky factorization spcompack — converts a compressed adjacency representation spget — retrieves entries of sparse matrix XLV. Special Functions besseli — Modified Bessel functions of the first kind (I sub alpha). — Bessel functions of the first kind (J sub alpha). — Modified Bessel functions of the second kind (K sub alpha). — Bessel functions of the second kind (Y sub alpha). — Bessel functions of the third kind (aka Hankel functions) beta — beta function calerf — computes error functions. dlgamma — derivative of gammaln function, psi function erf — The error function. erfc — The complementary error function. erfcx — scaled complementary error function. erfinv — The inverse of the error function. gamma — The gamma function. gammaln — The logarithm of gamma function. legendre — associated Legendre functions
oldbesseli — Modified Bessel functions of the first kind (I sub alpha). — Bessel functions of the first kind (J sub alpha). — Modified Bessel functions of the second kind (K sub alpha). — Bessel functions of the second kind (Y sub alpha). XLVI. Spreadsheet excel2sci — reads ascii Excel files readxls — reads an Excel file xls_open — Open an Excel file for reading xls_read — read a sheet in an Excel file XLVII. Statistics cdfbet — cumulative distribution function Beta distribution cdfbin — cumulative distribution function Binomial distribution cdfchi — cumulative distribution function chisquare distribution cdfchn — cumulative distribution function noncentral chisquare distribution cdff — cumulative distribution function F distribution cdffnc — cumulative distribution function noncentral fdistribution cdfgam — cumulative distribution function gamma distribution cdfnbn — cumulative distribution function negative binomial distribution cdfnor — cumulative distribution function normal distribution cdfpoi — cumulative distribution function poisson distribution cdft — cumulative distribution function Student's T distribution center — center wcenter — center and weight cmoment — central moments of all orders correl — correlation of two variables covar — covariance of two variables ftest — Fischer ratio ftuneq — Fischer ratio for samples of unequal size. geomean — geometric mean harmean — harmonic mean iqr — interquartile range labostat — Statistical toolbox for Scilab mad — mean absolute deviation mean — mean (row mean, column mean) of vector/matrix entries meanf — weighted mean of a vector or a matrix median — median (row median, column median,...) of vector/matrix/array entries moment — non central moments of all orders msd — mean squared deviation mvvacov — computes variancecovariance matrix nancumsum — Thos function returns the cumulative sum of the values of a matrix nand2mean — difference of the means of two independent samples nanmax — max (ignoring Nan's) nanmean — mean (ignoring Nan's) nanmeanf — mean (ignoring Nan's) with a given frequency. nanmedian — median of the values of a numerical vector or matrix nanmin — min (ignoring Nan's)
nanstdev — standard deviation (ignoring the NANs). nansum — Sum of values ignoring NAN's nfreq — frequence of the values in a vector or matrix pca — Computes principal components analysis with standardized variables perctl — computation of percentils princomp — Principal components analysis quart — computation of quartiles regress — regression coefficients of two variables sample — Sampling with replacement samplef — sample with replacement from a population and frequences of his values. samwr — Sampling without replacement show_pca — Visualization of principal components analysis results st_deviation — standard deviation (row or columnwise) of vector/matrix entries — standard deviation (row or columnwise) of vector/matrix entries stdevf — standard deviation strange — range tabul — frequency of values of a matrix or vector thrownan — eliminates nan values trimmean — trimmed mean of a vector or a matrix variance — variance of the values of a vector or matrix variancef — standard deviation of the values of a vector or matrix XLVIII. Strings ascii — string ascii conversions blanks — Create string of blank characters code2str — returns character string associated with Scilab integer codes. convstr — case conversion emptystr — zero length string grep — find matches of a string in a vector of strings isalphanum — check that characters of a string are alphanumerics isascii — tests if character is a 7bit USASCII character isdigit — check that characters of a string are digits between 0 and 9 isletter — check that characters of a string are alphabetics letters isnum — tests if a string represents a number justify — Justify character array. length — length of object part — extraction of strings regexp — find a substring that matches the regular expression string sci2exp — converts an expression to a string str2code — return scilab integer codes associated with a character string strcat — concatenate character strings strchr — Find the first occurrence of a character in a string strcmp — compare character strings strcmpi — compare character strings (case independent) strcspn — Get span until character in string strindex — search position of a character string in an other string.
string — conversion to string strings — Scilab Object, character strings stripblanks — strips leading and trailing blanks (and tabs) of strings strncmp — Copy characters from strings strrchr — Find the last occurrence of a character in a string strrev — returns string reversed strsplit — split a string into a vector of strings strspn — Get span of character set in string strstr — Locate substring strsubst — substitute a character string by another in a character string. strtod — Convert string to double. strtok — Split string into tokens tokenpos — returns the tokens positions in a character string. tokens — returns the tokens of a character string. tree2code — generates ascii definition of a Scilab function XLIX. Symbolic addf — symbolic addition ldivf — left symbolic division mulf — symbolic multiplication rdivf — right symbolic division subf — symbolic subtraction L. Tcl/Tk Interface ScilabEval — tcl instruction : Evaluate a string with scilab interpreter TCL_CreateSlave — Create a TCL slave interpreter TCL_DeleteInterp — delete TCL interpreter TCL_ExistArray — Return %T if a tcl array exists TCL_ExistInterp — Return %T if a tcl slave interperter exists TCL_ExistVar — Return %T if a tcl variable exists TCL_GetVar — Get a tcl/tk variable value TCL_GetVersion — get the version of the TCL/TK library at runtime. TCL_SetVar — Set a tcl/tk variable value TCL_UnsetVar — Remove a tcl variable TCL_UpVar — Make a link from a tcl source variable to a tcl destination variable TCL_EvalFile — Reads and evaluate a tcl/tk file — Reads and evaluate a tcl/tk file (obsolete) TCL_EvalStr — Evaluate a string whithin the Tcl/Tk interpreter — Evaluate a string whithin the Tcl/Tk interpreter (obsolete) TK_GetVar — Get a tcl/tk variable value (obsolete) TK_SetVar — Set a tcl/tk variable value (obsolete) browsevar — Scilab variable browser config — Scilab general configuration. demoplay — interactive demo player (OBSOLETE). editvar — Scilab variable editor tk_getdir — dialog to get a directory path tk_getfile — dialog to get one or more file paths tk_savefile — dialog to get a file path for writing
winclose — close windows created by sciGUI winlist — Return the winId of current window created by sciGUI LI. Texmacs pol2tex — convert polynomial to TeX format texprint — TeX output of Scilab object LII. Time and Date calendar — Calendar clock — Return current time as date vector date — Current date as date string datenum — Convert to serial date number datevec — Date components eomday — Return last day of month etime — Elapsed time getdate — get date and time information now — Return current date and time realtimeinit — set time unit — set dates origin or waits until date sleep — suspend Scilab tic — start a stopwatch timer timer — cpu time toc — Read the stopwatch timer weekday — Return day of week LIII. UMFPACK Interface PlotSparse — plot the pattern of non nul elements of a sparse matrix ReadHBSparse — read a HarwellBoeing sparse format file cond2sp — computes an approximation of the 2norm condition number of a s.p.d. sparse matrix condestsp — estimate the condition number of a sparse matrix rafiter — (obsolete) iterative refinement for a s.p.d. linear system res_with_prec — computes the residual r = Axb with precision taucs_chdel — utility function used with taucs_chfact taucs_chfact — cholesky factorisation of a sparse s.p.d. matrix taucs_chget — retrieve the Cholesky factorization at the scilab level taucs_chinfo — get information on Cholesky factors taucs_chsolve — solve a linear sparse (s.p.d.) system given the Cholesky factors taucs_license — display the taucs license umf_license — display the umfpack license umf_ludel — utility function used with umf_lufact umf_lufact — lu factorisation of a sparse matrix umf_luget — retrieve lu factors at the scilab level umf_luinfo — get information on LU factors umf_lusolve — solve a linear sparse system given the LU factors umfpack — solve sparse linear system colon  (:) colon operator
Description
Colon symbol : can be used to form implicit vectors. (see also linspace , logspace ) j:kis the vector [j, j+1,...,k] (empty if j>k ). j:d:kis the vector [j, j+d, ..., j+m*d] The colon notation can also be used to pick out selected rows, columns and elements of vectors and matrices (see also extraction , insertion ) A(:)is the vector of all the elements of A regarded as a single column. A(:,j)ys the j th column of A A(j:k)is [A(j),A(j+1),...,A(k)] A(:,j:k)is [A(:,j),A(:,j+1),...,A(:,k)] A(:)=wfills the matrix A with entries of w (taken column by column if w is a matrix).
See Also
matrix
, for , linspace , logspace ,
http://www.math.ufl.edu/help/matlabtutorial/index.html http://www.scilab.org/product/man/index.php?module=programming&page=colon.htm division euclidiennne ,rem Tu souhaites donc donner un temps en secondes et avoir une conversion en joursheuresminutessecondes. j = 24h h = 60 min min = 60s *Tu prends donc ton temps t en secondes, tu fais la division euclidienne (quotient nmin et reste s) de ce temps par 60, le reste s te donne le nombre de secondes dans ta date en joursminutessecondes. *Tu fais la division euclidienne (quotient nh et reste min) du quotient nmin précédent par 60. Le reste min te donne le nombre de minutes dans ta date en joursminutessecondes. *Tu fais la division euclidienne (quotient j et reste h) du quotient nh précédent par 24. Le reste h te donne le nombre d'heures dans ta date en joursminutessecondes et le quotient j te donne le nombre de jours.
t=input('Donner un nombre temps t en secondes : '); nj=(trem(t,86400))/(86400); nh=(rem(t,86400)rem(rem(t,86400),3600))/(3600); nm=(rem(rem(t,86400),3600)rem(rem(rem(t,86400),3600),60))/(60); ns=rem(rem(rem(t,86400),3600),60);
display(['Le temps ' num2str(t) 's donne ' num2str(nj) 'j ' num2str(nh) 'h ' num2str(nm) 'min ' num2str(ns) 's']);
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.