Scilab 6.0.0
- 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)
Scilabヘルプ >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > D > diff (Matlab 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.
Comments
Add a comment:
Please login to comment this page.