Scilab 5.5.2
- Справка Scilab
- Matlab to Scilab Conversion Tips
- Matlab-Scilab equivalents
- D
- date (Matlab function)
- dec2bin (Matlab function)
- dec2hex (Matlab function)
- delete (Matlab function)
- det (Matlab function)
- diag (Matlab function)
- diary (Matlab function)
- diff (Matlab function)
- dir (Matlab function)
- disp (Matlab function)
- display (Matlab function)
- doc (Matlab function)
- docopt (Matlab function)
- dos (Matlab function)
- double (Matlab function)
- drawnow (Matlab function)
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
diff (Matlab function)
Differences and approximate derivatives
Particular cases
- Y = diff(X[,n])
For this kind of use of diff (dim parameter not given), Matlab works on the first non-singleton 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 non-singleton 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.
Report an issue | ||
<< diary (Matlab function) | D | dir (Matlab function) >> |