Matlab dec2hex emulation function
Matlab and Scilab
dec2hex behave differently in some particular cases:
With empty matrix: Matlab
dec2hexreturns "" but in Scilab you get .
With complex inputs: Matlab
dec2hexautomatically removes complex part of inputs but not Scilab one.
dec2hexalways returns a row vector but in Scilab
dec2hexreturns a value which have the same size as the input.
dec2hexcan have two inputs but not Scilab one.
mtlb_dec2hex(D[,N]) is used by
mfile2sci to replace
dec2hex(D[,N]) when it was not
possible to know what were the inputs while porting Matlab code to Scilab. This function will
determine the correct semantic at run time. If you want to have a
more efficient code it is possible to replace
Dis not an empty matrix,
mtlb_dec2hex(D)may be replaced by
Dis complex and by
|Report an issue|
|<< mtlb_cumsum||Compatible fonctions||mtlb_delete >>|