summaryrefslogtreecommitdiff
path: root/modules/compatibility_functions
diff options
context:
space:
mode:
Diffstat (limited to 'modules/compatibility_functions')
-rwxr-xr-xmodules/compatibility_functions/Makefile1014
-rwxr-xr-xmodules/compatibility_functions/Makefile.am20
-rwxr-xr-xmodules/compatibility_functions/Makefile.in1014
-rwxr-xr-xmodules/compatibility_functions/compatibility_functions.iss40
-rwxr-xr-xmodules/compatibility_functions/etc/compatibility_functions.quit10
-rwxr-xr-xmodules/compatibility_functions/etc/compatibility_functions.start19
-rwxr-xr-xmodules/compatibility_functions/help/en_US/addchapter.sce11
-rwxr-xr-xmodules/compatibility_functions/help/en_US/firstnonsingleton.xml77
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mstr2sci.xml59
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_0.xml58
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_a.xml83
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_all.xml91
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_any.xml91
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_axis.xml83
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_beta.xml59
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_box.xml71
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_close.xml85
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_colordef.xml93
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_cumprod.xml73
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_cumsum.xml73
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_dec2hex.xml69
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_delete.xml55
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_diag.xml60
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_diff.xml65
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_dir.xml44
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_double.xml79
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_e.xml82
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_echo.xml75
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_eval.xml95
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_exist.xml53
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_eye.xml57
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_false.xml62
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fft.xml59
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fftshift.xml62
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_find.xml76
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_findstr.xml45
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fliplr.xml51
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fopen.xml61
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_format.xml98
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fprintf.xml44
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fread.xml44
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fscanf.xml44
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_full.xml64
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_fwrite.xml44
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_grid.xml70
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_hold.xml58
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_i.xml77
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_ifft.xml59
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_imp.xml50
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_int16.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_int32.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_int8.xml61
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_is.xml46
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_isa.xml121
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_isfield.xml65
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_isletter.xml46
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_isspace.xml58
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_l.xml51
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_legendre.xml108
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_linspace.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_logic.xml61
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_logical.xml56
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_lower.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_max.xml94
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_min.xml94
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_mode.xml82
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_more.xml64
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_num2str.xml69
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_ones.xml57
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_plot.xml65
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_prod.xml84
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_rand.xml58
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_randn.xml58
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_rcond.xml52
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_realmax.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_realmin.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_s.xml83
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_setstr.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_size.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_sort.xml94
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_strcmp.xml50
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_strcmpi.xml50
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_strfind.xml52
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_strrep.xml52
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_sum.xml84
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_t.xml58
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_toeplitz.xml65
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_tril.xml77
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_triu.xml77
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_true.xml62
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_uint16.xml56
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_uint32.xml56
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_uint8.xml56
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_upper.xml66
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_var.xml119
-rwxr-xr-xmodules/compatibility_functions/help/en_US/mtlb_zeros.xml57
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/addchapter.sce11
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/firstnonsingleton.xml77
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mstr2sci.xml59
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_0.xml58
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_a.xml83
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_all.xml95
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_any.xml95
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_axis.xml79
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_beta.xml61
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_box.xml72
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_close.xml87
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_colordef.xml95
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_cumprod.xml74
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_cumsum.xml74
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_dec2hex.xml71
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_delete.xml56
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_diag.xml60
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_diff.xml65
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_dir.xml45
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_double.xml83
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_e.xml83
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_echo.xml76
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_eval.xml97
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_exist.xml53
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_eye.xml58
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_false.xml62
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fft.xml60
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fftshift.xml63
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_find.xml77
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_findstr.xml46
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fliplr.xml52
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fopen.xml62
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_format.xml99
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fprintf.xml44
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fread.xml44
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fscanf.xml44
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_full.xml64
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_fwrite.xml44
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_grid.xml71
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_hold.xml59
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_i.xml79
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_ifft.xml60
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_imp.xml51
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_int16.xml67
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_int32.xml67
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_int8.xml62
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_is.xml47
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_isa.xml122
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_isfield.xml66
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_isletter.xml48
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_isspace.xml59
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_l.xml52
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_legendre.xml107
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_linspace.xml66
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_logic.xml62
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_logical.xml56
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_lower.xml67
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_max.xml99
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_min.xml99
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_mode.xml78
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_more.xml66
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_num2str.xml71
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_ones.xml58
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_plot.xml66
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_prod.xml87
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_rand.xml59
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_randn.xml59
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_rcond.xml52
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_realmax.xml68
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_realmin.xml68
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_s.xml83
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_setstr.xml65
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_size.xml68
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_sort.xml100
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_strcmp.xml50
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_strcmpi.xml50
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_strfind.xml54
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_strrep.xml54
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_sum.xml87
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_t.xml58
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_toeplitz.xml67
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_tril.xml79
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_triu.xml79
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_true.xml62
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_uint16.xml57
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_uint32.xml57
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_uint8.xml57
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_upper.xml67
-rwxr-xr-xmodules/compatibility_functions/help/fr_FR/mtlb_zeros.xml58
-rwxr-xr-xmodules/compatibility_functions/help/ja_JP/addchapter.sce11
-rwxr-xr-xmodules/compatibility_functions/help/ja_JP/mtlb_mode.xml78
-rwxr-xr-xmodules/compatibility_functions/help/pt_BR/addchapter.sce11
-rwxr-xr-xmodules/compatibility_functions/help/pt_BR/mtlb_mode.xml80
-rwxr-xr-xmodules/compatibility_functions/help/ru_RU/addchapter.sce11
-rwxr-xr-xmodules/compatibility_functions/help/ru_RU/mtlb_mode.xml80
-rwxr-xr-xmodules/compatibility_functions/license.txt10
-rwxr-xr-xmodules/compatibility_functions/locales/ca_ES.po320
-rwxr-xr-xmodules/compatibility_functions/locales/compatibility_functions.pot499
-rwxr-xr-xmodules/compatibility_functions/locales/cs_CZ.po299
-rwxr-xr-xmodules/compatibility_functions/locales/de_DE.po308
-rwxr-xr-xmodules/compatibility_functions/locales/es_ES.po318
-rwxr-xr-xmodules/compatibility_functions/locales/fr_FR.po323
-rwxr-xr-xmodules/compatibility_functions/locales/it_IT.po338
-rwxr-xr-xmodules/compatibility_functions/locales/ja_JP.po325
-rwxr-xr-xmodules/compatibility_functions/locales/pl_PL.po314
-rwxr-xr-xmodules/compatibility_functions/locales/pt_BR.po320
-rwxr-xr-xmodules/compatibility_functions/locales/ru_RU.po305
-rwxr-xr-xmodules/compatibility_functions/locales/uk_UA.po325
-rwxr-xr-xmodules/compatibility_functions/locales/zh_CN.po284
-rwxr-xr-xmodules/compatibility_functions/locales/zh_TW.po284
-rwxr-xr-xmodules/compatibility_functions/macros/%b_a_b.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_a_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_a_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_a_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_c_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_c_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_cumprod.binbin0 -> 11224 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_cumprod.sci91
-rwxr-xr-xmodules/compatibility_functions/macros/%b_cumsum.binbin0 -> 11172 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_cumsum.sci91
-rwxr-xr-xmodules/compatibility_functions/macros/%b_d_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_d_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_f_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_f_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_l_b.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_l_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_l_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_l_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_m_b.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_m_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_m_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_m_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_p_s.binbin0 -> 392 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_p_s.sci13
-rwxr-xr-xmodules/compatibility_functions/macros/%b_prod.binbin0 -> 10120 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_prod.sci82
-rwxr-xr-xmodules/compatibility_functions/macros/%b_r_b.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_r_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_r_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_r_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_s_b.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_s_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_s_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_s_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_sum.binbin0 -> 27936 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_sum.sci187
-rwxr-xr-xmodules/compatibility_functions/macros/%b_x_b.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_x_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%b_x_s.binbin0 -> 492 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%b_x_s.sci14
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_a_s.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_a_s.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_abs.binbin0 -> 616 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_abs.sci13
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_e.binbin0 -> 1156 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_e.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_find.binbin0 -> 296 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_find.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_length.binbin0 -> 296 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_length.sci13
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_m_s.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_m_s.sci11
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_maxi.binbin0 -> 432 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_maxi.sci13
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_nnz.binbin0 -> 320 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_nnz.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_sparse.binbin0 -> 184 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_sparse.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_t.binbin0 -> 840 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%msp_t.sci16
-rwxr-xr-xmodules/compatibility_functions/macros/%s_a_b.binbin0 -> 392 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_a_b.sci13
-rwxr-xr-xmodules/compatibility_functions/macros/%s_a_msp.binbin0 -> 372 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_a_msp.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_c_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_c_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_d_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_d_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_f_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_f_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_l_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_l_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_m_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_m_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_m_msp.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_m_msp.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_p_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_p_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_r_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_r_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_s_b.binbin0 -> 316 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_s_b.sci12
-rwxr-xr-xmodules/compatibility_functions/macros/%s_x_b.binbin0 -> 492 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/%s_x_b.sci14
-rwxr-xr-xmodules/compatibility_functions/macros/buildmacros.bat6
-rwxr-xr-xmodules/compatibility_functions/macros/buildmacros.sce17
-rwxr-xr-xmodules/compatibility_functions/macros/char.binbin0 -> 24092 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/char.sci143
-rwxr-xr-xmodules/compatibility_functions/macros/cleanmacros.bat8
-rwxr-xr-xmodules/compatibility_functions/macros/enlarge_shape.binbin0 -> 5164 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/enlarge_shape.sci42
-rwxr-xr-xmodules/compatibility_functions/macros/firstnonsingleton.binbin0 -> 2812 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/firstnonsingleton.sci52
-rwxr-xr-xmodules/compatibility_functions/macros/fseek_origin.binbin0 -> 1496 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/fseek_origin.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/libbin0 -> 4168 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/makecell.binbin0 -> 3136 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/makecell.sci31
-rwxr-xr-xmodules/compatibility_functions/macros/mstr2sci.binbin0 -> 4352 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mstr2sci.sci37
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb.binbin0 -> 620 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb.sci16
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_0.binbin0 -> 1668 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_0.sci25
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_a.binbin0 -> 688 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_a.sci19
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_all.binbin0 -> 3736 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_all.sci45
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_any.binbin0 -> 3128 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_any.sci39
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_axes.binbin0 -> 4312 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_axes.sci37
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_axis.binbin0 -> 18676 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_axis.sci152
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_beta.binbin0 -> 2988 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_beta.sci31
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_box.binbin0 -> 2788 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_box.sci39
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_choices.binbin0 -> 852 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_choices.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_close.binbin0 -> 5008 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_close.sci55
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_colordef.binbin0 -> 2888 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_colordef.sci50
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cond.binbin0 -> 4588 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cond.sci38
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cov.binbin0 -> 9748 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cov.sci67
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cumprod.binbin0 -> 1824 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cumprod.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cumsum.binbin0 -> 1820 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_cumsum.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_dec2hex.binbin0 -> 1932 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_dec2hex.sci30
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_delete.binbin0 -> 1304 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_delete.sci23
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_diag.binbin0 -> 4552 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_diag.sci48
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_diff.binbin0 -> 3048 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_diff.sci46
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_dir.binbin0 -> 7764 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_dir.sci71
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_double.binbin0 -> 1064 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_double.sci23
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_e.binbin0 -> 2076 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_e.sci26
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_echo.binbin0 -> 2028 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_echo.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_error.binbin0 -> 1780 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_error.sci27
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_eval.binbin0 -> 13632 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_eval.sci111
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_exist.binbin0 -> 2936 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_exist.sci48
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_eye.binbin0 -> 980 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_eye.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_false.binbin0 -> 1432 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_false.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fft.binbin0 -> 7548 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fft.sci79
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fftshift.binbin0 -> 3216 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fftshift.sci42
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_filter.binbin0 -> 4200 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_filter.sci36
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_find.binbin0 -> 4056 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_find.sci50
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_findstr.binbin0 -> 744 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_findstr.sci17
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fliplr.binbin0 -> 2176 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fliplr.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fopen.binbin0 -> 1320 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fopen.sci24
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_format.binbin0 -> 4760 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_format.sci69
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fprintf.binbin0 -> 16348 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fprintf.sci124
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fread.binbin0 -> 7916 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fread.sci76
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fscanf.binbin0 -> 9248 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fscanf.sci100
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_full.binbin0 -> 1860 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_full.sci27
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fwrite.binbin0 -> 5160 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_fwrite.sci49
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_get.binbin0 -> 18332 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_get.sci102
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_grid.binbin0 -> 6556 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_grid.sci61
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_hold.binbin0 -> 1940 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_hold.sci30
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_i.binbin0 -> 1208 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_i.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_ifft.binbin0 -> 7784 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_ifft.sci81
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_image.binbin0 -> 1404 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_image.sci23
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_imp.binbin0 -> 1472 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_imp.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_int16.binbin0 -> 984 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_int16.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_int32.binbin0 -> 984 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_int32.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_int8.binbin0 -> 812 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_int8.sci20
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_is.binbin0 -> 6332 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_is.sci56
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isa.binbin0 -> 4332 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isa.sci47
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isfield.binbin0 -> 1020 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isfield.sci20
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isletter.binbin0 -> 1224 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isletter.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isspace.binbin0 -> 804 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_isspace.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_l.binbin0 -> 1896 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_l.sci29
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_legendre.binbin0 -> 7664 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_legendre.sci54
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_linspace.binbin0 -> 4120 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_linspace.sci51
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_logic.binbin0 -> 4100 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_logic.sci48
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_logical.binbin0 -> 1216 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_logical.sci23
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_loglog.binbin0 -> 516 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_loglog.sci15
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_lower.binbin0 -> 724 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_lower.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_max.binbin0 -> 17028 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_max.sci155
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_mean.binbin0 -> 632 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_mean.sci16
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_median.binbin0 -> 632 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_median.sci16
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_mesh.binbin0 -> 13592 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_mesh.sci69
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_meshdom.binbin0 -> 1120 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_meshdom.sci16
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_min.binbin0 -> 17136 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_min.sci157
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_more.binbin0 -> 884 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_more.sci20
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_num2str.binbin0 -> 1856 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_num2str.sci31
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_ones.binbin0 -> 1428 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_ones.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_pcolor.binbin0 -> 1896 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_pcolor.sci26
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_plot.binbin0 -> 28920 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_plot.sci243
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_prod.binbin0 -> 2016 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_prod.sci31
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_qr.binbin0 -> 3052 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_qr.sci29
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_qz.binbin0 -> 2584 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_qz.sci26
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_rand.binbin0 -> 2224 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_rand.sci31
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_randn.binbin0 -> 3192 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_randn.sci37
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_rcond.binbin0 -> 684 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_rcond.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_realmax.binbin0 -> 1928 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_realmax.sci26
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_realmin.binbin0 -> 1928 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_realmin.sci26
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_s.binbin0 -> 700 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_s.sci19
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_semilogx.binbin0 -> 516 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_semilogx.sci15
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_semilogy.binbin0 -> 516 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_semilogy.sci15
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_setstr.binbin0 -> 1796 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_setstr.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_size.binbin0 -> 4264 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_size.sci52
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sort.binbin0 -> 20080 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sort.sci192
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sortrows.binbin0 -> 7664 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sortrows.sci73
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sprintf.binbin0 -> 6784 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sprintf.sci55
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sscanf.binbin0 -> 8356 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sscanf.sci71
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_std.binbin0 -> 1332 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_std.sci28
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strcmp.binbin0 -> 884 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strcmp.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strcmpi.binbin0 -> 1108 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strcmpi.sci20
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strfind.binbin0 -> 1108 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strfind.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strrep.binbin0 -> 1916 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_strrep.sci21
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_subplot.binbin0 -> 1964 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_subplot.sci21
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sum.binbin0 -> 2012 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_sum.sci30
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_t.binbin0 -> 1216 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_t.sci23
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_toeplitz.binbin0 -> 3264 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_toeplitz.sci39
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_tril.binbin0 -> 4656 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_tril.sci47
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_triu.binbin0 -> 4656 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_triu.sci47
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_true.binbin0 -> 1428 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_true.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_type.binbin0 -> 3788 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_type.sci34
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_uint16.binbin0 -> 624 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_uint16.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_uint32.binbin0 -> 624 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_uint32.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_uint8.binbin0 -> 620 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_uint8.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_upper.binbin0 -> 724 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_upper.sci18
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_var.binbin0 -> 7876 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_var.sci68
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_zeros.binbin0 -> 1432 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/mtlb_zeros.sci22
-rwxr-xr-xmodules/compatibility_functions/macros/names160
-rwxr-xr-xmodules/compatibility_functions/macros/sci_sparse.binbin0 -> 632 bytes
-rwxr-xr-xmodules/compatibility_functions/macros/sci_sparse.sci14
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1180.dia.ref28
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1180.tst31
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1227.dia.ref27
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1227.tst30
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_133.dia.ref16
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_133.tst19
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1649.dia.ref29
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1649.tst33
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1725.dia.ref33
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_1725.tst37
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_3627.dia.ref18
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_3627.tst22
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_4603.dia.ref22
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_4603.tst22
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_558.dia.ref27
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_558.tst30
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_577.dia.ref24
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_577.tst29
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_649.dia.ref21
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_649.mat0
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_649.tst24
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_7079.dia.ref18
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_7079.tst23
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_7231.dia.ref21
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_7231.tst23
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_7763.dia.ref24
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_7763.tst36
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_8337.dia.ref19
-rwxr-xr-xmodules/compatibility_functions/tests/nonreg_tests/bug_8337.tst23
-rwxr-xr-xmodules/compatibility_functions/tests/unit_tests/mtlb_std.dia.ref15
-rwxr-xr-xmodules/compatibility_functions/tests/unit_tests/mtlb_std.tst19
-rwxr-xr-xmodules/compatibility_functions/tests/unit_tests/mtlb_var.dia.ref72
-rwxr-xr-xmodules/compatibility_functions/tests/unit_tests/mtlb_var.tst81
564 files changed, 26080 insertions, 0 deletions
diff --git a/modules/compatibility_functions/Makefile b/modules/compatibility_functions/Makefile
new file mode 100755
index 000000000..faf1ff2f1
--- /dev/null
+++ b/modules/compatibility_functions/Makefile
@@ -0,0 +1,1014 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# modules/compatibility_functions/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Vincent Couvert <vincent.couvert@inria.fr>
+#
+# This file is distributed under the same license as the Scilab package.
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+#
+
+##########
+### Makefile included stuff
+### Target, variable, suffixes which are supposed to be useful in every makefile.am
+##########
+
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/scilab
+pkgincludedir = $(includedir)/scilab
+pkglibdir = $(libdir)/scilab
+pkglibexecdir = $(libexecdir)/scilab
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \
+ $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs
+am__append_1 = java
+subdir = modules/compatibility_functions
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
+ $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \
+ $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \
+ $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
+ $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
+ $(top_srcdir)/m4/intel_compiler.m4 \
+ $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
+ $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
+ $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \
+ $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \
+ $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
+ $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
+ $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = \
+ "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" \
+ "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)"
+DATA = $(libscicompatibility_functions_la_etc_DATA) \
+ $(libscicompatibility_functions_la_root_DATA)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14
+ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ
+ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+ANT = /usr/bin/ant
+ANTLR = /usr/share/java/antlr.jar
+AR = ar
+ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack
+ASM3 = /usr/share/java/asm3-3.3.2.jar
+AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf
+AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader
+AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14
+AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar
+AWK = mawk
+BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar
+BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas
+CC = gcc
+CCACHE =
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CHECKSTYLE =
+COBERTURA = /usr/share/java/cobertura.jar
+COMMONS_BEANUTILS =
+COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar
+COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar
+CPP = gcc -E
+CPPFLAGS =
+CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config
+CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz
+CURL_VERSION = libcurl 7.19.7
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEMOTOOLS_ENABLE = yes
+DEPDIR = .deps
+DLLTOOL = false
+DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/
+DOXYGEN_BIN =
+DSYMUTIL =
+DUMPBIN =
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar
+EGREP = /bin/grep -E
+EXEEXT =
+F77 = gfortran
+FFLAGS = -g -O2
+FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3
+FFTW_ENABLE = yes
+FGREP = /bin/grep -F
+FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar
+FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath
+FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar
+FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar
+FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar
+FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar
+FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar
+FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar
+GENHTML =
+GETTEXT_MACRO_VERSION = 0.19
+GIWS_BIN =
+GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar
+GMSGFMT = /usr/bin/msgfmt
+GMSGFMT_015 = /usr/bin/msgfmt
+GRAPHICS_ENABLE = yes
+GREP = /bin/grep
+GUI_ENABLE = yes
+HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl
+HELP_ENABLE = yes
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+INTLLIBS =
+INTL_MACOSX_LIBS =
+JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar
+JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java
+JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
+JAVAC_DEBUG = off
+JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc
+JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah
+JAVASCI_ENABLE = yes
+JAVA_ENABLE = yes
+JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java
+JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64
+JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux
+JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm
+JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb
+JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar
+JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar
+JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar
+JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar
+JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar
+JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar
+JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar
+JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar
+JUNIT4 = /usr/share/java/junit4.jar
+LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack
+LCOV =
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = -Wl,--no-as-needed
+LIBICONV = -liconv
+LIBINTL =
+LIBM = -lm
+LIBOBJS =
+LIBS = -lpthread -ldl -lcurses -lm
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIPO =
+LN_S = ln -s
+LOGGING_LEVEL = SEVERE
+LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar
+LTLIBICONV = -liconv
+LTLIBINTL =
+LTLIBOBJS =
+MAINT = #
+MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo
+MANIFEST_TOOL = :
+MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+MATIO_ENABLE = yes
+MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5
+MKDIR_P = /bin/mkdir -p
+MPI_ENABLE = no
+MSGCAT = /usr/bin/msgcat
+MSGFMT = /usr/bin/msgfmt
+MSGFMT_015 = /usr/bin/msgfmt
+MSGMERGE = /usr/bin/msgmerge
+NM = nm
+NMEDIT =
+OBJDUMP = objdump
+OBJEXT = o
+OCAMLC = ocamlc
+OCAMLDEP = ocamldep
+OCAMLLEX = ocamllex
+OCAMLOPT = ocamlopt
+OCAMLYACC = ocamlyacc
+OPENMPI_CC =
+OPENMPI_CFLAGS =
+OPENMPI_CXX =
+OPENMPI_CXXFLAGS =
+OPENMPI_LIBS =
+OPENMP_CFLAGS = -fopenmp
+OPENMP_CXXFLAGS = -fopenmp
+OPENMP_ENABLE = yes
+OPENMP_LIBS = -lgomp -lstdc++
+OTOOL =
+OTOOL64 =
+PACKAGE = scilab
+PACKAGE_BUGREPORT = http://bugzilla.scilab.org/
+PACKAGE_NAME = Scilab
+PACKAGE_STRING = Scilab 5
+PACKAGE_TARNAME = scilab
+PACKAGE_URL =
+PACKAGE_VERSION = 5
+PATH_SEPARATOR = :
+PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config
+PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre
+PCRE_VERSION = 8.35
+PKG_CONFIG = /usr/bin/pkg-config
+POSUB = po
+POW_LIB =
+PYTHON =
+RANLIB = ranlib
+RELOCATABLE = no
+RT_LIB = -lrt
+SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar
+SCILAB_BINARY_VERSION = 5.5.2
+SCILAB_LIBRARY_VERSION = 5:5:2
+SCILAB_VERSION_MAINTENANCE = 2
+SCILAB_VERSION_MAJOR = 5
+SCILAB_VERSION_MINOR = 5
+SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar
+SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar
+SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector
+SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector
+SCI_FFLAGS = -DNDEBUG -m64 -fPIC
+SCI_LDFLAGS =
+SED = /bin/sed
+SET_MAKE =
+SET_RELOCATABLE =
+SHELL = /bin/bash
+SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar
+SPLINT = no
+STRIP = strip
+SWIG_BIN =
+SWIG_JAVA =
+SWIG_RUNTIME_LIBS_DIR =
+SWIG_SCILAB =
+TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl
+TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include
+TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include
+UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+UMFPACK_ENABLE = yes
+UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd
+USE_NLS = yes
+VERSION = 5
+WITH_OCAML =
+WITH_TKSCI = yes
+XCOS_ENABLE = yes
+XGETTEXT = /usr/bin/xgettext
+XGETTEXT_015 = /usr/bin/xgettext
+XGETTEXT_EXTRA_OPTIONS =
+XMKMF =
+XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar
+XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar
+XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config
+XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2
+XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl
+XML_VERSION = 2.9.1
+X_CFLAGS =
+X_EXTRA_LIBS =
+X_LIBS =
+X_PRE_LIBS =
+abs_builddir = /home/shashank/scilab-master_5.5.2/modules/compatibility_functions
+abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/compatibility_functions
+abs_top_builddir = /home/shashank/scilab-master_5.5.2
+abs_top_srcdir = /home/shashank/scilab-master_5.5.2
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN =
+ac_ct_F77 = gfortran
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias =
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+cxx_present = yes
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias =
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix = ../../
+top_builddir = ../..
+top_srcdir = ../..
+
+# Where all the Scilab stuff is installed (macros, help, ...)
+mydatadir = $(pkgdatadir)/modules/$(modulename)
+
+# Set AM_* SCI detected settings
+AM_CPPFLAGS = $(SCI_CPPFLAGS)
+AM_CFLAGS = $(SCI_CFLAGS)
+AM_CXXFLAGS = $(SCI_CXXFLAGS)
+# append includes to AM_FFLAGS to manage fortran includes
+AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/
+
+# Tag shared libraries with the Scilab version
+AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION)
+
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
+########################### JAVA ######################################
+#### We are delegating java compilation to ant... Thanks to that
+#### the procedure will be the same with Microsoft Windows (C)
+#### and Linux/Unix
+#######################################################################
+TARGETS_ALL = $(am__append_1)
+
+################ MACROS ######################
+# Rule to build a macro
+# NOT USED AT THE MOMENT
+SUFFIXES = .sci
+
+########### INSTALL DOCUMENTATION ###################
+
+# Install documentation files into the right target
+# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because
+# automake needs the html files to be present which is not the case when
+# we are building Scilab
+
+# Where it should be installed
+pkgdocdir = $(mydatadir)
+
+# What is the mask of the help source
+DOCMASKXML = *.xml
+
+# What is the mask of the MathML sources
+DOCMASKMML = *.mml
+
+########### INSTALL DATA ###################
+# Install macros, help & demos
+# Where it should be installed
+pkgmacrosdir = $(mydatadir)
+# Which directory we process
+MACRODIRS = macros/
+# Mask of the Scilab sources macros
+MACROMASK = *.sci
+# Mask of the Scilab executable sources macros
+MACROBUILDMASK = *.sce
+# Mask of the Scilab compiled macros
+MACROBINMASK = *.bin
+# List of the standard directory for tests
+TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java
+# Where the demos should be installed
+pkgdemosdir = $(mydatadir)
+# List of the standard directory for demos
+DEMOS_DIR = demos
+# List of the standard directory for examples
+EXAMPLES_DIR = examples
+# Where to export JAVA archives (.jar)
+JARDIR = jar/
+# JAR files mask
+JARMASK = *.jar
+# Chapter file
+HELP_CHAPTERDIR = help/
+HELP_CHAPTERFILE = addchapter.sce
+HELP_CHAPTERLANG = en_US fr_FR pt_BR
+
+#### Target ######
+modulename = compatibility_functions
+
+#### compatibility_functions : Conf files ####
+libscicompatibility_functions_la_rootdir = $(mydatadir)
+libscicompatibility_functions_la_root_DATA = license.txt
+
+#### compatibility_functions : init scripts ####
+libscicompatibility_functions_la_etcdir = $(mydatadir)/etc
+libscicompatibility_functions_la_etc_DATA = etc/compatibility_functions.quit etc/compatibility_functions.start
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .sci .bin
+$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/compatibility_functions/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign modules/compatibility_functions/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+$(top_srcdir)/Makefile.incl.am:
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: # $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-libscicompatibility_functions_la_etcDATA: $(libscicompatibility_functions_la_etc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscicompatibility_functions_la_etc_DATA)'; test -n "$(libscicompatibility_functions_la_etcdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscicompatibility_functions_la_etcdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicompatibility_functions_la_etcdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" || exit $$?; \
+ done
+
+uninstall-libscicompatibility_functions_la_etcDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscicompatibility_functions_la_etc_DATA)'; test -n "$(libscicompatibility_functions_la_etcdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscicompatibility_functions_la_etcdir)'; $(am__uninstall_files_from_dir)
+install-libscicompatibility_functions_la_rootDATA: $(libscicompatibility_functions_la_root_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscicompatibility_functions_la_root_DATA)'; test -n "$(libscicompatibility_functions_la_rootdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscicompatibility_functions_la_rootdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicompatibility_functions_la_rootdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)" || exit $$?; \
+ done
+
+uninstall-libscicompatibility_functions_la_rootDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscicompatibility_functions_la_root_DATA)'; test -n "$(libscicompatibility_functions_la_rootdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscicompatibility_functions_la_rootdir)'; $(am__uninstall_files_from_dir)
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-local
+check: check-am
+all-am: Makefile $(DATA) all-local
+installdirs:
+ for dir in "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-local
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local \
+ install-libscicompatibility_functions_la_etcDATA \
+ install-libscicompatibility_functions_la_rootDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am: install-html-local
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libscicompatibility_functions_la_etcDATA \
+ uninstall-libscicompatibility_functions_la_rootDATA
+
+.MAKE: check-am install-am install-strip
+
+.PHONY: all all-am all-local check check-am check-local clean \
+ clean-generic clean-libtool clean-local cscopelist-am ctags-am \
+ distclean distclean-generic distclean-libtool distclean-local \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-data-local \
+ install-dvi install-dvi-am install-exec install-exec-am \
+ install-html install-html-am install-html-local install-info \
+ install-info-am \
+ install-libscicompatibility_functions_la_etcDATA \
+ install-libscicompatibility_functions_la_rootDATA install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags-am uninstall uninstall-am \
+ uninstall-libscicompatibility_functions_la_etcDATA \
+ uninstall-libscicompatibility_functions_la_rootDATA
+
+
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin test
+ if test -d $(mydatadir)/tests; then \
+ @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+ fi
+check-code:
+ if test -f build.xml; then \
+ $(ANT) checkstyle; \
+ fi
+ if test -x "$(SPLINT)"; then \
+ $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \
+ fi
+java:
+# Some configurations needs to export JAVA_HOME in the current env
+ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT); \
+ fi
+
+clean-java:
+# Some configurations needs to export JAVA_HOME in the current env
+ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT) clean; \
+ fi;
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+#swig: $(SWIG_WRAPPERS)
+# @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
+# SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
+# if test -n "$(SWIG_WRAPPERS)"; then \
+# for file in $(SWIG_WRAPPERS) ; do \
+# echo "Swig process of $$file (Java) ..."; \
+# $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \
+# done; \
+# fi
+
+#swig-scilab: $(SWIG_SCILAB_WRAPPERS)
+# @SWIG_OUTDIR=src/swig/; \
+# if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \
+# for file in $(SWIG_SCILAB_WRAPPERS) ; do \
+# echo "Swig process of $$file (Scilab) ..."; \
+# $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \
+# done; \
+# fi
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+#giws: $(GIWS_WRAPPERS)
+# @GIWS_OUTPUTDIR=src/jni/; \
+# MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \
+# if test -n "$(GIWS_WRAPPERS)"; then \
+# for file in $(GIWS_WRAPPERS) ; do \
+# echo "GIWS process of $$file ..."; \
+# if test -z "$(GIWS_OPTIONS)"; then \
+# $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+# else \
+# echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \
+# $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+# fi \
+# done; \
+# fi
+
+#giws-exception:
+# @GIWS_OUTPUTDIR=src/jni/;\
+# echo "GIWS: Generation of exception class ..."; \
+# $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR
+
+macros:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been built"; \
+ else \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\
+ fi)
+
+# Removes the macros
+clean-macros:
+# Removes macros (*.bin generated from .sci)
+ @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \
+ rm -f $(builddir)/$$dir/$(MACROBINMASK); \
+ done
+
+test:
+# More tests could be added here
+ @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT) test; \
+ fi
+
+all-local: $(TARGETS_ALL)
+
+.sci.bin:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been build"; \
+ else \
+ echo "Creating $@"; \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
+ fi )
+
+install-html-local:
+
+install-data-local-local:
+# Mainly for javasci
+ @if test -d $(srcdir)/javadoc; then \
+ cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \
+ fi
+# If the user wants the help sources to be installed
+ @echo "-------- Install of XML sources of help files --------"; \
+ for lang in $(ALL_LINGUAS); do \
+ if test -d $(srcdir)/help/$$lang; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \
+ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \
+ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \
+ done ; \
+ fi; \
+ fi; \
+ done; \
+ @echo "-------- Install of MathML sources --------"; \
+ if test -d $(srcdir)/help/mml/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \
+ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \
+ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \
+ done ; \
+ fi; \
+ fi
+install-data-local:
+# Install the tests
+ @echo "-------- Install tests (if any) --------"; \
+ for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the help chapter
+ @echo "-------- Install the help chapter (if any) --------"; \
+ for lang in $(HELP_CHAPTERLANG); do \
+ HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \
+ if test -f $$HELPFILE; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ fi; \
+ done
+# Install the demos & examples
+ @echo "-------- Install demos & examples (if any) --------"; \
+ for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the macros
+ @echo "-------- Install macros (if any) --------"; \
+ for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ if test -d $(srcdir)/$$dir/; then \
+ FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\
+ if test -n "$(MACROSSPECIALEXT)"; then \
+ specialExtDir=""; \
+ for specialExt in $(MACROSSPECIALEXT); do \
+ specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \
+ done; \
+ FILELIST="$$FILELIST $$specialExtDir"; \
+ fi; \
+ for file in `ls -1 $$FILELIST 2>/dev/null`; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
+ done; \
+ fi; \
+ done
+# Install java files (.jar)
+ @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \
+ echo "-------- Install jar files --------"; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \
+ for file in $(srcdir)/$(JARDIR)$(JARMASK); do\
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
+ done ; \
+ fi
+
+########### CLEAN ###################
+# Clean help (generated automatically by Scilab)
+# It used to clean the macro (clean-macros) but this was causing
+# make clean && make to fail Scilab startup
+clean-local: clean-java
+#clean-local:
+
+distclean-local:
+ rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_*
+
+.PHONY: macros java swig giws
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/modules/compatibility_functions/Makefile.am b/modules/compatibility_functions/Makefile.am
new file mode 100755
index 000000000..355d3854c
--- /dev/null
+++ b/modules/compatibility_functions/Makefile.am
@@ -0,0 +1,20 @@
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Vincent Couvert <vincent.couvert@inria.fr>
+#
+# This file is distributed under the same license as the Scilab package.
+
+include $(top_srcdir)/Makefile.incl.am
+
+#### Target ######
+modulename=compatibility_functions
+
+#### compatibility_functions : Conf files ####
+libscicompatibility_functions_la_rootdir = $(mydatadir)
+libscicompatibility_functions_la_root_DATA = license.txt
+
+
+#### compatibility_functions : init scripts ####
+libscicompatibility_functions_la_etcdir = $(mydatadir)/etc
+libscicompatibility_functions_la_etc_DATA = etc/compatibility_functions.quit etc/compatibility_functions.start
+
diff --git a/modules/compatibility_functions/Makefile.in b/modules/compatibility_functions/Makefile.in
new file mode 100755
index 000000000..19a859fd2
--- /dev/null
+++ b/modules/compatibility_functions/Makefile.in
@@ -0,0 +1,1014 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006 - INRIA - Sylvestre Ledru <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Vincent Couvert <vincent.couvert@inria.fr>
+#
+# This file is distributed under the same license as the Scilab package.
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
+# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+#
+# This file must be used under the terms of the CeCILL.
+# This source file is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at
+# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+#
+
+##########
+### Makefile included stuff
+### Target, variable, suffixes which are supposed to be useful in every makefile.am
+##########
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \
+ $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs
+@NEED_JAVA_TRUE@am__append_1 = java
+subdir = modules/compatibility_functions
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
+ $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \
+ $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \
+ $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
+ $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
+ $(top_srcdir)/m4/intel_compiler.m4 \
+ $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
+ $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
+ $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \
+ $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \
+ $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
+ $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
+ $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = \
+ "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" \
+ "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)"
+DATA = $(libscicompatibility_functions_la_etc_DATA) \
+ $(libscicompatibility_functions_la_root_DATA)
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+ANT = @ANT@
+ANTLR = @ANTLR@
+AR = @AR@
+ARPACK_LIBS = @ARPACK_LIBS@
+ASM3 = @ASM3@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AVALON_FRAMEWORK = @AVALON_FRAMEWORK@
+AWK = @AWK@
+BATIK = @BATIK@
+BLAS_LIBS = @BLAS_LIBS@
+CC = @CC@
+CCACHE = @CCACHE@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHECKSTYLE = @CHECKSTYLE@
+COBERTURA = @COBERTURA@
+COMMONS_BEANUTILS = @COMMONS_BEANUTILS@
+COMMONS_IO = @COMMONS_IO@
+COMMONS_LOGGING = @COMMONS_LOGGING@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CURL_CFLAGS = @CURL_CFLAGS@
+CURL_CONFIG = @CURL_CONFIG@
+CURL_LIBS = @CURL_LIBS@
+CURL_VERSION = @CURL_VERSION@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DOCBOOK_ROOT = @DOCBOOK_ROOT@
+DOXYGEN_BIN = @DOXYGEN_BIN@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECJ = @ECJ@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+FFTW3_LIB = @FFTW3_LIB@
+FFTW_ENABLE = @FFTW_ENABLE@
+FGREP = @FGREP@
+FLEXDOCK = @FLEXDOCK@
+FLIBS = @FLIBS@
+FOP = @FOP@
+FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@
+FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@
+FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@
+FREEHEP_IO = @FREEHEP_IO@
+FREEHEP_UTIL = @FREEHEP_UTIL@
+GENHTML = @GENHTML@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GIWS_BIN = @GIWS_BIN@
+GLUEGEN2_RT = @GLUEGEN2_RT@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GRAPHICS_ENABLE = @GRAPHICS_ENABLE@
+GREP = @GREP@
+GUI_ENABLE = @GUI_ENABLE@
+HDF5_CFLAGS = @HDF5_CFLAGS@
+HDF5_LIBS = @HDF5_LIBS@
+HELP_ENABLE = @HELP_ENABLE@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+JAR = @JAR@
+JAVA = @JAVA@
+JAVAC = @JAVAC@
+JAVAC_DEBUG = @JAVAC_DEBUG@
+JAVADOC = @JAVADOC@
+JAVAH = @JAVAH@
+JAVASCI_ENABLE = @JAVASCI_ENABLE@
+JAVA_ENABLE = @JAVA_ENABLE@
+JAVA_G = @JAVA_G@
+JAVA_HOME = @JAVA_HOME@
+JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@
+JAVA_JNI_LIBS = @JAVA_JNI_LIBS@
+JDB = @JDB@
+JEUCLID_CORE = @JEUCLID_CORE@
+JGRAPHX = @JGRAPHX@
+JHALL = @JHALL@
+JLATEXMATH = @JLATEXMATH@
+JLATEXMATH_FOP = @JLATEXMATH_FOP@
+JOGL2 = @JOGL2@
+JROSETTA_API = @JROSETTA_API@
+JROSETTA_ENGINE = @JROSETTA_ENGINE@
+JUNIT4 = @JUNIT4@
+LAPACK_LIBS = @LAPACK_LIBS@
+LCOV = @LCOV@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LOGGING_LEVEL = @LOGGING_LEVEL@
+LOOKS = @LOOKS@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MATIO_CFLAGS = @MATIO_CFLAGS@
+MATIO_ENABLE = @MATIO_ENABLE@
+MATIO_LIBS = @MATIO_LIBS@
+MKDIR_P = @MKDIR_P@
+MPI_ENABLE = @MPI_ENABLE@
+MSGCAT = @MSGCAT@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OCAMLC = @OCAMLC@
+OCAMLDEP = @OCAMLDEP@
+OCAMLLEX = @OCAMLLEX@
+OCAMLOPT = @OCAMLOPT@
+OCAMLYACC = @OCAMLYACC@
+OPENMPI_CC = @OPENMPI_CC@
+OPENMPI_CFLAGS = @OPENMPI_CFLAGS@
+OPENMPI_CXX = @OPENMPI_CXX@
+OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@
+OPENMPI_LIBS = @OPENMPI_LIBS@
+OPENMP_CFLAGS = @OPENMP_CFLAGS@
+OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
+OPENMP_ENABLE = @OPENMP_ENABLE@
+OPENMP_LIBS = @OPENMP_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCRE_CFLAGS = @PCRE_CFLAGS@
+PCRE_CONFIG = @PCRE_CONFIG@
+PCRE_LIBS = @PCRE_LIBS@
+PCRE_VERSION = @PCRE_VERSION@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+POW_LIB = @POW_LIB@
+PYTHON = @PYTHON@
+RANLIB = @RANLIB@
+RELOCATABLE = @RELOCATABLE@
+RT_LIB = @RT_LIB@
+SAXON = @SAXON@
+SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@
+SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@
+SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@
+SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@
+SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@
+SCIRENDERER = @SCIRENDERER@
+SCIRENDERER_CP = @SCIRENDERER_CP@
+SCI_CFLAGS = @SCI_CFLAGS@
+SCI_CXXFLAGS = @SCI_CXXFLAGS@
+SCI_FFLAGS = @SCI_FFLAGS@
+SCI_LDFLAGS = @SCI_LDFLAGS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SET_RELOCATABLE = @SET_RELOCATABLE@
+SHELL = @SHELL@
+SKINLF = @SKINLF@
+SPLINT = @SPLINT@
+STRIP = @STRIP@
+SWIG_BIN = @SWIG_BIN@
+SWIG_JAVA = @SWIG_JAVA@
+SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@
+SWIG_SCILAB = @SWIG_SCILAB@
+TCLTK_LIBS = @TCLTK_LIBS@
+TCL_INC_PATH = @TCL_INC_PATH@
+TK_INC_PATH = @TK_INC_PATH@
+UMFPACK_CFLAGS = @UMFPACK_CFLAGS@
+UMFPACK_ENABLE = @UMFPACK_ENABLE@
+UMFPACK_LIB = @UMFPACK_LIB@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+WITH_OCAML = @WITH_OCAML@
+WITH_TKSCI = @WITH_TKSCI@
+XCOS_ENABLE = @XCOS_ENABLE@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+XMKMF = @XMKMF@
+XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@
+XML_APIS_EXT = @XML_APIS_EXT@
+XML_CONFIG = @XML_CONFIG@
+XML_FLAGS = @XML_FLAGS@
+XML_LIBS = @XML_LIBS@
+XML_VERSION = @XML_VERSION@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+ac_ct_F77 = @ac_ct_F77@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+cxx_present = @cxx_present@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+
+# Where all the Scilab stuff is installed (macros, help, ...)
+mydatadir = $(pkgdatadir)/modules/$(modulename)
+
+# Set AM_* SCI detected settings
+AM_CPPFLAGS = $(SCI_CPPFLAGS)
+AM_CFLAGS = $(SCI_CFLAGS)
+AM_CXXFLAGS = $(SCI_CXXFLAGS)
+# append includes to AM_FFLAGS to manage fortran includes
+AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/
+
+# Tag shared libraries with the Scilab version
+AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION)
+
+# splint options
+SPLINT_OPTIONS = -weak -booltype BOOL
+
+########################### JAVA ######################################
+#### We are delegating java compilation to ant... Thanks to that
+#### the procedure will be the same with Microsoft Windows (C)
+#### and Linux/Unix
+#######################################################################
+TARGETS_ALL = $(am__append_1)
+
+################ MACROS ######################
+# Rule to build a macro
+# NOT USED AT THE MOMENT
+SUFFIXES = .sci
+
+########### INSTALL DOCUMENTATION ###################
+
+# Install documentation files into the right target
+# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because
+# automake needs the html files to be present which is not the case when
+# we are building Scilab
+
+# Where it should be installed
+pkgdocdir = $(mydatadir)
+
+# What is the mask of the help source
+DOCMASKXML = *.xml
+
+# What is the mask of the MathML sources
+DOCMASKMML = *.mml
+
+########### INSTALL DATA ###################
+# Install macros, help & demos
+# Where it should be installed
+pkgmacrosdir = $(mydatadir)
+# Which directory we process
+MACRODIRS = macros/
+# Mask of the Scilab sources macros
+MACROMASK = *.sci
+# Mask of the Scilab executable sources macros
+MACROBUILDMASK = *.sce
+# Mask of the Scilab compiled macros
+MACROBINMASK = *.bin
+# List of the standard directory for tests
+TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java
+# Where the demos should be installed
+pkgdemosdir = $(mydatadir)
+# List of the standard directory for demos
+DEMOS_DIR = demos
+# List of the standard directory for examples
+EXAMPLES_DIR = examples
+# Where to export JAVA archives (.jar)
+JARDIR = jar/
+# JAR files mask
+JARMASK = *.jar
+# Chapter file
+HELP_CHAPTERDIR = help/
+HELP_CHAPTERFILE = addchapter.sce
+HELP_CHAPTERLANG = en_US fr_FR pt_BR
+
+#### Target ######
+modulename = compatibility_functions
+
+#### compatibility_functions : Conf files ####
+libscicompatibility_functions_la_rootdir = $(mydatadir)
+libscicompatibility_functions_la_root_DATA = license.txt
+
+#### compatibility_functions : init scripts ####
+libscicompatibility_functions_la_etcdir = $(mydatadir)/etc
+libscicompatibility_functions_la_etc_DATA = etc/compatibility_functions.quit etc/compatibility_functions.start
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .sci .bin
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/compatibility_functions/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign modules/compatibility_functions/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+$(top_srcdir)/Makefile.incl.am:
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-libscicompatibility_functions_la_etcDATA: $(libscicompatibility_functions_la_etc_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscicompatibility_functions_la_etc_DATA)'; test -n "$(libscicompatibility_functions_la_etcdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscicompatibility_functions_la_etcdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicompatibility_functions_la_etcdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" || exit $$?; \
+ done
+
+uninstall-libscicompatibility_functions_la_etcDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscicompatibility_functions_la_etc_DATA)'; test -n "$(libscicompatibility_functions_la_etcdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscicompatibility_functions_la_etcdir)'; $(am__uninstall_files_from_dir)
+install-libscicompatibility_functions_la_rootDATA: $(libscicompatibility_functions_la_root_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(libscicompatibility_functions_la_root_DATA)'; test -n "$(libscicompatibility_functions_la_rootdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libscicompatibility_functions_la_rootdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicompatibility_functions_la_rootdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)" || exit $$?; \
+ done
+
+uninstall-libscicompatibility_functions_la_rootDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(libscicompatibility_functions_la_root_DATA)'; test -n "$(libscicompatibility_functions_la_rootdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(libscicompatibility_functions_la_rootdir)'; $(am__uninstall_files_from_dir)
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-local
+check: check-am
+all-am: Makefile $(DATA) all-local
+installdirs:
+ for dir in "$(DESTDIR)$(libscicompatibility_functions_la_etcdir)" "$(DESTDIR)$(libscicompatibility_functions_la_rootdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-local
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local \
+ install-libscicompatibility_functions_la_etcDATA \
+ install-libscicompatibility_functions_la_rootDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am: install-html-local
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libscicompatibility_functions_la_etcDATA \
+ uninstall-libscicompatibility_functions_la_rootDATA
+
+.MAKE: check-am install-am install-strip
+
+.PHONY: all all-am all-local check check-am check-local clean \
+ clean-generic clean-libtool clean-local cscopelist-am ctags-am \
+ distclean distclean-generic distclean-libtool distclean-local \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-data-local \
+ install-dvi install-dvi-am install-exec install-exec-am \
+ install-html install-html-am install-html-local install-info \
+ install-info-am \
+ install-libscicompatibility_functions_la_etcDATA \
+ install-libscicompatibility_functions_la_rootDATA install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags-am uninstall uninstall-am \
+ uninstall-libscicompatibility_functions_la_etcDATA \
+ uninstall-libscicompatibility_functions_la_rootDATA
+
+
+# This target enables tests for Scilab
+check-local: $(top_builddir)/scilab-bin test
+ if test -d $(mydatadir)/tests; then \
+ @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \
+ fi
+check-code:
+ if test -f build.xml; then \
+ $(ANT) checkstyle; \
+ fi
+ if test -x "$(SPLINT)"; then \
+ $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \
+ fi
+@NEED_JAVA_TRUE@java:
+# Some configurations needs to export JAVA_HOME in the current env
+@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \
+@NEED_JAVA_TRUE@ $(ANT); \
+@NEED_JAVA_TRUE@ fi
+
+@NEED_JAVA_TRUE@clean-java:
+# Some configurations needs to export JAVA_HOME in the current env
+@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
+@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \
+@NEED_JAVA_TRUE@ $(ANT) clean; \
+@NEED_JAVA_TRUE@ fi;
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+@SWIG_TRUE@swig: $(SWIG_WRAPPERS)
+@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
+@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
+@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \
+@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \
+@SWIG_TRUE@ echo "Swig process of $$file (Java) ..."; \
+@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \
+@SWIG_TRUE@ done; \
+@SWIG_TRUE@ fi
+
+@SWIG_TRUE@swig-scilab: $(SWIG_SCILAB_WRAPPERS)
+@SWIG_TRUE@ @SWIG_OUTDIR=src/swig/; \
+@SWIG_TRUE@ if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \
+@SWIG_TRUE@ for file in $(SWIG_SCILAB_WRAPPERS) ; do \
+@SWIG_TRUE@ echo "Swig process of $$file (Scilab) ..."; \
+@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \
+@SWIG_TRUE@ done; \
+@SWIG_TRUE@ fi
+
+# If the user request for the SWIG generation of the wrappers Java => C/C++
+# We call the target swig-build on the variable SWIG_WRAPPERS
+
+@GIWS_TRUE@giws: $(GIWS_WRAPPERS)
+@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/; \
+@GIWS_TRUE@ MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \
+@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \
+@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \
+@GIWS_TRUE@ echo "GIWS process of $$file ..."; \
+@GIWS_TRUE@ if test -z "$(GIWS_OPTIONS)"; then \
+@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+@GIWS_TRUE@ else \
+@GIWS_TRUE@ echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \
+@GIWS_TRUE@ $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \
+@GIWS_TRUE@ fi \
+@GIWS_TRUE@ done; \
+@GIWS_TRUE@ fi
+
+@GIWS_TRUE@giws-exception:
+@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\
+@GIWS_TRUE@ echo "GIWS: Generation of exception class ..."; \
+@GIWS_TRUE@ $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR
+
+macros:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been built"; \
+ else \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\
+ fi)
+
+# Removes the macros
+clean-macros:
+# Removes macros (*.bin generated from .sci)
+ @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \
+ rm -f $(builddir)/$$dir/$(MACROBINMASK); \
+ done
+
+test:
+# More tests could be added here
+ @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
+ if test -f build.xml -a $$USEANT -eq 1; then \
+ $(ANT) test; \
+ fi
+
+all-local: $(TARGETS_ALL)
+
+.sci.bin:
+ -@( if test ! -x $(top_builddir)/scilab-bin; then \
+ echo "Error : Cannot build $< : Scilab has not been build"; \
+ else \
+ echo "Creating $@"; \
+ $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
+ fi )
+
+install-html-local:
+
+install-data-local-local:
+# Mainly for javasci
+ @if test -d $(srcdir)/javadoc; then \
+ cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \
+ fi
+# If the user wants the help sources to be installed
+@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \
+@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \
+@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \
+@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \
+@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \
+@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \
+@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \
+@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \
+@INSTALL_HELP_XML_TRUE@ done ; \
+@INSTALL_HELP_XML_TRUE@ fi; \
+@INSTALL_HELP_XML_TRUE@ fi; \
+@INSTALL_HELP_XML_TRUE@ done; \
+@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \
+@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \
+@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \
+@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \
+@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \
+@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \
+@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \
+@INSTALL_HELP_XML_TRUE@ done ; \
+@INSTALL_HELP_XML_TRUE@ fi; \
+@INSTALL_HELP_XML_TRUE@ fi
+install-data-local:
+# Install the tests
+ @echo "-------- Install tests (if any) --------"; \
+ for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the help chapter
+ @echo "-------- Install the help chapter (if any) --------"; \
+ for lang in $(HELP_CHAPTERLANG); do \
+ HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \
+ if test -f $$HELPFILE; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
+ echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
+ fi; \
+ done
+# Install the demos & examples
+ @echo "-------- Install demos & examples (if any) --------"; \
+ for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \
+ if test -d $(srcdir)/$$dir/; then \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
+ for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
+ if test -d "$(srcdir)/$$dir/$$file"; then \
+ echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \
+ $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \
+ else \
+ echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
+ fi \
+ done; \
+ fi; \
+ done
+# Install the macros
+ @echo "-------- Install macros (if any) --------"; \
+ for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
+ $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
+ if test -d $(srcdir)/$$dir/; then \
+ FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\
+ if test -n "$(MACROSSPECIALEXT)"; then \
+ specialExtDir=""; \
+ for specialExt in $(MACROSSPECIALEXT); do \
+ specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \
+ done; \
+ FILELIST="$$FILELIST $$specialExtDir"; \
+ fi; \
+ for file in `ls -1 $$FILELIST 2>/dev/null`; do \
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
+ done; \
+ fi; \
+ done
+# Install java files (.jar)
+ @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \
+ echo "-------- Install jar files --------"; \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \
+ for file in $(srcdir)/$(JARDIR)$(JARMASK); do\
+ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
+ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
+ done ; \
+ fi
+
+########### CLEAN ###################
+# Clean help (generated automatically by Scilab)
+# It used to clean the macro (clean-macros) but this was causing
+# make clean && make to fail Scilab startup
+@NEED_JAVA_TRUE@clean-local: clean-java
+@NEED_JAVA_FALSE@clean-local:
+
+distclean-local:
+ rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_*
+
+.PHONY: macros java swig giws
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/modules/compatibility_functions/compatibility_functions.iss b/modules/compatibility_functions/compatibility_functions.iss
new file mode 100755
index 000000000..c0ab2bc13
--- /dev/null
+++ b/modules/compatibility_functions/compatibility_functions.iss
@@ -0,0 +1,40 @@
+;
+; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+; Copyright (C) INRIA - Allan CORNET
+; Copyright (C) DIGITEO - 2010 - Allan CORNET
+;
+; This file must be used under the terms of the CeCILL.
+; This source file is licensed as described in the file COPYING, which
+; you should have received as part of this distribution. The terms
+; are also available at
+; http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+;
+;--------------------------------------------------------------------------------------------------------------
+; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required)
+;
+;--------------------------------------------------------------------------------------------------------------
+; compatibility_functions module
+;--------------------------------------------------------------------------------------------------------------
+;
+#define COMPATFUNCTIONS "compatibility_functions"
+;
+Source: modules\{#COMPATFUNCTIONS}\license.txt; DestDir: {app}\modules\{#COMPATFUNCTIONS}; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#COMPATFUNCTIONS}\etc\{#COMPATFUNCTIONS}.quit; DestDir: {app}\modules\{#COMPATFUNCTIONS}\etc; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\etc\{#COMPATFUNCTIONS}.start; DestDir: {app}\modules\{#COMPATFUNCTIONS}\etc; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#COMPATFUNCTIONS}\includes\*.h; DestDir: {app}\modules\{#COMPATFUNCTIONS}\includes; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#COMPATFUNCTIONS}\macros\lib; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\macros\names; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\macros\*.bin; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\macros\*.sci; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\macros\buildmacros.sce; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\macros\buildmacros.bat; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+Source: modules\{#COMPATFUNCTIONS}\macros\cleanmacros.bat; DestDir: {app}\modules\{#COMPATFUNCTIONS}\macros; Components: {#COMPN_SCILAB}
+;
+;Source: modules\{#COMPATFUNCTIONS}\demos\*.*; DestDir: {app}\modules\{#COMPATFUNCTIONS}\demos; Flags: recursesubdirs; Components: {#COMPN_SCILAB}
+;
+Source: modules\{#COMPATFUNCTIONS}\tests\*.*; DestDir: {app}\modules\{#COMPATFUNCTIONS}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS}
+;
+;--------------------------------------------------------------------------------------------------------------
diff --git a/modules/compatibility_functions/etc/compatibility_functions.quit b/modules/compatibility_functions/etc/compatibility_functions.quit
new file mode 100755
index 000000000..ab83f0c89
--- /dev/null
+++ b/modules/compatibility_functions/etc/compatibility_functions.quit
@@ -0,0 +1,10 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007-2008 - INRIA
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
diff --git a/modules/compatibility_functions/etc/compatibility_functions.start b/modules/compatibility_functions/etc/compatibility_functions.start
new file mode 100755
index 000000000..2ac8d257a
--- /dev/null
+++ b/modules/compatibility_functions/etc/compatibility_functions.start
@@ -0,0 +1,19 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2007 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function compatibility_functilib = startModule()
+
+//Load functions libraries
+// =============================================================================
+ load(SCI+"/modules/compatibility_functions/macros/lib");
+
+endfunction
+
+compatibility_functilib = startModule();
+clear startModule;
diff --git a/modules/compatibility_functions/help/en_US/addchapter.sce b/modules/compatibility_functions/help/en_US/addchapter.sce
new file mode 100755
index 000000000..6783cc57a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Compatibility Functions",SCI+"/modules/compatibility_functions/help/en_US",%T);
+
diff --git a/modules/compatibility_functions/help/en_US/firstnonsingleton.xml b/modules/compatibility_functions/help/en_US/firstnonsingleton.xml
new file mode 100755
index 000000000..f930dbdc7
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/firstnonsingleton.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="firstnonsingleton">
+ <refnamediv>
+ <refname>firstnonsingleton</refname>
+ <refpurpose>Finds first dimension which is not 1</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>[dim]=firstnonsingleton(A[,opt])</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>dim</term>
+ <listitem>
+ <para>first dimension of A which is not 1</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>A</term>
+ <listitem>
+ <para>a variable of any Scilab data type</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>opt</term>
+ <listitem>
+ <para>a character string giving the type of output we want</para>
+ <variablelist>
+ <varlistentry>
+ <term>"num"</term>
+ <listitem>
+ <para>returned value is a numerical value</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>"str"</term>
+ <listitem>
+ <para>returned value is a character string if possible ("r" instead of 1 and "c" instead of 2)</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ This function is used by <literal>mfile2sci</literal> to emulate Matlab behavior under Scilab, particularly
+ for functions which treat the values along the first non-singleton dimension of A in Matlab
+ while in Scilab they treat all values of A.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example"><![CDATA[
+A = [1 2 3;4 5 6];
+// Scilab max
+M = max(A)
+// Matlab max emulation
+M = max(A,firstnonsingleton(A))
+ ]]></programlisting>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mstr2sci.xml b/modules/compatibility_functions/help/en_US/mstr2sci.xml
new file mode 100755
index 000000000..678072720
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mstr2sci.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mstr2sci">
+ <refnamediv>
+ <refname>mstr2sci</refname>
+ <refpurpose>character string matrix to character matrix conversion</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>a=mstr2sci(txt)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>txt</term>
+ <listitem>
+ <para>character string or string matrix</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>character vector or matrix</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ This function converts a Scilab character string to a vector of characters.
+ Result is the Scilab equivalent for a Matlab string.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mstr2sci</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_0.xml b/modules/compatibility_functions/help/en_US/mtlb_0.xml
new file mode 100755
index 000000000..5a1694b3a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_0.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_0">
+ <refnamediv>
+ <refname>mtlb_0</refname>
+ <refpurpose>Matlab non-conjugate transposition emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab non-conjugate transposition behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character strings operands: The <literal>.'</literal> operator is used to transpose whole
+ character strings in Scilab while Matlab realizes the transposition of each character.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_0(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A.'</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_0</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix
+ <literal>mtlb_0(A)</literal> may be replaced by <literal>A.'</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_0</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_a.xml b/modules/compatibility_functions/help/en_US/mtlb_a.xml
new file mode 100755
index 000000000..9037abfbb
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_a.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_a">
+ <refnamediv>
+ <refname>mtlb_a</refname>
+ <refpurpose>Matlab addition emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab addition behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string operands: The <literal>+</literal>
+ operator is used into Scilab to catenate character strings, while
+ Matlab realizes the sum of the operands ASCII codes.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With empty matrix: In Scilab, if one of the
+ operands is an empty matrix the result of the addition is the
+ other operand. In Matlab if one of the operand is an empty
+ matrix the result of the addition should be an error or an empty
+ matrix.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_a(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A+B</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_a</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are character strings,
+ <literal>mtlb_a(A,B)</literal> may be replaced by <literal>asciimat(A)+asciimat(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If both <literal>A</literal> and <literal>B</literal> are not empty matrices
+ <literal>mtlb_a(A,B)</literal> may be replaced by <literal>A+B</literal>,
+ else <literal>mtlb_a(A,B)</literal> may be replaced by
+ <literal>[]</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If mtlb_mode==%T, then <literal>mtlb_a(A,B)</literal>
+ may be replaced by <literal>A+B</literal> in any case where
+ <literal>A</literal> and <literal>B</literal> are not character string matrices.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_a</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mtlb_mode">mtlb_mode</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_all.xml b/modules/compatibility_functions/help/en_US/mtlb_all.xml
new file mode 100755
index 000000000..4a3b6dc65
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_all.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_all">
+ <refnamediv>
+ <refname>mtlb_all</refname>
+ <refpurpose>Matlab all emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>all</literal> and Scilab <literal>and</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When used with one input (<literal>all(A)</literal>), Matlab <literal>all</literal> treats the values along the first
+ non-singleton dimension of A as vectors while Scilab <literal>and</literal> treats all A values.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When used with two inputs (<literal>all(A,dim)</literal>), Matlab tolerates <literal>dim</literal> to be greater than
+ the number of dimensions of A while Scilab returns an error message in this case.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>R = mtlb_all(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>all(A[,dim])</literal> 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 <literal>mtlb_all</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar or a vector
+ <literal>R = mtlb_all(A)</literal> may be replaced by <literal>R = and(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a matrix
+ <literal>R = mtlb_all(A)</literal> may be replaced by <literal>R = and(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a hypermatrix
+ <literal>R = mtlb_all(A)</literal> may be replaced by <literal>R = and(A,firstnonsingleton(A))</literal>
+ or by <literal>R = and(A,user_defined_value)</literal> if the first non-singleton dimensions of A is known.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is less equal to the number of dimensions of A
+ <literal>R = mtlb_all(A,dim)</literal> may be replaced by <literal>R = and(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is greater than then number of dimensions of A
+ <literal>R = mtlb_all(A,dim)</literal> may be replaced by <literal>R = A&lt;&gt;0</literal> if A is not an empty matrix or by <literal>R = A</literal> if A is an empty matrix.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_all</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_any.xml b/modules/compatibility_functions/help/en_US/mtlb_any.xml
new file mode 100755
index 000000000..48a2556ce
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_any.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_any">
+ <refnamediv>
+ <refname>mtlb_any</refname>
+ <refpurpose>Matlab any emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>any</literal> and Scilab <literal>or</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When used with one input (<literal>any(A)</literal>), Matlab <literal>any</literal> treats the values along the first
+ non-singleton dimension of A as vectors while Scilab <literal>or</literal> treats all A values.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When used with two inputs (<literal>any(A,dim)</literal>), Matlab tolerates <literal>dim</literal> to be greater than
+ the number of dimensions of A while Scilab returns an error message in this case.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>R = mtlb_any(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>any(A[,dim])</literal> 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 <literal>mtlb_any</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar or a vector
+ <literal>R = mtlb_any(A)</literal> may be replaced by <literal>R = or(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a matrix
+ <literal>R = mtlb_any(A)</literal> may be replaced by <literal>R = or(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a hypermatrix
+ <literal>R = mtlb_any(A)</literal> may be replaced by <literal>R = or(A,firstnonsingleton(A))</literal>
+ or by <literal>R = or(A,user_defined_value)</literal> if the first non-singleton dimensions of A is known.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is less equal to the number of dimensions of A
+ <literal>R = mtlb_any(A,dim)</literal> may be replaced by <literal>R = or(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is greater than then number of dimensions of A
+ <literal>R = mtlb_any(A,dim)</literal> may be replaced by <literal>R = A&lt;&gt;0</literal> if A is not an empty matrix or by <literal>R = A</literal> if A is an empty matrix.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_any</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_axis.xml b/modules/compatibility_functions/help/en_US/mtlb_axis.xml
new file mode 100755
index 000000000..f588baa2f
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_axis.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006 - INRIA - Farid BELAHCENE
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_axis">
+ <refnamediv>
+ <refname>mtlb_axis</refname>
+ <refpurpose>Matlab axis emulation
+ function
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>mtlb_axis(X)
+ mtlb_axis(st)
+ mtlb_axis(axeshandle, ...)
+ [mode,visibility,direction]=mtlb_axis('state')
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>a vector of reals ([xmin xmax ymin ymax] or [xmin xmax ymin
+ ymax zmin zmax])
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <variablelist>
+ <varlistentry>
+ <term>st</term>
+ <listitem>
+ <para>a string ('auto', 'manual', 'tight', 'ij', 'xy', 'equal',
+ 'square', 'vis3d', 'off', 'on')
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <variablelist>
+ <varlistentry>
+ <term>axeshandle</term>
+ <listitem>
+ <para>handle of the current axes entity</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>axis</literal> have not a Scilab equivalent function.
+ </para>
+ <para>
+ The function <literal>mtlb_axis(...)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>axis(...)</literal> 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 (axis
+ <literal>fill</literal>, axis <literal>image</literal> and axis <literal>normal</literal>
+ are not implemented). If you want to have a more efficient code it is
+ possible to replace <literal>mtlb_axis</literal> call by <literal>get(axeshandle,
+ prop)
+ </literal>
+ call (prop is an axis property, see
+ <link linkend="axis_properties">axis_properties</link>)
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_axis</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_beta.xml b/modules/compatibility_functions/help/en_US/mtlb_beta.xml
new file mode 100755
index 000000000..b71bcdd57
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_beta.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_beta">
+ <refnamediv>
+ <refname>mtlb_beta</refname>
+ <refpurpose>Matlab beta emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>beta</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With inputs having different sizes: Matlab <literal>beta</literal> input parameters must have
+ the same size unless one of them is a scalar. In Scilab <literal>beta</literal> input parameters
+ must have the same size even if one of them is a scalar.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_beta(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>beta(A,B)</literal> 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 <literal>mtlb_beta</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar but not <literal>B</literal>
+ <literal>Y = mtlb_beta(A,B)</literal> may be replaced by <literal>C=B;C(:)=A;Y = mtlb_beta(C,B);</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>B</literal> is a scalar but not <literal>A</literal>
+ <literal>Y = mtlb_beta(A,B)</literal> may be replaced by <literal>C=A;C(:)=B;Y = mtlb_beta(A,C);</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_beta</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_box.xml b/modules/compatibility_functions/help/en_US/mtlb_box.xml
new file mode 100755
index 000000000..71b86f71a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_box.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_box">
+ <refnamediv>
+ <refname>mtlb_box</refname>
+ <refpurpose>Matlab box emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>box</literal> but it can be easyly replaced.
+ </para>
+ <para>
+ The function <literal>mtlb_box([axes_handle[,val]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>box([axes_handle[,va]]l)</literal> 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 <literal>mtlb_box</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called without input parameters,
+ <literal>mtlb_box()</literal> may be replaced by <literal>a=gca();if a.box=="on" then a.box="off";else a.box="on";end;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>axes_handle</literal> is a character string,
+ <literal>mtlb_box(axes_handle)</literal> may be replaced by <literal>a=gca();a.box=convstr(axes_handle,"l");</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>axes_handle</literal> is a graphic handle
+ <literal>mtlb_box(axes_handle)</literal> may be replaced by
+ <literal>if axes_handle.box=="on" then axes_handle.box="off";else axes_handle.box="on";end;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>axes_handle</literal> is a graphic handle and <literal>val</literal> is a character string
+ <literal>mtlb_box(axes_handle,val)</literal> may be replaced by <literal>axes_handle.box=convstr(val,"l");</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_box</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="axes_properties">axes_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_close.xml b/modules/compatibility_functions/help/en_US/mtlb_close.xml
new file mode 100755
index 000000000..d32e22226
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_close.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_close">
+ <refnamediv>
+ <refname>mtlb_close</refname>
+ <refpurpose>Matlab close emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Scilab equivalent for Matlab <literal>close</literal> is different according to the current figure type (uicontrol or graphic one).
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When current figure is a uicontrol one: Scilab equivalent for Matlab <literal>close</literal> is <literal>close</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When current figure is a graphic one: Scilab equivalent for Matlab <literal>close</literal>
+ is <literal>xdel</literal> or <literal>delete</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ In Scilab we do not get an error status.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_close([h])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>close([h])</literal> 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 <literal>mtlb_close</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>h</literal> is a uicontrol figure
+ <literal>mtlb_close(h)</literal> may be replaced by <literal>close(h)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>h</literal> is a graphic figure
+ <literal>mtlb_close(h)</literal> may be replaced by <literal>delete(h)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_close</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="xdel">xdel</link>
+ </member>
+ <member>
+ <link linkend="delete">delete</link>
+ </member>
+ <member>
+ <link linkend="winsid">winsid</link>
+ </member>
+ <member>
+ <link linkend="close">close</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_colordef.xml b/modules/compatibility_functions/help/en_US/mtlb_colordef.xml
new file mode 100755
index 000000000..1f37ef0e7
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_colordef.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_colordef">
+ <refnamediv>
+ <refname>mtlb_colordef</refname>
+ <refpurpose>Matlab colordef emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>colordef</literal> but there are equivalent instructions.
+ </para>
+ <para>
+ The function <literal>h = mtlb_colordef(color_option)</literal> or
+ <literal>h = mtlb_colordef(fig,color_option)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>colordef(color_option)</literal> or
+ <literal>colordef(fig,color_option)</literal> 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 <literal>mtlb_colordef</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input parameter, if <literal>color_option</literal> is equal to "black" or "none"
+ <literal>mtlb_colordef(color_option)</literal> may be replaced by <literal>fig = gcf();fig.background = -1;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input parameter, if <literal>color_option</literal> is equal to "white"
+ <literal>mtlb_colordef(color_option)</literal> may be replaced by <literal>fig = gcf();fig.background = -2;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two input parameters, if <literal>fig</literal> is a graphic handle and
+ <literal>color_option</literal> is equal to "black" or "none"
+ <literal>mtlb_colordef(color_option)</literal> may be replaced by <literal>fig.background = -1;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two input parameters, if <literal>fig</literal> is a graphic handle and
+ <literal>color_option</literal> is equal to "white"
+ <literal>mtlb_colordef(color_option)</literal> may be replaced by <literal>fig.background = -2;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two input parameters, if <literal>fig</literal> is equal to "new" and
+ <literal>color_option</literal> is equal to "black" or "none"
+ <literal>mtlb_colordef(color_option)</literal> may be replaced by <literal>fig = scf(max(winsid())+1);fig.background = -1;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two input parameters, if <literal>fig</literal> is equal to "new" and
+ <literal>color_option</literal> is equal to "white"
+ <literal>mtlb_colordef(color_option)</literal> may be replaced by <literal>fig = scf(max(winsid())+1);fig.background = -2;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one output parameter <literal>h</literal>, just add <literal>h = fig;</literal> after equivalent instructions.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_colordef</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="figure_properties">figure_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_cumprod.xml b/modules/compatibility_functions/help/en_US/mtlb_cumprod.xml
new file mode 100755
index 000000000..c8350c0e6
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_cumprod.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_cumprod">
+ <refnamediv>
+ <refname>mtlb_cumprod</refname>
+ <refpurpose>Matlab cumprod emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>cumprod</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When used with one input (<literal>cumprod(A)</literal>), Matlab <literal>cumprod</literal>
+ treats the values along the first non-singleton dimension of A as vectors while
+ Scilab <literal>cumprod</literal> treats all A values.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When used with two inputs (<literal>cumprod(A,dim)</literal>), Matlab tolerates <literal>dim</literal>
+ to be greater than the number of dimensions of A while Scilab returns an error message in this case.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>R = mtlb_cumprod(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>cumprod(A[,dim])</literal> 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 <literal>mtlb_cumprod</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is less equal to the number of dimensions of A
+ <literal>R = mtlb_cumprod(A,dim)</literal> may be replaced by <literal>R = cumprod(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is greater than then number of dimensions of A
+ <literal>R = mtlb_cumprod(A,dim)</literal> may be replaced by <literal>R = A</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_cumprod</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_cumsum.xml b/modules/compatibility_functions/help/en_US/mtlb_cumsum.xml
new file mode 100755
index 000000000..3403f03f7
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_cumsum.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_cumsum">
+ <refnamediv>
+ <refname>mtlb_cumsum</refname>
+ <refpurpose>Matlab cumsum emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>cumsum</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When used with one input (<literal>cumsum(A)</literal>), Matlab <literal>cumsum</literal>
+ treats the values along the first non-singleton dimension of A as vectors while
+ Scilab <literal>cumsum</literal> treats all A values.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When used with two inputs (<literal>cumsum(A,dim)</literal>), Matlab tolerates <literal>dim</literal>
+ to be greater than the number of dimensions of A while Scilab returns an error message in this case.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>R = mtlb_cumsum(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>cumsum(A[,dim])</literal> 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 <literal>mtlb_cumsum</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is less equal to the number of dimensions of A
+ <literal>R = mtlb_cumsum(A,dim)</literal> may be replaced by <literal>R = cumsum(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>dim</literal> is greater than then number of dimensions of A
+ <literal>R = mtlb_cumsum(A,dim)</literal> may be replaced by <literal>R = A</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_cumsum</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_dec2hex.xml b/modules/compatibility_functions/help/en_US/mtlb_dec2hex.xml
new file mode 100755
index 000000000..5665403bf
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_dec2hex.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_dec2hex">
+ <refnamediv>
+ <refname>mtlb_dec2hex</refname>
+ <refpurpose>Matlab dec2hex emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>dec2hex</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With empty matrix: Matlab <literal>dec2hex</literal> returns "" but in Scilab you get [].
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With complex inputs: Matlab <literal>dec2hex</literal> automatically removes complex part of inputs but not Scilab one.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Matlab <literal>dec2hex</literal> always returns a row vector but in Scilab <literal>dec2hex</literal>
+ returns a value which have the same size as the input.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Matlab <literal>dec2hex</literal> can have two inputs but not Scilab one.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_dec2hex(D[,N])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>dec2hex(D[,N])</literal> 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 <literal>mtlb_dec2hex</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>D</literal> is not an empty matrix,
+ <literal>mtlb_dec2hex(D)</literal> may be replaced by
+ <literal>matrix(dec2hex(real(D)),-1,1)</literal> if <literal>D</literal> is complex and by
+ <literal>matrix(dec2hex(D),-1,1)</literal> else.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_dec2hex</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_delete.xml b/modules/compatibility_functions/help/en_US/mtlb_delete.xml
new file mode 100755
index 000000000..17db373f5
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_delete.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_delete">
+ <refnamediv>
+ <refname>mtlb_delete</refname>
+ <refpurpose>Matlab delete emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ The function <literal>mtlb_delete(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>delete(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_delete</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string
+ <literal>mtlb_delete(A)</literal> may be replaced by <literal>mdelete(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a graphic handle
+ <literal>mtlb_delete(A)</literal> may be replaced by <literal>delete(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_delete</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mdelete">mdelete</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_diag.xml b/modules/compatibility_functions/help/en_US/mtlb_diag.xml
new file mode 100755
index 000000000..0bbd25233
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_diag.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_diag">
+ <refnamediv>
+ <refname>mtlb_diag</refname>
+ <refpurpose>Matlab diag emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>diag</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string matrices: Scilab <literal>diag</literal> function considers each character string as an object
+ while Matlab considers each character individually.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>y = mtlb_diag(x[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>y = diag(x[,dim])</literal> 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 <literal>mtlb_diag</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>x</literal> is not a character string matrix
+ <literal>y = mtlb_diag(x[,dim])</literal> may be replaced by <literal>y = diag(x[,dim])</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_diag</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_diff.xml b/modules/compatibility_functions/help/en_US/mtlb_diff.xml
new file mode 100755
index 000000000..4405972dc
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_diff.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_diff">
+ <refnamediv>
+ <refname>mtlb_diff</refname>
+ <refpurpose>Matlab diff emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>diff</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With two input parameters: Scilab <literal>diff</literal> considers all values of first input as a vector
+ what Matlab does not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With three input parameters: If dimension of first input along dimension given by third parameter
+ reaches 1 before n interations
+ have been made,Matlab switches to next non-singleton dimension what Scilab does not.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_diff(A[,n[,dim]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>diff(A[,n[,dim]])</literal> 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 <literal>mtlb_diff</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With two inputs, if <literal>A</literal> is a scalar or a vector
+ <literal>mtlb_diff(A,n)</literal> may be replaced by <literal>diff(A,n)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With three inputs, if size of A along dimension given by <literal>dim</literal> can not reach 1
+ <literal>mtlb_diff(A,n,dim)</literal> may be replaced by <literal>diff(A,n,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_diff</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_dir.xml b/modules/compatibility_functions/help/en_US/mtlb_dir.xml
new file mode 100755
index 000000000..9c9f84b0f
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_dir.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_dir">
+ <refnamediv>
+ <refname>mtlb_dir</refname>
+ <refpurpose>Matlab dir emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>dir</literal> behave differently:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When result is stored in a variable: Matlab <literal>dir</literal> returns a structure but Scilab
+ <literal>dir</literal> returns a 'dir' tlist, so data can not be extracted in the same way.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_dir([path])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>dir([path])</literal> when output is stored in a variable.
+ There is no replacement possibility for it, else (when <literal>mtlb_dir</literal> is replaced by <literal>dir</literal>)
+ data can not be extracted like in Matlab. For example, Scilab equivalent for Matlab
+ <literal>L=dir;file_name=L(1).name;</literal> is <literal>L=dir();file_name=L.name(1);</literal>.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_dir</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_double.xml b/modules/compatibility_functions/help/en_US/mtlb_double.xml
new file mode 100755
index 000000000..a03366b9c
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_double.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_double">
+ <refnamediv>
+ <refname>mtlb_double</refname>
+ <refpurpose>Matlab double emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>double</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string input: Scilab <literal>double</literal> does not work with this type of input while Matlab <literal>double</literal> returns a matrix of ASCII codes.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With boolean input: Scilab <literal>double</literal> does not work with this type of input while Matlab <literal>double</literal> returns a matrix of double values.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_double(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>double(A)</literal> when it was not
+ possible to know what were theinput 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 <literal>mtlb_double</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string,
+ <literal>mtlb_double(A)</literal> may be replaced by <literal>asciimat(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a boolean matrix,
+ <literal>mtlb_double(A)</literal> may be replaced by <literal>bool2s(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a double matrix,
+ <literal>mtlb_double(A)</literal> may be replaced by <literal>A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_double</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="asciimat">asciimat</link>
+ </member>
+ <member>
+ <link linkend="bool2s">bool2s</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_e.xml b/modules/compatibility_functions/help/en_US/mtlb_e.xml
new file mode 100755
index 000000000..73a046065
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_e.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_e">
+ <refnamediv>
+ <refname>mtlb_e</refname>
+ <refpurpose>Matlab extraction emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab extraction behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When extracting data from a matrix with a vector as index: Matlab returns
+ a row vector and Scilab returns a column vector.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When extracting data from a character string matrix: due to the fact that character string matrices
+ in Matlab can be addressed as any other matrix (each character can be adressed), extraction in such a type of
+ matrix does not differ from other. But in Scilab it can't be done so and <literal>part</literal>
+ function has to be used.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_e(B,k)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A=B(k)</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_e</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>B</literal> is a vector
+ <literal>A=mtlb_e(B,k)</literal> may be replaced by <literal>A=B(k)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>B</literal> is a matrix
+ <literal>A=mtlb_e(B,k)</literal> may be replaced by <literal>A=B(k).'</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>B</literal> is a character string matrix and
+ k is a scalar or a vector
+ <literal>A=mtlb_e(B,k)</literal> may be replaced by <literal>A=part(B,k)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_e</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ <member>
+ <link linkend="part">part</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_echo.xml b/modules/compatibility_functions/help/en_US/mtlb_echo.xml
new file mode 100755
index 000000000..2d7f02da3
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_echo.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_echo">
+ <refnamediv>
+ <refname>mtlb_echo</refname>
+ <refpurpose>Matlab echo emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no equivalent for Matlab <literal>echo</literal> in Scilab but some cases can be replaced by calls to Scilab <literal>mode</literal>:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>echo</literal>: is equivalent to Scilab <literal>mode(abs(mode()-1))</literal> for scripts and non-compiled functions
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>echo on</literal>: is equivalent to Scilab <literal>mode(1)</literal> for scripts and non-compiled functions
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>echo off</literal>: is equivalent to Scilab <literal>mode(0)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_echo(arg1[,arg2])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>echo arg1 [arg2]</literal> 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 <literal>mtlb_echo</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>arg1</literal> is equal to "on"
+ <literal>mtlb_echo(arg1)</literal> may be replaced by <literal>mode(1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>arg1</literal> is equal to "off"
+ <literal>mtlb_echo(arg1)</literal> may be replaced by <literal>mode(0)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_echo</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mode">mode</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_eval.xml b/modules/compatibility_functions/help/en_US/mtlb_eval.xml
new file mode 100755
index 000000000..d36aa97c6
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_eval.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_eval">
+ <refnamediv>
+ <refname>mtlb_eval</refname>
+ <refpurpose>Matlab eval emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Scilab equivalent for Matlab <literal>eval</literal> is different according to its inputs and outputs
+ </para>
+ <para>
+ The function <literal>mtlb_eval(str1,str2)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>eval</literal> because 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 <literal>mtlb_eval</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input and no output,
+ <literal>mtlb_eval(str1)</literal> may be replaced by <literal>evstr(str1)</literal>
+ if <literal>str1</literal> is a valid Scilab expression
+ or by <literal>execstr(str1)</literal>
+ if <literal>str1</literal> is a valid Scilab instruction.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input and one output,
+ <literal>val=mtlb_eval(str1)</literal> may be replaced by <literal>val=evstr(str1)</literal>
+ if <literal>str1</literal> is a valid Scilab instruction.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs and no output,
+ <literal>mtlb_eval(str1,str2)</literal> may be replaced by:
+ <literal>if execstr(str1,"errcatch")&lt;&gt;0 then execstr(str2);end</literal>
+ if <literal>str1</literal> and <literal>str2</literal> are valid Scilab instructions.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with more than one output and one input,
+ <literal>[val1,val2,...]=mtlb_eval(str1)</literal> may be replaced by
+ <literal>execstr("[val1,val2,...]"+str1)</literal>
+ if <literal>str1</literal> is a valid Scilab instruction.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs and more than one output,
+ <literal>[val1,val2,...]=mtlb_eval(str1,str2)</literal> may be replaced by:
+ </para>
+ <programlisting role=""><![CDATA[
+if execstr("[val1,val2,...]"+str1,"errcatch")<>0 then
+ execstr("[val1,val2,...]"+str2);
+end
+ ]]></programlisting>
+ <para>
+ if <literal>str1</literal> and <literal>str2</literal> are valid Scilab instructions.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_eval</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="evstr">evstr</link>
+ </member>
+ <member>
+ <link linkend="execstr">execstr</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_exist.xml b/modules/compatibility_functions/help/en_US/mtlb_exist.xml
new file mode 100755
index 000000000..41d2c49b7
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_exist.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_exist">
+ <refnamediv>
+ <refname>mtlb_exist</refname>
+ <refpurpose>Matlab exist emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>exist</literal> except when input is a variable.
+ Scilab <literal>mtlb_exist</literal> is a partial emulation of of this function.
+ </para>
+ <para>
+ The function <literal>r = mtlb_exist(nam[,tp])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>exist(nam[,tp])</literal> 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 <literal>mtlb_exist</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input and if <literal>nam</literal> is a variable name,
+ <literal>mtlb_exist(nam)</literal> may be replaced by <literal>exists(nam)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_exist</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="exists">exists</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_eye.xml b/modules/compatibility_functions/help/en_US/mtlb_eye.xml
new file mode 100755
index 000000000..b1d96949f
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_eye.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_eye">
+ <refnamediv>
+ <refname>mtlb_eye</refname>
+ <refpurpose>Matlab eye emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>eye</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>eye</literal> returns a n x n matrix while Scilab returns a 1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_eye(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>eye(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_eye</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_eye(A)</literal> may be replaced by <literal>eye(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_eye(A)</literal> may be replaced by <literal>eye(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_eye</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_false.xml b/modules/compatibility_functions/help/en_US/mtlb_false.xml
new file mode 100755
index 000000000..c36431ff7
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_false.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_false">
+ <refnamediv>
+ <refname>mtlb_false</refname>
+ <refpurpose>Matlab false emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>false</literal>. However, Scilab <literal>zeros</literal>
+ returns a result interpreted in an equivalent way for Scilab.
+ </para>
+ <para>
+ Matlab <literal>false</literal> and Scilab <literal>zeros</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>false</literal> returns a n x n matrix of zeros
+ while Scilab <literal>zeros</literal> returns a 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_false(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>false(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_false</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_false(A)</literal> may be replaced by <literal>zeros(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_false(A)</literal> may be replaced by <literal>zeros(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_false</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fft.xml b/modules/compatibility_functions/help/en_US/mtlb_fft.xml
new file mode 100755
index 000000000..4575e6ba2
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fft.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fft">
+ <refnamediv>
+ <refname>mtlb_fft</refname>
+ <refpurpose>Matlab fft emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>fft</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With one input parameter: If input is a scalar or vector Scilab equivalent for Matlab <literal>fft</literal>
+ is <literal>fft(...,-1)</literal> else if input is a matrix Scilab equivalent for Matlab <literal>fft</literal>
+ is <literal>fft(...,-1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_fft(X[,n,[job]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fft(X[,n,[job]])</literal> 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 <literal>mtlb_fft</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>X</literal> is a scalar or a vector
+ <literal>mtlb_fft(X,-1)</literal> may be replaced by <literal>fft(X,-1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>X</literal> is a matrix
+ <literal>mtlb_fft(X,-1)</literal> may be replaced by <literal>fft(X,-1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fft</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fftshift.xml b/modules/compatibility_functions/help/en_US/mtlb_fftshift.xml
new file mode 100755
index 000000000..5cc4d2678
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fftshift.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fftshift">
+ <refnamediv>
+ <refname>mtlb_fftshift</refname>
+ <refpurpose>Matlab fftshift emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>fftshift</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string input: due to the fact that character strings are not considered in the same way in Matlab and Scilab, results can be different for this kind of input.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With two inputs: Matlab <literal>fftshift</literal> can work even if <literal>dim</literal> parameter is greater than number of dimensions of first input.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_fftshift(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fftshift(A[,dim])</literal> 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 <literal>mtlb_fftshift</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix,
+ <literal>mtlb_fftshift(A)</literal> may be replaced by <literal>fftshift(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix and <literal>dim</literal> is not greater than <literal>size(size(a),"*")</literal>,
+ <literal>mtlb_fftshift(A,dim)</literal> may be replaced by <literal>fftshift(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fftshift</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_find.xml b/modules/compatibility_functions/help/en_US/mtlb_find.xml
new file mode 100755
index 000000000..47c766574
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_find.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_find">
+ <refnamediv>
+ <refname>mtlb_find</refname>
+ <refpurpose>Matlab find emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>find</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With column vectors and matrices as input: Matlab <literal>find</literal> returns column
+ vectors while Scilab returns row vectors.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with three outputs: Matlab <literal>find</literal> can have three outputs but Scilab not.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>[i[,j[,v]]] = mtlb_find(B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>[i[,j[,v]]] = find(B)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_find</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one output, if <literal>B</literal> is a row vector
+ <literal>i = mtlb_find(B)</literal> may be replaced by <literal>i = find(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one output, if <literal>B</literal> is not a row vector
+ <literal>i = mtlb_find(B)</literal> may be replaced by <literal>i = matrix(find(B),-1,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two outputs, if <literal>B</literal> is a row vector
+ <literal>[i,j] = mtlb_find(B)</literal> may be replaced by <literal>[i,j] = find(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two outputs, if <literal>B</literal> is not a row vector
+ <literal>[i,j] = mtlb_find(B)</literal> may be replaced by
+ <literal>[i,j] = find(B);i = matrix(i,-1,1);j = matrix(j,-1,1);</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_find</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_findstr.xml b/modules/compatibility_functions/help/en_US/mtlb_findstr.xml
new file mode 100755
index 000000000..f86da5aa8
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_findstr.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_findstr">
+ <refnamediv>
+ <refname>mtlb_findstr</refname>
+ <refpurpose>Matlab findstr emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>findstr</literal>.
+ </para>
+ <para>
+ The function <literal>mtlb_findstr(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>findstr(A,B)</literal> when it was not
+ possible to know what were the operands/inputs[CUSTOM] 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 <literal>mtlb_findstr</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is always longer than <literal>B</literal>
+ (i.e. <literal>findstr</literal> can be replaced by <literal>strfind</literal> in Matlab,
+ <literal>mtlb_findstr(A,B)</literal> may be replaced by <literal>strindex(A,B)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_findstr</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fliplr.xml b/modules/compatibility_functions/help/en_US/mtlb_fliplr.xml
new file mode 100755
index 000000000..788b789b5
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fliplr.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fliplr">
+ <refnamediv>
+ <refname>mtlb_fliplr</refname>
+ <refpurpose>Matlab fliplr emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>fliplr</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string matrices: due to te fact that Scilab and Matlab do not consider character string matrices in the same way, result can be different for input of this type.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_fliplr(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fliplr(A)</literal> 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 <literal>mtlb_fliplr</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix,
+ <literal>mtlb_fliplr(A)</literal> may be replaced by <literal>A(:,$:-1:1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fliplr</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fopen.xml b/modules/compatibility_functions/help/en_US/mtlb_fopen.xml
new file mode 100755
index 000000000..c95bbfd09
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fopen.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fopen">
+ <refnamediv>
+ <refname>mtlb_fopen</refname>
+ <refpurpose>Matlab fopen emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>fopen</literal> and Scilab <literal>mopen</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Scilab function returns no usable error message
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Scilab file identified does not exist in case of error but Matlab one is set to <literal>-1</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Matlab function can work with inputs which do not exist in Scilab such as permission options...
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_fopen(filename,permission)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>mopen(filename,permission)</literal> 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 <literal>mtlb_fopen</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If error message is not used and no error can occurs,
+ <literal>mtlb_fopen(filename,permission)</literal> may be replaced by <literal>mopen(filename,permission,0)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fopen</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_format.xml b/modules/compatibility_functions/help/en_US/mtlb_format.xml
new file mode 100755
index 000000000..0c7e15952
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_format.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_format">
+ <refnamediv>
+ <refname>mtlb_format</refname>
+ <refpurpose>Matlab format emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>format</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Some Matlab formats do not exist in Scilab
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Calling sequence for <literal>format</literal> is different in Scilab and Matlab
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_format(type,prec)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>format([type prec])</literal> 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 <literal>mtlb_format</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>type=""</literal> and <literal>prec=""</literal>
+ <literal>mtlb_format("","")</literal> may be replaced by <literal>format("v",6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="+"</literal> and <literal>prec=""</literal>
+ <literal>mtlb_format("+","")</literal> may be replaced by <literal>format(6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="long"</literal> and <literal>prec=""</literal>
+ <literal>mtlb_format("long","")</literal> may be replaced by <literal>format(16)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="long"</literal> and <literal>prec="e"</literal>
+ <literal>mtlb_format("long","e")</literal> may be replaced by <literal>format("e"16)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="long"</literal> and <literal>prec="g"</literal>
+ <literal>mtlb_format("long","g")</literal> may be replaced by <literal>format("e"16)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="short"</literal> and <literal>prec=""</literal>
+ <literal>mtlb_format("short","")</literal> may be replaced by <literal>format(6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="short"</literal> and <literal>prec="e"</literal>
+ <literal>mtlb_format("short","e")</literal> may be replaced by <literal>format("e"6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>type="short"</literal> and <literal>prec="g"</literal>
+ <literal>mtlb_format("short","g")</literal> may be replaced by <literal>format("e"6)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_format</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fprintf.xml b/modules/compatibility_functions/help/en_US/mtlb_fprintf.xml
new file mode 100755
index 000000000..74ed3e552
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fprintf.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fprintf">
+ <refnamediv>
+ <refname>mtlb_fprintf</refname>
+ <refpurpose>Matlab fprintf emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab exact equivalent for Matlab <literal>fprintf</literal>. Scilab <literal>mfprintf</literal>
+ and Matlab <literal>fprintf</literal> behave differently in many cases, but they are equivalents in some cases.
+ </para>
+ <para>
+ The function <literal>mtlb_fprintf(varargin)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fprintf</literal>. This function will
+ determine the correct semantic at run time. It is sometimes possible to replace
+ calls to <literal>mtlb_fprintf</literal> by calls to <link linkend="mfprintf">mfprintf</link>.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fprintf</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mfprintf">mfprintf</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fread.xml b/modules/compatibility_functions/help/en_US/mtlb_fread.xml
new file mode 100755
index 000000000..b2231f791
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fread.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fread">
+ <refnamediv>
+ <refname>mtlb_fread</refname>
+ <refpurpose>Matlab fread emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>fread</literal>. Scilab <literal>mget</literal>
+ and Matlab <literal>fread</literal> behave differently in many cases, but they are equivalents in some cases.
+ </para>
+ <para>
+ The function <literal>mtlb_fread(varargin)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fread</literal>. This function will
+ determine the correct semantic at run time. It is sometimes possible to replace
+ calls to <literal>mtlb_fread</literal> by calls to <link linkend="mget">mget</link>.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fread</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mget">mget</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fscanf.xml b/modules/compatibility_functions/help/en_US/mtlb_fscanf.xml
new file mode 100755
index 000000000..44ff0fe7f
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fscanf.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fscanf">
+ <refnamediv>
+ <refname>mtlb_fscanf</refname>
+ <refpurpose>Matlab fscanf emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab exact equivalent for Matlab <literal>fscanf</literal>. Scilab <literal>mfscanf</literal>
+ and Matlab <literal>fscanf</literal> behave differently in many cases, but they are equivalents in some cases.
+ </para>
+ <para>
+ The function <literal>mtlb_fscanf(varargin)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fscanf</literal>. This function will
+ determine the correct semantic at run time. It is sometimes possible to replace
+ calls to <literal>mtlb_fscanf</literal> by calls to <link linkend="mfscanf">mfscanf</link>.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fscanf</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mfscanf">mfscanf</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_full.xml b/modules/compatibility_functions/help/en_US/mtlb_full.xml
new file mode 100755
index 000000000..3924e8146
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_full.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_full">
+ <refnamediv>
+ <refname>mtlb_full</refname>
+ <refpurpose>Matlab full emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>full</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character strings input: Matlab <literal>full</literal> can be used with character string input
+ while Scilab function cannot.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With boolean input: Matlab <literal>full</literal> can be used with boolean input
+ while Scilab function cannot.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_full(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>full(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_full</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a double matrix
+ <literal>mtlb_full(A)</literal> may be replaced by <literal>full(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a boolean matrix
+ <literal>mtlb_full(A)</literal> may be replaced by <literal>full(bool2s(A))</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_full</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_fwrite.xml b/modules/compatibility_functions/help/en_US/mtlb_fwrite.xml
new file mode 100755
index 000000000..e8bc7bf9a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_fwrite.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_fwrite">
+ <refnamediv>
+ <refname>mtlb_fwrite</refname>
+ <refpurpose>Matlab fwrite emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>fwrite</literal>. Scilab <literal>mput</literal>
+ and Matlab <literal>fwrite</literal> behave differently in many cases, but they are equivalents in some cases.
+ </para>
+ <para>
+ The function <literal>mtlb_fwrite(varargin)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>fwrite</literal>. This function will
+ determine the correct semantic at run time. It is sometimes possible to replace
+ calls to <literal>mtlb_fwrite</literal> by calls to <link linkend="mput">mput</link>.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_fwrite</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mput">mput</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_grid.xml b/modules/compatibility_functions/help/en_US/mtlb_grid.xml
new file mode 100755
index 000000000..b4711840d
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_grid.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_grid">
+ <refnamediv>
+ <refname>mtlb_grid</refname>
+ <refpurpose>Matlab grid emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>grid</literal> but there are equivalent instructions.
+ </para>
+ <para>
+ The function <literal>mtlb_grid(flag_or_handle[,flag])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>grid(flag_or_handle[,flag])</literal> 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 <literal>mtlb_grid</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With one input, if <literal>flag</literal> is equal to "on"
+ <literal>mtlb_grid(flag)</literal> may be replaced by <literal>set(gca(),"grid",[1 1])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With one input, if <literal>flag</literal> is equal to "off"
+ <literal>mtlb_grid(flag)</literal> may be replaced by <literal>set(gca(),"grid",[-1 -1])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With two inputs, if <literal>flag</literal> is equal to "on"
+ <literal>mtlb_grid(axes_handle,flag)</literal> may be replaced by <literal>axes_handle.grid=[1 1]</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With two inputs, if <literal>arg2</literal> is equal to "off"
+ <literal>mtlb_grid(axes_handle,flag)</literal> may be replaced by <literal>axes_handle.grid=[-1 -1]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_grid</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="axes_properties">axes_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_hold.xml b/modules/compatibility_functions/help/en_US/mtlb_hold.xml
new file mode 100755
index 000000000..71ea7024f
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_hold.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_hold">
+ <refnamediv>
+ <refname>mtlb_hold</refname>
+ <refpurpose>Matlab hold emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>hold</literal> but there are equivalent instructions.
+ </para>
+ <para>
+ The function <literal>mtlb_hold(flag)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>hold flag</literal> 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 <literal>mtlb_hold</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>flag</literal> is equal to "on"
+ <literal>mtlb_hold(flag)</literal> may be replaced by <literal>set(gca(),"auto_clear","off")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>flag</literal> is equal to "off"
+ <literal>mtlb_hold(flag)</literal> may be replaced by <literal>set(gca(),"auto_clear","on")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_hold</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="axes_properties">axes_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_i.xml b/modules/compatibility_functions/help/en_US/mtlb_i.xml
new file mode 100755
index 000000000..1501657bc
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_i.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_i">
+ <refnamediv>
+ <refname>mtlb_i</refname>
+ <refpurpose>Matlab insertion emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab insertion behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When inserting a matrix in a variable: Matlab automatically adjusts output
+ variable to fit with matrix to insert but not Scilab.
+ For example, with A=1, A([1,2,3,4])=[1,2;3,4]) returns an error in Scilab
+ while in Matlab we get A=[1,2,3,4]. If values miss comparing to indexes,
+ Matlab fills output value with 0.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When inserting data into a character string matrix: due to the fact that character string matrices
+ in Matlab can be addressed as any other matrix (each character can be adressed), insertion in such a type of
+ matrix does not differ from other. But in Scilab it can't be done so...<literal>mtlb_is</literal> is an alternative.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>A=mtlb_i(A,k,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A(k)=B</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_i</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a vector
+ <literal>A=mtlb_i(A,k,B)</literal> may be replaced by <literal>A(k)=B</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are both row or column vectors
+ <literal>A=mtlb_i(A,k,B)</literal> may be replaced by <literal>A(k)=B</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_i</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ <member>
+ <link linkend="mtlb_is">mtlb_is</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_ifft.xml b/modules/compatibility_functions/help/en_US/mtlb_ifft.xml
new file mode 100755
index 000000000..a5e874b27
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_ifft.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_ifft">
+ <refnamediv>
+ <refname>mtlb_ifft</refname>
+ <refpurpose>Matlab ifft emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>ifft</literal> and Scilab <literal>fft</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With one input parameter: If input is a scalar or vector Scilab equivalent for Matlab <literal>ifft(A)</literal>
+ is <literal>fft(A,1)</literal> else if input is a matrix Scilab equivalent for Matlab <literal>fft</literal>
+ is <literal>fft(A,1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_ifft(X[,n,[job]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>ifft(X[,n,[job]])</literal> 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 <literal>mtlb_ifft</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>X</literal> is a scalar or a vector
+ <literal>mtlb_ifft(X,1)</literal> may be replaced by <literal>fft(X,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>X</literal> is a matrix
+ <literal>mtlb_ifft(X,1)</literal> may be replaced by <literal>fft(X,1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_ifft</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_imp.xml b/modules/compatibility_functions/help/en_US/mtlb_imp.xml
new file mode 100755
index 000000000..f2657c116
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_imp.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_imp">
+ <refnamediv>
+ <refname>mtlb_imp</refname>
+ <refpurpose>Matlab colon emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab colon behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With empty matrices: The <literal>:</literal> operator must be used with scalars in Scilab and
+ gives an error message when used with empty matrices while Matlab returns [] in these cases.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_imp(A,B[,C])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A:B[:C]</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_imp</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal>, <literal>B</literal> and <literal>C</literal> are not empty matrices
+ <literal>mtlb_imp(A,B[,C])</literal> may be replaced by <literal>A:B[:C]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_imp</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_int16.xml b/modules/compatibility_functions/help/en_US/mtlb_int16.xml
new file mode 100755
index 000000000..8e9461464
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_int16.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_int16">
+ <refnamediv>
+ <refname>mtlb_int16</refname>
+ <refpurpose>Matlab int16 emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>int16</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>int16</literal> can be used with complex values what Scilab function can not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%inf</literal>: Matlab <literal>int16</literal> returns 32767 and Scilab returns -32768.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%nan</literal>: Matlab <literal>int16</literal> returns 0 and Scilab returns -32768.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>-%nan</literal>: Matlab <literal>int16</literal> returns 0 and Scilab returns -32768.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_int16(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>int16(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_int16</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> does not contain <literal>%inf</literal>, <literal>%nan</literal> or <literal>-%nan</literal> values
+ <literal>mtlb_int16(A)</literal> may be replaced by <literal>int16(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_int16</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_int32.xml b/modules/compatibility_functions/help/en_US/mtlb_int32.xml
new file mode 100755
index 000000000..c1f17c4d4
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_int32.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_int32">
+ <refnamediv>
+ <refname>mtlb_int32</refname>
+ <refpurpose>Matlab int32 emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>int32</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>int32</literal> can be used with complex values what Scilab function can not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%inf</literal>: Matlab <literal>int32</literal> returns 2147483647 and Scilab returns -2147483648.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%nan</literal>: Matlab <literal>int32</literal> returns 0 and Scilab returns -2147483648.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>-%nan</literal>: Matlab <literal>int32</literal> returns 0 and Scilab returns -2147483648.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_int32(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>int32(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_int32</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> does not contain <literal>%inf</literal>, <literal>%nan</literal> or <literal>-%nan</literal> values
+ <literal>mtlb_int32(A)</literal> may be replaced by <literal>int32(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_int32</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_int8.xml b/modules/compatibility_functions/help/en_US/mtlb_int8.xml
new file mode 100755
index 000000000..fc5d90710
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_int8.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_int8">
+ <refnamediv>
+ <refname>mtlb_int8</refname>
+ <refpurpose>Matlab int8 emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>int8</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>int8</literal> can be used with complex values what Scilab function can not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%inf</literal>: Matlab <literal>int8</literal> returns 127 and Scilab returns 0.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>-%inf</literal>: Matlab <literal>int8</literal> returns -128 and Scilab returns 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_int8(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>int8(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_int8</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> does not contain <literal>%inf</literal> or <literal>-%inf</literal> values
+ <literal>mtlb_int8(A)</literal> may be replaced by <literal>int8(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_int8</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_is.xml b/modules/compatibility_functions/help/en_US/mtlb_is.xml
new file mode 100755
index 000000000..007dc4f9a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_is.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_is">
+ <refnamediv>
+ <refname>mtlb_is</refname>
+ <refpurpose>Matlab string insertion emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab insertion behave differently for strings due to the fact
+ that they do not consider character strings in the same way.
+ </para>
+ <para>
+ The function <literal>str = mtlb_is(sto,sfrom,i,j)</literal> is used by
+ <literal>mfile2sci</literal> to replace insertion operations for character strings. This function will
+ determine the correct semantic at run time. There is no replacement possibility for it.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_is</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ <member>
+ <link linkend="mtlb_i">mtlb_i</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_isa.xml b/modules/compatibility_functions/help/en_US/mtlb_isa.xml
new file mode 100755
index 000000000..636a0ef8d
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_isa.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_isa">
+ <refnamediv>
+ <refname>mtlb_isa</refname>
+ <refpurpose>Matlab isa emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>isa</literal> but some equivalent expressions can be used when the object "class" exists in Scilab.
+ </para>
+ <para>
+ The function <literal>mtlb_isa(OBJ,class)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>isa(OBJ,class)</literal> 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 <literal>mtlb_isa</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "logical",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>type(OBJ)==4</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "char",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>type(OBJ)==10</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "numeric",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>or(type(OBJ)==[1,5,8])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "intX" (X being equal to 8, 16, or 32),
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>typeof(OBJ)=="intX"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "uintX" (X being equal to 8, 16, or 32),
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>typeof(OBJ)=="uintX"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "single",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>type(OBJ)==1</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "double",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>type(OBJ)==1</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "cell",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>typeof(OBJ)=="ce"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "struct",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>typeof(OBJ)=="st"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "function_handle",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>type(OBJ)==13</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "sparse",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>type(OBJ)==5</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>class</literal> is equal to "lti",
+ <literal>mtlb_isa(OBJ,class)</literal> may be replaced by <literal>typeof(OBJ)=="state-space"</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_isa</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="type">type</link>
+ </member>
+ <member>
+ <link linkend="typeof">typeof</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_isfield.xml b/modules/compatibility_functions/help/en_US/mtlb_isfield.xml
new file mode 100755
index 000000000..e3de8eae9
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_isfield.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_isfield">
+ <refnamediv>
+ <refname>mtlb_isfield</refname>
+ <refpurpose>Matlab isfield emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>isfield(st,f)</literal> and equivalent expressions behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>st</literal> is not a structure: Scilab equivalent returns an error message but Matlab returns <literal>0</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_isfield(st,f)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>isfield(st,f)</literal> 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 <literal>mtlb_isfield</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>st</literal> is a structure
+ <literal>tf = mtlb_isfield(st,f)</literal> may be replaced by <literal>allf=getfield(1,st);tf=or(allf(3:$)==f);</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>st</literal> is not a structure
+ <literal>tf = mtlb_isfield(st,f)</literal> may be replaced by <literal>tf=%F;</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_isfield</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getfield">getfield</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_isletter.xml b/modules/compatibility_functions/help/en_US/mtlb_isletter.xml
new file mode 100755
index 000000000..bb450e86a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_isletter.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_isletter">
+ <refnamediv>
+ <refname>mtlb_isletter</refname>
+ <refpurpose>Matlab isletter emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>isletter</literal> and equivalent instructions are quite ugly, so
+ <literal>mfile2sci</literal> uses <literal>mtlb_isletter(A)</literal> to replace <literal>isletter(A)</literal>. If you want to have a
+ more efficient code it is possible to replace <literal>mtlb_isletter</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string
+ <literal>tf = mtlb_isletter(A)</literal> may be replaced by <literal>tf = zeros(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string
+ <literal>tf = mtlb_isletter(A)</literal> may be replaced by
+ <literal>tf = (asciimat(A)&gt;=65&amp;asciimat(A)&lt;=90)|(asciimat(A)&gt;=97&amp;asciimat(A)&lt;=122)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_isletter</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_isspace.xml b/modules/compatibility_functions/help/en_US/mtlb_isspace.xml
new file mode 100755
index 000000000..77a65133d
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_isspace.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_isspace">
+ <refnamediv>
+ <refname>mtlb_isspace</refname>
+ <refpurpose>Matlab isspace emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab function equivalent for Matlab <literal>isspace</literal> but its behavior can be reproduced.
+ </para>
+ <para>
+ The function <literal>mtlb_isspace(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>isspace(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_isspace</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string matrix
+ <literal>mtlb_isspace(A)</literal> may be replaced by <literal>asciimat(A)==32</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix
+ <literal>mtlb_isspace(A)</literal> may be replaced by <literal>zeros(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_isspace</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="asciimat">asciimat</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_l.xml b/modules/compatibility_functions/help/en_US/mtlb_l.xml
new file mode 100755
index 000000000..dce980550
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_l.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_l">
+ <refnamediv>
+ <refname>mtlb_l</refname>
+ <refpurpose>Matlab left division emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab left division behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string operands: The <literal>\</literal>
+ operator can not be used into Scilab with character strings, while
+ in Matlab it can. And in this case, result is transposed in a very strange way...
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_l(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A\B</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_l</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If both <literal>A</literal> and <literal>B</literal> are not character strings
+ <literal>mtlb_l(A,B)</literal> may be replaced by <literal>A\B</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_l</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_legendre.xml b/modules/compatibility_functions/help/en_US/mtlb_legendre.xml
new file mode 100755
index 000000000..35a79b2d4
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_legendre.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006 - INRIA - Farid BELAHCENE
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_legendre">
+ <refnamediv>
+ <refname>mtlb_legendre</refname>
+ <refpurpose>Matlab legendre emulation
+ function
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>P = mtlb_legendre(n,X)
+ P = mtlb_legendre(n,X[,normflag])
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>a scalar, vector, matrix or hypermatrix with elements in
+ [-1,1]
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <variablelist>
+ <varlistentry>
+ <term>n</term>
+ <listitem>
+ <para>a positive scalar integer</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <variablelist>
+ <varlistentry>
+ <term>normflag</term>
+ <listitem>
+ <para>a string ('sch' or 'norm')</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>legendre</literal> behave differently in some
+ particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Scilab <literal>legendre(m,n,X)</literal> evaluates the
+ <literal>legendre</literal> function of degree n and order n for the
+ <literal>X</literal> elements. Matlab <literal>legendre(n,X)</literal>
+ evaluates the Legendre functions of degree <literal>n</literal> and
+ order <literal>m</literal>=0,1,...,n. (emulated by mtlb_legendre) for
+ the <literal>X</literal> elements.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The option normflag= <literal>'sch'</literal> does not exist for
+ Scilab legendre (emulated)
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>X</literal> is a hypermatrix then Scilab
+ <literal>legendre(n,X)</literal> does not work (emulated)
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_legendre(n,X[,normflag])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>legendre(n,X[,normflag])</literal>
+ 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
+ <literal>mtlb_legendre</literal> call:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>X</literal> is a scalar, a vector or a matrix
+ <literal>mtlb_legendre(n,X[,'norm']) </literal>may be replaced by
+ <literal>legendre(n,0:n,X[,'norm'])</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_legendre</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_linspace.xml b/modules/compatibility_functions/help/en_US/mtlb_linspace.xml
new file mode 100755
index 000000000..dbc63578d
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_linspace.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_linspace">
+ <refnamediv>
+ <refname>mtlb_linspace</refname>
+ <refpurpose>Matlab linspace emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>linspace</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string inputs: Matlab <literal>linspace(A,B[,n])</literal> returns a character string vector if <literal>A</literal>
+ and/or <literal>B</literal> are character strings, but Scilab function does not work with such inputs.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_linspace(A,B[,n])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>linspace(A,B[,n])</literal> 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 <literal>mtlb_linspace</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are not character strings
+ <literal>mtlb_linspace(A,B[,n])</literal> may be replaced by <literal>linspace(A,B[,n])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> or <literal>B</literal> are character strings
+ <literal>mtlb_linspace(A,B[,n])</literal> may be replaced by <literal>ascii(linspace(ascii(A),ascii(B)[,n]))</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_linspace</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="ascii">ascii</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_logic.xml b/modules/compatibility_functions/help/en_US/mtlb_logic.xml
new file mode 100755
index 000000000..55d3c1b1e
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_logic.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_logic">
+ <refnamediv>
+ <refname>mtlb_logic</refname>
+ <refpurpose>Matlab logical operators emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab logical operator behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex operands: The <literal>&lt;</literal>, <literal>&lt;=</literal>, <literal>&gt;</literal> and <literal>&gt;=</literal>
+ operators can not be used into Scilab with complex operands, while
+ in Matlab they can. And in this case, only real part of complex operands is compared.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With empty matrices: If both operands of <literal>&lt;</literal>, <literal>&lt;=</literal>,
+ <literal>&gt;</literal> and <literal>&gt;=</literal>
+ operators are empty matrices, Scilab returns an error message, while
+ Matlab returns an empty matrix. For operators <literal>==</literal> and <literal>~=</literal>,
+ if at least one operand is an empty matrix, Matlab returns [] while Scilab returns a boolean value %T or %F.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_logic(A,symbol,B)</literal> (with "symbol" a character string
+ containing the operator symbol) is used by
+ <literal>mfile2sci</literal> to replace <literal>A symbol B</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_logic</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If both <literal>A</literal> and <literal>B</literal> are not complex values nor empty matrices
+ <literal>mtlb_logic(A,symbol,B)</literal> may be replaced by <literal>A symbol B</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_logic</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_logical.xml b/modules/compatibility_functions/help/en_US/mtlb_logical.xml
new file mode 100755
index 000000000..cf007b9f0
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_logical.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_logical">
+ <refnamediv>
+ <refname>mtlb_logical</refname>
+ <refpurpose>Matlab logical emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent function for Matlab <literal>logical</literal> but its behavior can be easyly reproduced.
+ </para>
+ <para>
+ The function <literal>mtlb_logical(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>logical(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_logical</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a boolean matrix
+ <literal>mtlb_logical(A)</literal> may be replaced by <literal>A</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not an empty matrix
+ <literal>mtlb_logical(A)</literal> may be replaced by <literal>A&lt;&gt;[]</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is an empty matrix
+ <literal>mtlb_logical(A)</literal> may be replaced by <literal>[]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_logical</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_lower.xml b/modules/compatibility_functions/help/en_US/mtlb_lower.xml
new file mode 100755
index 000000000..88eea9338
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_lower.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_lower">
+ <refnamediv>
+ <refname>mtlb_lower</refname>
+ <refpurpose>Matlab lower emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>lower(A)</literal> and Scilab <literal>convstr(A,"l")</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a chacarter string matrix: Matlab <literal>lower</literal> can be used with a
+ not-character-string <literal>A</literal> but not Scilab <literal>convstr</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_lower(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>lower(A)</literal> 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 <literal>mtlb_lower</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string matrix
+ <literal>mtlb_lower(A)</literal> may be replaced by <literal>convstr(A,"l")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix
+ <literal>mtlb_lower(A)</literal> may be replaced by <literal>A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_lower</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="convstr">convstr</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_max.xml b/modules/compatibility_functions/help/en_US/mtlb_max.xml
new file mode 100755
index 000000000..90eec163d
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_max.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_max">
+ <refnamediv>
+ <refname>mtlb_max</refname>
+ <refpurpose>Matlab max emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>max</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex values: Matlab <literal>max</literal> can be used with complex values but not Scilab function.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input: Matlab <literal>max</literal> threats values along the first
+ non-singleton dimension but Scilab threats all input values.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs: if one is an empty matrix, Scilab returns an error message but Matlab returns [].
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with three inputs: if <literal>dim</literal> parameter is greater than number of
+ dimensions of first input, Scilab returns an error message and Matlab returns the first input.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>[r[,k]] = mtlb_max(A[,B[,dim]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>[r[,k]] = max(A[,B[,dim]])</literal> 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 <literal>mtlb_max</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a vector or a scalar
+ <literal>[r[,k]] = mtlb_max(A)</literal> may be replaced by <literal>max(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a matrix
+ <literal>[r[,k]] = mtlb_max(A)</literal> may be replaced by <literal>max(A,"r")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs, if <literal>A</literal> and <literal>B</literal> are real matrices and not empty matrices
+ <literal>[r[,k]] = mtlb_max(A,B)</literal> may be replaced by <literal>max(A,B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with three inputs, if <literal>dim</literal> is lesser than the number of dimensions of <literal>A</literal>
+ <literal>[r[,k]] = mtlb_max(A,[],dim)</literal> may be replaced by <literal>max(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_max</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_min.xml b/modules/compatibility_functions/help/en_US/mtlb_min.xml
new file mode 100755
index 000000000..ff819b1b6
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_min.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_min">
+ <refnamediv>
+ <refname>mtlb_min</refname>
+ <refpurpose>Matlab min emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>min</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex values: Matlab <literal>min</literal> can be used with complex values but not Scilab function.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input: Matlab <literal>min</literal> threats values along the first
+ non-singleton dimension but Scilab threats all input values.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs: if one is an empty matrix, Scilab returns an error message but Matlab returns [].
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with three inputs: if <literal>dim</literal> parameter is greater than number of
+ dimensions of first input, Scilab returns an error message and Matlab returns the first input.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>[r[,k]] = mtlb_min(A[,B[,dim]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>[r[,k]] = min(A[,B[,dim]])</literal> 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 <literal>mtlb_min</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a vector or a scalar
+ <literal>[r[,k]] = mtlb_min(A)</literal> may be replaced by <literal>min(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a matrix
+ <literal>[r[,k]] = mtlb_min(A)</literal> may be replaced by <literal>min(A,"r")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs, if <literal>A</literal> and <literal>B</literal> are real matrices and not empty matrices
+ <literal>[r[,k]] = mtlb_min(A,B)</literal> may be replaced by <literal>min(A,B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with three inputs, if <literal>dim</literal> is lesser than the number of dimensions of <literal>A</literal>
+ <literal>[r[,k]] = mtlb_min(A,[],dim)</literal> may be replaced by <literal>min(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_min</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_mode.xml b/modules/compatibility_functions/help/en_US/mtlb_mode.xml
new file mode 100755
index 000000000..31db33177
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_mode.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_mode">
+ <refnamediv>
+ <refname>mtlb_mode</refname>
+ <refpurpose>switch Matlab like operations</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>mmode = mtlb_mode()
+ mtlb_mode(mmode)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>mmode</term>
+ <listitem>
+ <para>boolean</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Scilab and Matlab additions and subtractions work differently
+ when used with empty matrices:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>Scilab</term>
+ <listitem>
+ <para></para>
+ <programlisting role = ""><![CDATA[
+a=1;
+a+[]
+// -->a
+
+
+a-[]
+// -->a
+
+
+[]+a
+// -->a
+
+
+[]-a
+// -->-a
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Matlab</term>
+ <listitem>
+ <programlisting role = "no-scilab-exec"><![CDATA[
+a+[] -->[]
+a-[] -->[]
+[]+a -->[]
+[]-a -->[]
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ <code>mtlb_mode(%t)</code> switches to Matlab evaluation mode for additions and
+ subtractions. <code>mtlb_mode(%f)</code> switches back to Scilab mode.
+ </para>
+ <para>
+ <code>mtlb_mode()</code> returns the current <varname>mmode</varname>' value (<constant>%t</constant>=Matlab, <constant>%f</constant>=Scilab).
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="empty">empty</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_more.xml b/modules/compatibility_functions/help/en_US/mtlb_more.xml
new file mode 100755
index 000000000..f848039a4
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_more.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_more">
+ <refnamediv>
+ <refname>mtlb_more</refname>
+ <refpurpose>Matlab more emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>more</literal> and Scilab <literal>lines</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character strings as input: Matlab <literal>more</literal> can take "on"
+ and "off" as input but not Scilab <literal>lines</literal> but there are equivalents (0 and 60).
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_more(in)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>more(in)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_more</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>in</literal> is equal to "on"
+ <literal>mtlb_more(in)</literal> may be replaced by <literal>lines(60)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>in</literal> is equal to "off"
+ <literal>mtlb_more(in)</literal> may be replaced by <literal>lines(0)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>in</literal> is a double value
+ <literal>mtlb_more(in)</literal> may be replaced by <literal>lines(in)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_more</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_num2str.xml b/modules/compatibility_functions/help/en_US/mtlb_num2str.xml
new file mode 100755
index 000000000..ea193da74
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_num2str.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_num2str">
+ <refnamediv>
+ <refname>mtlb_num2str</refname>
+ <refpurpose>Matlab num2str emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>num2str</literal> and Scilab equivalents (<literal>string</literal>, <literal>msprintf</literal>) behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With two input parameters, the second giving precision: There is no Scilab equivalent function, but
+ <literal>msprintf</literal> can be used to emulate.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With two input parameters, the second giving format: Scilab equivalent for Matlab
+ <literal>num2string(a,format)</literal> is <literal>msprintf(format,a)</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_num2str(x,f)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>num2str(x,f)</literal> 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 <literal>mtlb_num2str</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>f</literal> is a character string
+ <literal>mtlb_num2str(x,f)</literal> may be replaced by <literal>msprintf(f,x)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_num2str</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="string">string</link>
+ </member>
+ <member>
+ <link linkend="msprintf">msprintf</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_ones.xml b/modules/compatibility_functions/help/en_US/mtlb_ones.xml
new file mode 100755
index 000000000..b11c56694
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_ones.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_ones">
+ <refnamediv>
+ <refname>mtlb_ones</refname>
+ <refpurpose>Matlab ones emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>ones</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>ones</literal> returns a n x n matrix while Scilab returns a 1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_ones(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>ones(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_ones</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_ones(A)</literal> may be replaced by <literal>ones(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_ones(A)</literal> may be replaced by <literal>ones(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_ones</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_plot.xml b/modules/compatibility_functions/help/en_US/mtlb_plot.xml
new file mode 100755
index 000000000..a4c066957
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_plot.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_plot">
+ <refnamediv>
+ <refname>mtlb_plot</refname>
+ <refpurpose>Matlab plot emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>plot</literal> and Scilab <literal>plot2d</literal> behave differently.
+ </para>
+ <para>
+ The function <literal>mtlb_plot(varargin)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>plot(varargin)</literal> 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 <literal>mtlb_plot</literal> calls when there is no output value,
+ however in this case, you have to set colors manualy:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With one input, if <literal>Y</literal> is real,
+ <literal>mtlb_plot(Y)</literal> may be replaced by <literal>plot2d(Y)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With one input, if <literal>Y</literal> is complex,
+ <literal>mtlb_plot(Y)</literal> may be replaced by <literal>plot2d(real(Y),imag(Y))</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With two inputs <literal>X</literal> and <literal>Y</literal>, if <literal>Y</literal> is not a character string,
+ <literal>mtlb_plot(X,Y)</literal> may be replaced by <literal>plot2d(X,Y)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_plot</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="plot2d">plot2d</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_prod.xml b/modules/compatibility_functions/help/en_US/mtlb_prod.xml
new file mode 100755
index 000000000..ba1b0e761
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_prod.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_prod">
+ <refnamediv>
+ <refname>mtlb_prod</refname>
+ <refpurpose>Matlab prod emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>prod</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input: Matlab <literal>prod</literal> threts the values along the first
+ non-singleton dimension of input while Scilab <literal>prod</literal> threats all values of input.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs: Matlab <literal>prod</literal> can be used with second input giving
+ a non-existing dimension of first input while Scilab <literal>prod</literal> returns an error message.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_prod(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>prod(A[,dim])</literal> 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 <literal>mtlb_prod</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is an empty matrix, a scalar or a vector,
+ <literal>mtlb_prod(A)</literal> may be replaced by <literal>prod(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a not-empty matrix,
+ <literal>mtlb_prod(A)</literal> may be replaced by <literal>prod(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a multidimensional array,
+ <literal>mtlb_prod(A)</literal> may be replaced by <literal>prod(A,firstnonsingleton(A))</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs, if <literal>dim</literal> is lesser than the number of dimensions of <literal>A</literal>
+ <literal>mtlb_prod(A,dim)</literal> may be replaced by <literal>prod(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_prod</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_rand.xml b/modules/compatibility_functions/help/en_US/mtlb_rand.xml
new file mode 100755
index 000000000..bb9793ba2
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_rand.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_rand">
+ <refnamediv>
+ <refname>mtlb_rand</refname>
+ <refpurpose>Matlab rand emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>rand</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>rand</literal> returns a n x n matrix
+ while Scilab returns a scalar.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_rand(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>rand(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_rand</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_rand(A)</literal> may be replaced by <literal>rand(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_rand(A)</literal> may be replaced by <literal>rand(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_rand</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_randn.xml b/modules/compatibility_functions/help/en_US/mtlb_randn.xml
new file mode 100755
index 000000000..739ef2ac7
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_randn.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_randn">
+ <refnamediv>
+ <refname>mtlb_randn</refname>
+ <refpurpose>Matlab randn emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>rand</literal> and Scilab <literal>rand(...,"normal")</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>randn</literal> returns a n x n matrix
+ while Scilab <literal>rand(...,"normal")</literal> returns a scalar.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_randn(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>randn(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_randn</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_randn(A)</literal> may be replaced by <literal>rand(A,A,"normal")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_randn(A)</literal> may be replaced by <literal>rand(A,"normal")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_randn</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_rcond.xml b/modules/compatibility_functions/help/en_US/mtlb_rcond.xml
new file mode 100755
index 000000000..4d6fdb056
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_rcond.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_rcond">
+ <refnamediv>
+ <refname>mtlb_rcond</refname>
+ <refpurpose>Matlab rcond emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>rcond</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With empty matrix: Matlab <literal>rcond</literal> returns <literal>Inf</literal> and
+ Scilab <literal>rcond</literal> returns <literal>[]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_rcond(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>rcond(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_rcond</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not an empty matrix,
+ <literal>mtlb_rcond(A)</literal> may be replaced by <literal>rcond(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_rcond</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_realmax.xml b/modules/compatibility_functions/help/en_US/mtlb_realmax.xml
new file mode 100755
index 000000000..7a2587834
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_realmax.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_realmax">
+ <refnamediv>
+ <refname>mtlb_realmax</refname>
+ <refpurpose>Matlab realmax emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Scilab equivalent for Matlab <literal>realmax</literal> is
+ <literal>number_properties</literal> but not all cases are implemented:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Scilab equivalent for Matlab <literal>realmax</literal> or
+ <literal>realmax('double')</literal> is <literal>number_properties("huge")</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>realmax('single')</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_realmax(prec)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>realmax(prec)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_realmax</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>prec</literal> is equal to <literal>"double"</literal>
+ <literal>mtlb_realmax(prec)</literal> may be replaced by <literal>number_properties("huge")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_realmax</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="number_properties">number_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_realmin.xml b/modules/compatibility_functions/help/en_US/mtlb_realmin.xml
new file mode 100755
index 000000000..d4eb982f9
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_realmin.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_realmin">
+ <refnamediv>
+ <refname>mtlb_realmin</refname>
+ <refpurpose>Matlab realmin emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Scilab equivalent for Matlab <literal>realmin</literal> is
+ <literal>number_properties</literal> but not all cases are implemented:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Scilab equivalent for Matlab <literal>realmin</literal> or
+ <literal>realmin('double')</literal> is <literal>number_properties("tiny")</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>realmin('single')</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_realmin(prec)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>realmin(prec)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_realmin</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>prec</literal> is equal to <literal>"double"</literal>
+ <literal>mtlb_realmin(prec)</literal> may be replaced by <literal>number_properties("tiny")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_realmin</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="number_properties">number_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_s.xml b/modules/compatibility_functions/help/en_US/mtlb_s.xml
new file mode 100755
index 000000000..2445ea4cf
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_s.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_s">
+ <refnamediv>
+ <refname>mtlb_s</refname>
+ <refpurpose>Matlab subtraction emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab subtraction behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string operands: The <literal>-</literal>
+ operator can not be used into Scilab with character strings, while
+ Matlab realizes the subtraction of the operands ASCII codes.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With empty matrix: In Scilab, if one of the
+ operands is an empty matrix the result of the subtraction is the
+ other operand. In Matlab if one of the operand is an empty
+ matrix the result of the subtraction should be an error or an empty
+ matrix.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_s(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A-B</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_s</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are character strings,
+ <literal>mtlb_s(A,B)</literal> may be replaced by <literal>asciimat(A)-asciimat(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If both <literal>A</literal> and <literal>B</literal> are not empty matrices
+ <literal>mtlb_s(A,B)</literal> may be replaced by <literal>A-B</literal>,
+ else <literal>mtlb_s(A,B)</literal> may be replaced by
+ <literal>[]</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If mtlb_mode()==%T, then <literal>mtlb_s(A,B)</literal>
+ may be replaced by <literal>A-B</literal> in any case where
+ <literal>A</literal> and <literal>B</literal> are not character string matrices.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_s</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mtlb_mode">mtlb_mode</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_setstr.xml b/modules/compatibility_functions/help/en_US/mtlb_setstr.xml
new file mode 100755
index 000000000..e333007ff
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_setstr.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_setstr">
+ <refnamediv>
+ <refname>mtlb_setstr</refname>
+ <refpurpose>Matlab setstr emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>setstr</literal> and Scilab <literal>ascii</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character string input: Matlab <literal>setstr</literal> returns a character string
+ while Scilab <literal>ascii</literal> returns ASCII codes.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With double matrix input: Matlab <literal>setstr</literal> returns a character matrix
+ having the same size as input while Scilab <literal>ascii</literal> returns a single character string
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_setstr(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>setstr(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_setstr</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string or a character string matrix
+ <literal>mtlb_setstr(A)</literal> may be replaced by <literal>A</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a double row vector
+ <literal>mtlb_setstr(A)</literal> may be replaced by <literal>ascii(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_setstr</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_size.xml b/modules/compatibility_functions/help/en_US/mtlb_size.xml
new file mode 100755
index 000000000..be592e8e4
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_size.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_size">
+ <refnamediv>
+ <refname>mtlb_size</refname>
+ <refpurpose>Matlab size emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>size</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With two inputs: Matlab <literal>size</literal> can be used with second parameter giving
+ a not-existing dimension of first parameter (returns 1 in this case) but not Scilab one.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With more than one output: if number of output is lesser than number of dimensions,
+ last output is the product of all remaining dimensions in Matlab but not in Scilab.
+ If number of output is greater than number of dimensions, outputs corresponding to a
+ not-existing dimension are set to 1 in Matlab but Scilab gives an error in this case.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>[d1,[d2,...]] = mtlb_size(X[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>[d1,[d2,...]] = size(X[,dim])</literal> 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 <literal>mtlb_size</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With two inputs: if <literal>dim</literal> gives an existing dimension of <literal>X</literal>
+ <literal>mtlb_size(X,dim)</literal> may be replaced by <literal>size(X,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With more than one outputs: if the number of outputs is equal to the number of dimensions of <literal>X</literal>
+ <literal>[d1,[d2,...]] = mtlb_size(X)</literal> may be replaced by <literal>[d1,[d2,...]] = size(X)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_size</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_sort.xml b/modules/compatibility_functions/help/en_US/mtlb_sort.xml
new file mode 100755
index 000000000..4340ce28e
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_sort.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2006 - INRIA - Farid BELAHCENE
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_sort">
+ <refnamediv>
+ <refname>mtlb_sort</refname>
+ <refpurpose>Matlab sort emulation
+ function
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>P = mtlb_sort(X)
+ P = mtlb_sort(X,dim[,mode])
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>a scalar, vector, matrix of reals, booleans or a string</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <variablelist>
+ <varlistentry>
+ <term>dim</term>
+ <listitem>
+ <para>a positive scalar integer</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>mode</term>
+ <listitem>
+ <para>a string ("ascend" or "descend")</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>sort</literal> and Scilab <literal>gsort</literal> behave
+ differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ For a vector <literal>X</literal> the Matlab
+ <literal>sort(X,'g','i')</literal> function call is equivalent to the
+ Scilab <literal>gsort(X)</literal> function call.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The value <literal>1</literal> (resp. <literal>2</literal>) of the Matlab
+ dim is equivalent to the Scilab <literal>"r"</literal> flag (resp.
+ <literal>"c"</literal>).
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The Matlab "<literal>ascend"</literal> (resp.
+ <literal>"descend"</literal>) mode is equivalent to the Scilab
+ <literal>"i"</literal> (resp. <literal>"d"</literal>) flag.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_sort(X[,dim[,mode]])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>sort(X[,dim[,mode]])</literal> 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
+ <literal>mtlb_sort</literal> call by <link linkend="gsort">gsort</link> call.
+ </para>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_sort</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_strcmp.xml b/modules/compatibility_functions/help/en_US/mtlb_strcmp.xml
new file mode 100755
index 000000000..0d0433148
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_strcmp.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_strcmp">
+ <refnamediv>
+ <refname>mtlb_strcmp</refname>
+ <refpurpose>Matlab strcmp emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab function equivalent for Matlab <literal>strcmp</literal>, there is equivalent instructions.
+ </para>
+ <para>
+ The function <literal>mtlb_strcmp(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>strcmp(A,B)</literal> 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 <literal>mtlb_strcmp</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are character strings
+ <literal>mtlb_strcmp(A,B)</literal> may be replaced by <literal>A==B</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> and/or <literal>B</literal> is not a character string
+ <literal>mtlb_strcmp(A,B)</literal> may be replaced by <literal>0</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_strcmp</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_strcmpi.xml b/modules/compatibility_functions/help/en_US/mtlb_strcmpi.xml
new file mode 100755
index 000000000..4ad99575a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_strcmpi.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_strcmpi">
+ <refnamediv>
+ <refname>mtlb_strcmpi</refname>
+ <refpurpose>Matlab strcmpi emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab function equivalent for Matlab <literal>strcmpi</literal>, there is equivalent instructions.
+ </para>
+ <para>
+ The function <literal>mtlb_strcmpi(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>strcmpi(A,B)</literal> 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 <literal>mtlb_strcmpi</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are character strings
+ <literal>mtlb_strcmpi(A,B)</literal> may be replaced by <literal>convstr(A)==convstr(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> and/or <literal>B</literal> is not a character string
+ <literal>mtlb_strcmpi(A,B)</literal> may be replaced by <literal>0</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_strcmpi</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_strfind.xml b/modules/compatibility_functions/help/en_US/mtlb_strfind.xml
new file mode 100755
index 000000000..50b7afe5a
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_strfind.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_strfind">
+ <refnamediv>
+ <refname>mtlb_strfind</refname>
+ <refpurpose>Matlab strfind emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>strfind</literal> and Scilab <literal>strindex</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With inputs which not character strings: Matlab <literal>strfind</literal> can be used
+ with not character strings inputs but not Scilab <literal>strindex</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_strfind(A,B)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>strfind(A,B)</literal> 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 <literal>mtlb_strfind</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> and <literal>B</literal> are character strings
+ <literal>mtlb_strfind(A,B)</literal> may be replaced by <literal>strindex(A,B)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_strfind</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_strrep.xml b/modules/compatibility_functions/help/en_US/mtlb_strrep.xml
new file mode 100755
index 000000000..68b94d3c4
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_strrep.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_strrep">
+ <refnamediv>
+ <refname>mtlb_strrep</refname>
+ <refpurpose>Matlab strrep emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>strrep</literal> and Scilab <literal>strsubst</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With inputs which not character strings: Matlab <literal>strrep</literal> can be used
+ with not character strings inputs but not Scilab <literal>strsubst</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_strrep(A,B,C)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>strrep(A,B,C)</literal> 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 <literal>mtlb_strrep</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal>, <literal>B</literal> and <literal>C</literal> are character strings
+ <literal>mtlb_strrep(A,B,C)</literal> may be replaced by <literal>strsubst(A,B,C)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_strrep</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_sum.xml b/modules/compatibility_functions/help/en_US/mtlb_sum.xml
new file mode 100755
index 000000000..fad5f006e
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_sum.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_sum">
+ <refnamediv>
+ <refname>mtlb_sum</refname>
+ <refpurpose>Matlab sum emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>sum</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input: Matlab <literal>sum</literal> threts the values along the first
+ non-singleton dimension of input while Scilab <literal>sum</literal> threats all values of input.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs: Matlab <literal>sum</literal> can be used with second input giving
+ a non-existing dimension of first input while Scilab <literal>sum</literal> returns an error message.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_sum(A[,dim])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>sum(A[,dim])</literal> 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 <literal>mtlb_sum</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is an empty matrix, a scalar or a vector,
+ <literal>mtlb_sum(A)</literal> may be replaced by <literal>sum(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a not-empty matrix,
+ <literal>mtlb_sum(A)</literal> may be replaced by <literal>sum(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with one input, if <literal>A</literal> is a multidimensional array,
+ <literal>mtlb_sum(A)</literal> may be replaced by <literal>sum(A,firstnonsingleton(A))</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs, if <literal>dim</literal> is lesser than the number of dimensions of <literal>A</literal>
+ <literal>mtlb_sum(A,dim)</literal> may be replaced by <literal>sum(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_sum</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_t.xml b/modules/compatibility_functions/help/en_US/mtlb_t.xml
new file mode 100755
index 000000000..6be1dad19
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_t.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_t">
+ <refnamediv>
+ <refname>mtlb_t</refname>
+ <refpurpose>Matlab transposition emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Matlab and Scilab transposition behave differently in some particular cases:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With character strings operands: The <literal>'</literal> operator is used to transpose whole
+ character strings in Scilab while Matlab realizes the transposition of each character.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_t(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>A'</literal> when it was not
+ possible to know what were the operands 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 <literal>mtlb_t</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix
+ <literal>mtlb_t(A)</literal> may be replaced by <literal>A'</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_t</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_toeplitz.xml b/modules/compatibility_functions/help/en_US/mtlb_toeplitz.xml
new file mode 100755
index 000000000..fc9114857
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_toeplitz.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_toeplitz">
+ <refnamediv>
+ <refname>mtlb_toeplitz</refname>
+ <refpurpose>Matlab toeplitz emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>toeplitz</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With one input parameter: if this parameter is complex or is a matrix, output value of
+ Matlab and Scilab <literal>toeplitz</literal> can be different.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With two input parameters: if they are vectors and their first elements are not equal,
+ Scilab returns an error but Matlab gives priority to the column element. If they are matrices, output value of
+ Matlab and Scilab <literal>toeplitz</literal> are different.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_toeplitz(c[,r])</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>toeplitz(c[,r])</literal> when it was not
+ possible to know what were the operands/inputs[CUSTOM] 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 <literal>mtlb_toeplitz</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ When called with one input, if <literal>c</literal> is a real scalar or vector
+ <literal>mtlb_toeplitz(c)</literal> may be replaced by <literal>toeplitz(c)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ When called with two inputs, if <literal>c</literal> and <literal>r</literal> are scalars or vectors and their first elements are equal
+ <literal>mtlb_toeplitz(c,r)</literal> may be replaced by <literal>toeplitz(c,r)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_toeplitz</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_tril.xml b/modules/compatibility_functions/help/en_US/mtlb_tril.xml
new file mode 100755
index 000000000..aa74b3d23
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_tril.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_tril">
+ <refnamediv>
+ <refname>mtlb_tril</refname>
+ <refpurpose>Matlab tril emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>tril</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>tril</literal> can be used with complex data but not Scilab one.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With character strings inputs: due to the fact the Matlab and Scilab do not consider character
+ strings in the same way, Scilab and Matlab <literal>tril</literal> do not give the same results
+ for this type of input.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With boolean inputs: Matlab <literal>tril</literal> can be used with boobean data but not Scilab one.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_tril(x,k)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>tril(x,k)</literal> 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 <literal>mtlb_tril</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>X</literal> contains real double values
+ <literal>mtlb_tril(x,k)</literal> may be replaced by <literal>tril(x,k)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>X</literal> contains boolean values
+ <literal>mtlb_tril(x,k)</literal> may be replaced by <literal>tril(bool2s(x),k)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_tril</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_triu.xml b/modules/compatibility_functions/help/en_US/mtlb_triu.xml
new file mode 100755
index 000000000..ce779eae8
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_triu.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_triu">
+ <refnamediv>
+ <refname>mtlb_triu</refname>
+ <refpurpose>Matlab triu emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>triu</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>triu</literal> can be used with complex data but not Scilab one.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With character strings inputs: due to the fact the Matlab and Scilab do not consider character
+ strings in the same way, Scilab and Matlab <literal>triu</literal> do not give the same results
+ for this type of input.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With boolean inputs: Matlab <literal>triu</literal> can be used with boobean data but not Scilab one.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_triu(x,k)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>triu(x,k)</literal> 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 <literal>mtlb_triu</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>X</literal> contains real double values
+ <literal>mtlb_triu(x,k)</literal> may be replaced by <literal>triu(x,k)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>X</literal> contains boolean values
+ <literal>mtlb_triu(x,k)</literal> may be replaced by <literal>triu(bool2s(x),k)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_triu</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="MatlabScilab_character_strings">Matlab-Scilab_character_strings</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_true.xml b/modules/compatibility_functions/help/en_US/mtlb_true.xml
new file mode 100755
index 000000000..3e002933e
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_true.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_true">
+ <refnamediv>
+ <refname>mtlb_true</refname>
+ <refpurpose>Matlab true emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ There is no Scilab equivalent for Matlab <literal>true</literal>. However, Scilab <literal>ones</literal>
+ returns a result interpreted in an equivalent way for Scilab.
+ </para>
+ <para>
+ Matlab <literal>true</literal> and Scilab <literal>ones</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>true</literal> returns a n x n matrix of ones
+ while Scilab <literal>ones</literal> returns a 1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_true(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>true(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_true</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_true(A)</literal> may be replaced by <literal>ones(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_true(A)</literal> may be replaced by <literal>ones(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_true</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_uint16.xml b/modules/compatibility_functions/help/en_US/mtlb_uint16.xml
new file mode 100755
index 000000000..a73b730fd
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_uint16.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_uint16">
+ <refnamediv>
+ <refname>mtlb_uint16</refname>
+ <refpurpose>Matlab uint16 emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>uint16</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>uint16</literal> can be used with complex values what Scilab function can not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%inf</literal>: Matlab <literal>uint16</literal> returns 65535 and Scilab returns 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_uint16(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>uint16(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_uint16</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> does not contain <literal>%inf</literal> values
+ <literal>mtlb_uint16(A)</literal> may be replaced by <literal>uint16(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_uint16</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_uint32.xml b/modules/compatibility_functions/help/en_US/mtlb_uint32.xml
new file mode 100755
index 000000000..7efaaeb69
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_uint32.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_uint32">
+ <refnamediv>
+ <refname>mtlb_uint32</refname>
+ <refpurpose>Matlab uint32 emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>uint32</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>uint32</literal> can be used with complex values what Scilab function can not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%inf</literal>: Matlab <literal>uint32</literal> returns 4294967295 and Scilab returns 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_uint32(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>uint32(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_uint32</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> does not contain <literal>%inf</literal> values
+ <literal>mtlb_uint32(A)</literal> may be replaced by <literal>uint32(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_uint32</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_uint8.xml b/modules/compatibility_functions/help/en_US/mtlb_uint8.xml
new file mode 100755
index 000000000..bbc493477
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_uint8.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_uint8">
+ <refnamediv>
+ <refname>mtlb_uint8</refname>
+ <refpurpose>Matlab uint8 emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>uint8</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With complex input: Matlab <literal>uint8</literal> can be used with complex values what Scilab function can not.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With <literal>%inf</literal>: Matlab <literal>uint8</literal> returns 255 and Scilab returns 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_uint8(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>uint8(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_uint8</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> does not contain <literal>%inf</literal> values
+ <literal>mtlb_uint8(A)</literal> may be replaced by <literal>uint8(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_uint8</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_upper.xml b/modules/compatibility_functions/help/en_US/mtlb_upper.xml
new file mode 100755
index 000000000..0a48e7e83
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_upper.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_upper">
+ <refnamediv>
+ <refname>mtlb_upper</refname>
+ <refpurpose>Matlab upper emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab <literal>upper(A)</literal> and Scilab <literal>convstr(A,"u")</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a chacarter string matrix: Matlab <literal>upper</literal> can be used with a
+ not-character-string <literal>A</literal> but not Scilab <literal>convstr</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_upper(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>upper(A)</literal> 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 <literal>mtlb_upper</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a character string matrix
+ <literal>mtlb_upper(A)</literal> may be replaced by <literal>convstr(A,"u")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a character string matrix
+ <literal>mtlb_upper(A)</literal> may be replaced by <literal>A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_upper</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="convstr">convstr</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_var.xml b/modules/compatibility_functions/help/en_US/mtlb_var.xml
new file mode 100755
index 000000000..fd2f52626
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_var.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_var">
+ <refnamediv>
+ <refname>mtlb_var</refname>
+ <refpurpose>Matlab var emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>x</term>
+ <listitem>
+ <para>a real or a complex vector or matrix.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>s</term>
+ <listitem>
+ <para>a real scalar or real vector.</para>
+ <itemizedlist>
+ <listitem>
+ <para>If x is a vector, s is the variance of x.</para>
+ </listitem>
+ <listitem>
+ <para>If x is a matrix, s is a row vector containing the variance of each column of x.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>w</term>
+ <listitem>
+ <para>type of normalization to use. Valid values are, depending on the number of columns m of x :</para>
+ <itemizedlist>
+ <listitem>
+ <para>w = 0 : normalizes with m-1, provides the best unbiased estimator of the variance (this is the default).</para>
+ </listitem>
+ <listitem>
+ <para>w = 1: normalizes with m, this provides the second moment around the mean. </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>dim</term>
+ <listitem>
+ <para>the dimension along which the variance is computed (default is 1, i.e. column by column).
+ If dim is 2, the variance is computed row by row.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>This function computes the variance of the values of a vector or matrix x.
+ It provides the same service as Octave and Matlab.
+ It differs from Scilab's variance primitive:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>mtlb_var returns a real (i.e. with a zero imaginary part) variance,
+ even if x is a complex vector or matrix. The Scilab variance
+ primitive returns a complex value if the input vector x is complex and
+ if no option additional is used.
+ </para>
+ </listitem>
+ <listitem>
+ <para>Whatever the type of the input data x (i.e. vector or matrix),
+ mtlb_var computes the variance either on dimension 1 or on dimension 2 while,
+ if no option is passed to the Scilab's variance primitive, the variance is computed
+ on all dimension at once.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <para>The following 3 examples illustrates the use of the mtlb_var function.
+ In the first case, a column vector is passed to the function, which returns the value 750.
+ In the second case, a matrix is passed to the function, which returns the row vector
+ [0.16 0.09].
+ In the third case, a complex column vector is passed to the function, which
+ returns a value close to 2.
+ </para>
+ <programlisting role="example"><![CDATA[
+x = [10; 20; 30; 40; 50; 60; 70; 80; 90];
+computed = mtlb_var(x);
+
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+computed = mtlb_var(x);
+
+N=1000;
+x = grand(N,1,'nor',0,1) + %i*grand(N,1,'nor',0,1);
+computed = mtlb_var(x);
+ ]]></programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="variance">variance</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/en_US/mtlb_zeros.xml b/modules/compatibility_functions/help/en_US/mtlb_zeros.xml
new file mode 100755
index 000000000..cacf5b3f4
--- /dev/null
+++ b/modules/compatibility_functions/help/en_US/mtlb_zeros.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2007 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="mtlb_zeros">
+ <refnamediv>
+ <refname>mtlb_zeros</refname>
+ <refpurpose>Matlab zeros emulation function</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Matlab and Scilab <literal>zeros</literal> behave differently in some particular cases:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ With a scalar input: Matlab <literal>zeros</literal> returns a n x n matrix while Scilab returns a 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The function <literal>mtlb_zeros(A)</literal> is used by
+ <literal>mfile2sci</literal> to replace <literal>zeros(A)</literal> when it was not
+ possible to know what was the input 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 <literal>mtlb_zeros</literal> calls:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If <literal>A</literal> is a scalar
+ <literal>mtlb_zeros(A)</literal> may be replaced by <literal>zeros(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If <literal>A</literal> is not a scalar
+ <literal>mtlb_zeros(A)</literal> may be replaced by <literal>zeros(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Caution: <literal>mtlb_zeros</literal> has not to be used for hand coded functions.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/addchapter.sce b/modules/compatibility_functions/help/fr_FR/addchapter.sce
new file mode 100755
index 000000000..b27802bb1
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Fonctions de compatibilité",SCI+"/modules/compatibility_functions/help/fr_FR",%T);
+
diff --git a/modules/compatibility_functions/help/fr_FR/firstnonsingleton.xml b/modules/compatibility_functions/help/fr_FR/firstnonsingleton.xml
new file mode 100755
index 000000000..e56bcdb3a
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/firstnonsingleton.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="firstnonsingleton">
+ <refnamediv>
+ <refname>firstnonsingleton</refname>
+ <refpurpose>Trouve la première dimension qui n'est pas 1</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>[dim]=firstnonsingleton(A[,opt])</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>dim</term>
+ <listitem>
+ <para>première dimension de A qui n'est pas 1</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>A</term>
+ <listitem>
+ <para>une variable de n'importe quel type de donnée Scilab</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>opt</term>
+ <listitem>
+ <para>une chaîne de caractères qui précise le type de la variable de sortie que l'on veut</para>
+ <variablelist>
+ <varlistentry>
+ <term>"num"</term>
+ <listitem>
+ <para>la valeur retournée est une valeur numérique</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>"str"</term>
+ <listitem>
+ <para>la valeur retournée est une chaîne de caractères si possible ("r" au lieu de 1 et "c" au lieu de 2)</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Cette fonction est utilisée par <literal>mfile2sci</literal> pour émuler le comportement de Matlab sous Scilab,
+ en particulier pour les fonctions qui traitent les valeurs suivant la première dimension de A qui n'est pas 1
+ en Matlab alors que dans Scilab elles traitent toutes les valeurs de A.
+ </para>
+ </refsection>
+ <refsection>
+ <title>Exemples</title>
+ <programlisting role="example"><![CDATA[
+A = [1 2 3;4 5 6];
+// max Scilab
+M = max(A)
+// Emulation du max Matlab
+M = max(A,firstnonsingleton(A))
+ ]]></programlisting>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mstr2sci.xml b/modules/compatibility_functions/help/fr_FR/mstr2sci.xml
new file mode 100755
index 000000000..09db1869c
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mstr2sci.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mstr2sci">
+ <refnamediv>
+ <refname>mstr2sci</refname>
+ <refpurpose>conversion d'une matrice de chaînes en matrice de caractères</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>a=mstr2sci(txt)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>txt</term>
+ <listitem>
+ <para>chaîne de caractères ou matrice de chaînes</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>vecteur ou matrice de caractères</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Cette fonction convertit une chaîne de caractères Scilab en vecteur de caractères.
+ Le résultat est l'équivalent pour Scilab d'une chaîne de caractères Matlab.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mstr2sci</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_0.xml b/modules/compatibility_functions/help/fr_FR/mtlb_0.xml
new file mode 100755
index 000000000..644eb85de
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_0.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_0">
+ <refnamediv>
+ <refname>mtlb_0</refname>
+ <refpurpose>Fonction d'émulation de la transposition non-conjuguée de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, la transposition non-conjuguée se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des opérandes de type chaîne de caractère : L'opérateur <literal>.'</literal> est utilisé dans Scilab
+ pour transposer des chaînes de caractères entières alors que Matlab fait la transposition caractère par caractère.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_0(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A.'</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_0</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères
+ <literal>mtlb_0(A)</literal> peut être remplacé par <literal>A.'</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_0</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_a.xml b/modules/compatibility_functions/help/fr_FR/mtlb_a.xml
new file mode 100755
index 000000000..20f80cf41
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_a.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_a">
+ <refnamediv>
+ <refname>mtlb_a</refname>
+ <refpurpose>Fonction d'émulation de l'addition Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, l'addition se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des opérandes de type chaîne de caractères : L'opérateur <literal>+</literal>
+ est utilisé dans Scilab pour concaténer des chaînes de caractères alors que
+ Matlab calcule la somme des codes ASCII des opérandes.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec une matrice vide : Dans Scilab, si une des
+ opérandes est une matrice vide alors le résultat de l'addition est
+ l'autre opérande. Dans Matlab si une des opérandes est une matrice
+ vide alors le résultat de l'addition est soit une erreur (la seconde opérande n'est pas un scalaire)
+ soit une matrice vide.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_a(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A+B</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_a</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> sont des chaînes de caractères,
+ <literal>mtlb_a(A,B)</literal> peut être remplacé par <literal>asciimat(A)+asciimat(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> ne sont pas des matrices vides
+ <literal>mtlb_a(A,B)</literal> peut être remplacé par <literal>A+B</literal>,
+ sinon <literal>mtlb_a(A,B)</literal> peut être remplacé par
+ <literal>[]</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si mtlb_mode()==%T, alors <literal>mtlb_a(A,B)</literal>
+ peut être remplacé par <literal>A+B</literal> dans tous les cas où
+ <literal>A</literal> et <literal>B</literal> ne sont pas des chaînes de caractères.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_a</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mtlb_mode">mtlb_mode</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_all.xml b/modules/compatibility_functions/help/fr_FR/mtlb_all.xml
new file mode 100755
index 000000000..be917dc99
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_all.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_all">
+ <refnamediv>
+ <refname>mtlb_all</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab all</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, les fonctions <literal>all</literal> de Matlab et
+ <literal>and</literal> de Scilab se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un argument d'entrée (<literal>all(A)</literal>), la fonction <literal>all</literal> de Matlab traite
+ les valeurs selon la première dimension de A qui n'est pas 1 comme un vecteur
+ alors que Scilab traite toutes les valeurs de A.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux arguments d'entrée (<literal>all(A,dim)</literal>), Matlab
+ tolère une valeur de <literal>dim</literal> supérieure au
+ nombre de dimensions de A alors que Scilab renvoie un message d'erreur dans ce cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_all(A[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>all(A[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_all</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire ou un vecteur
+ <literal>R = mtlb_all(A)</literal> peut être remplacé par <literal>R = and(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice
+ <literal>R = mtlb_all(A)</literal> peut être remplacé par <literal>R = and(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une hypermatrice
+ <literal>R = mtlb_all(A)</literal> peut être remplacé par <literal>R = and(A,firstnonsingleton(A))</literal>
+ ou par <literal>R = and(A,user_defined_value)</literal> si la première dimension non-égale à 1 de A est connue.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est inférieur ou égal au nombre de dimensions de A
+ <literal>R = mtlb_all(A,dim)</literal> peut être remplacé par <literal>R = and(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est supérieur au nombre de dimensions de A
+ <literal>R = mtlb_all(A,dim)</literal> peut être remplacé par <literal>R = A&lt;&gt;0</literal> si A n'est pas
+ une matrice vide ou par <literal>R = A</literal> si A est une matrice vide.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention: <literal>mtlb_all</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_any.xml b/modules/compatibility_functions/help/fr_FR/mtlb_any.xml
new file mode 100755
index 000000000..ecfbbf235
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_any.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_any">
+ <refnamediv>
+ <refname>mtlb_any</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab any</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, les fonctions <literal>any</literal> de Matlab et
+ <literal>or</literal> de Scilab se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un argument d'entrée (<literal>any(A)</literal>), la fonction <literal>any</literal> de Matlab traite
+ les valeurs selon la première dimension de A qui n'est pas 1 comme un vecteur
+ alors que Scilab traite toutes les valeurs de A.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux arguments d'entrée (<literal>any(A,dim)</literal>), Matlab
+ tolère une valeur de <literal>dim</literal> supérieure au
+ nombre de dimensions de A alors que Scilab renvoie un message d'erreur dans ce cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_any(A[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>any(A[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_any</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire ou un vecteur
+ <literal>R = mtlb_any(A)</literal> peut être remplacé par <literal>R = or(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice
+ <literal>R = mtlb_any(A)</literal> peut être remplacé par <literal>R = o(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une hypermatrice
+ <literal>R = mtlb_any(A)</literal> peut être remplacé par <literal>R = or(A,firstnonsingleton(A))</literal>
+ ou par <literal>R = or(A,user_defined_value)</literal> si la première dimension non-égale à 1 de A est connue.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est inférieur ou égal au nombre de dimensions de A
+ <literal>R = mtlb_any(A,dim)</literal> peut être remplacé par <literal>R = or(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est supérieur au nombre de dimensions de A
+ <literal>R = mtlb_any(A,dim)</literal> peut être remplacé par <literal>R = A&lt;&gt;0</literal> si A n'est pas
+ une matrice vide ou par <literal>R = A</literal> si A est une matrice vide.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention: <literal>mtlb_any</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_axis.xml b/modules/compatibility_functions/help/fr_FR/mtlb_axis.xml
new file mode 100755
index 000000000..540d8b2a6
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_axis.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_axis">
+ <refnamediv>
+ <refname>mtlb_axis</refname>
+ <refpurpose>Fonction d'émulation de la fonction
+ Matlab axis
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>mtlb_axis(X)
+ mtlb_axis(st)
+ mtlb_axis(axeshandle, ...)
+ [mode,visibility,direction]=mtlb_axis('state')
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>un vecteur de réels ([xmin xmax ymin ymax] ou [xmin xmax ymin
+ ymax zmin zmax])
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>st</term>
+ <listitem>
+ <para>une chaine de caractères ('auto', 'manual', 'tight', 'ij',
+ 'xy', 'equal', 'square', 'vis3d', 'off', 'on')
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>axeshandle</term>
+ <listitem>
+ <para>handle sur l'axe courant</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ La fonction Matlab<literal> axis</literal> n'a pas de fonction Scilab
+ équivalente :
+ </para>
+ <para>
+ La fonction <literal>mtlb_axis(n,X[,normflag])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>axis(...)</literal> quand il
+ n'était pas possible de savoir ce qu'étaient les paramètres d'entrée
+ pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution.
+ (<literal>'fill'</literal> , <literal>'image' </literal> et <literal>'normal'</literal> ne
+ sont pas implémentés).Pour obtenir un code plus performant on peut
+ remplacer les appels à <literal>mtlb_axis</literal> par les appels à
+ get(axeshandle,prop), ou prop est une propriété des axes (see
+ <link linkend="axis_properties">axis_properties</link>)
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_axis</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_beta.xml b/modules/compatibility_functions/help/fr_FR/mtlb_beta.xml
new file mode 100755
index 000000000..3249d8637
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_beta.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_beta">
+ <refnamediv>
+ <refname>mtlb_beta</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab beta</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>beta</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée de tailles différentes : les paramètres d'entrée de la fonction
+ <literal>beta</literal> de Matlab doivent être de même taille sauf si l'un d'entre eux est un scalaire.
+ Les paramètres d'entrée de la fonction <literal>beta</literal> de Scilab doivent être de même taille
+ même si l'un d'entre eux est un scalaire.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_beta(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>beta(A,B)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_beta</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire mais pas <literal>B</literal>
+ <literal>Y = mtlb_beta(A,B)</literal> peut être remplacé par <literal>C=B;C(:)=A;Y = mtlb_beta(C,B);</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>B</literal> est un scalaire mais pas <literal>A</literal>
+ <literal>Y = mtlb_beta(A,B)</literal> peut être remplacé par <literal>C=A;C(:)=B;Y = mtlb_beta(A,C);</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_beta</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_box.xml b/modules/compatibility_functions/help/fr_FR/mtlb_box.xml
new file mode 100755
index 000000000..36d7e0205
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_box.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_box">
+ <refnamediv>
+ <refname>mtlb_box</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab box</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalente à la fonction Matlab <literal>box</literal> mais elle peut facilement être remplacée.
+ </para>
+ <para>
+ La fonction <literal>mtlb_box([axes_handle[,val]])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>box([axes_handle[,val]])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_box</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Pour un appel sans paramètre d'entrée,
+ <literal>mtlb_box()</literal> peut être remplacé par <literal>a=gca();if a.box=="on" then a.box="off";else a.box="on";end;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>axes_handle</literal> est une chaîne de caractères,
+ <literal>mtlb_box(axes_handle)</literal> peut être remplacé par <literal>a=gca();a.box=convstr(axes_handle,"l");</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>axes_handle</literal> est un handle graphique,
+ <literal>mtlb_box(axes_handle)</literal> peut être remplacé par
+ <literal>if axes_handle.box=="on" then axes_handle.box="off";else axes_handle.box="on";end;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>axes_handle</literal> est un handle graphique et <literal>val</literal> est une chaîne de caractères,
+ <literal>mtlb_box(axes_handle,val)</literal> peut être remplacé par <literal>axes_handle.box=convstr(val,"l");</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_box</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="axes_properties">axes_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_close.xml b/modules/compatibility_functions/help/fr_FR/mtlb_close.xml
new file mode 100755
index 000000000..511d03823
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_close.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_close">
+ <refnamediv>
+ <refname>mtlb_close</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab close</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Suivant le type de la figure courante (uicontrol ou graphique), l'équivalent Scilab pour
+ la fonction Matlab <literal>close</literal> est différent :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si la figure courante est de type uicontrol : l'équivalent Scilab pour la fonction Matlab
+ <literal>close</literal> est <literal>close</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si la fenêtre courante est une fenêtre graphique : l'équivalent Scilab pour la fonction Matlab
+ <literal>close</literal> est <literal>xdel</literal> ou <literal>delete</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Dans Scilab on ne récupère pas de statut d'erreur.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_close([h])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>close([h])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_close</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>h</literal> est une figure de type uicontrol,
+ <literal>mtlb_close(h)</literal> peut être remplacé par <literal>close(h)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>h</literal> est une figure graphique,
+ <literal>mtlb_close(h)</literal> peut être remplacé par <literal>delete(h)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_close</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="xdel">xdel</link>
+ </member>
+ <member>
+ <link linkend="delete">delete</link>
+ </member>
+ <member>
+ <link linkend="winsid">winsid</link>
+ </member>
+ <member>
+ <link linkend="close">close</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_colordef.xml b/modules/compatibility_functions/help/fr_FR/mtlb_colordef.xml
new file mode 100755
index 000000000..7289c1326
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_colordef.xml
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_colordef">
+ <refnamediv>
+ <refname>mtlb_colordef</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab colordef</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalente à la fonction Matlab <literal>colordef</literal> mais il existe
+ des instructions équivalentes.
+ </para>
+ <para>
+ La fonction <literal>h = mtlb_colordef(color_option)</literal> ou
+ <literal>h = mtlb_colordef(fig,color_option)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>colordef(color_option)</literal> ou
+ <literal>colordef(fig,color_option)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_colordef</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Pour les appels avec un paramètre d'entrée, si <literal>color_option</literal> est égal à "black" ou "none"
+ <literal>mtlb_colordef(color_option)</literal> peut être remplacé par <literal>fig = gcf();fig.background = -1;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec un paramètre d'entrée, si <literal>color_option</literal> est égal à "white"
+ <literal>mtlb_colordef(color_option)</literal> peut être remplacé par <literal>fig = gcf();fig.background = -2;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux paramètres d'entrée, si <literal>fig</literal> est un handle graphique et
+ <literal>color_option</literal> est égal à "black" ou "none"
+ <literal>mtlb_colordef(color_option)</literal> peut être remplacé par <literal>fig.background = -1;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux paramètres d'entrée, si <literal>fig</literal> est un handle graphique et
+ <literal>color_option</literal> est égal à "white"
+ <literal>mtlb_colordef(color_option)</literal> peut être remplacé par <literal>fig.background = -2;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux paramètres d'entrée, si <literal>fig</literal> est égal à "new" et
+ <literal>color_option</literal> est égal à "black" ou "none"
+ <literal>mtlb_colordef(color_option)</literal> peut être remplacé par <literal>fig = scf(max(winsid())+1);fig.background = -1;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux paramètres d'entrée, si <literal>fig</literal> est égal à "new" et
+ <literal>color_option</literal> est égal à "white"
+ <literal>mtlb_colordef(color_option)</literal> peut être remplacé par <literal>fig = scf(max(winsid())+1);fig.background = -2;</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec un paramètre de sortie <literal>h</literal>, ajouter <literal>h = fig;</literal> à la suite des instructions équivalentes.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_colordef</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="figure_properties">figure_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_cumprod.xml b/modules/compatibility_functions/help/fr_FR/mtlb_cumprod.xml
new file mode 100755
index 000000000..5446ba6a4
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_cumprod.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_cumprod">
+ <refnamediv>
+ <refname>mtlb_cumprod</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab cumprod</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>cumprod</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un argument d'entrée (<literal>cumsum(A)</literal>) : La fonction <literal>cumprod</literal> de Matlab
+ traite les valeurs suivant la première dimension qui n'est pas 1 comme des vecteurs alors
+ que Scilab traite toutes les valeurs de A.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux arguments d'entrée (<literal>cumprod(A,dim)</literal>) : Matlab tolère une valeur de
+ <literal>dim</literal> supérieure au nombre de dimensions de A alors que Scilab renvoie un
+ message d'erreur dans ce cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>R = mtlb_cumprod(A,[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>cumprod(A,[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_cumprod</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est inférieure ou égale au nombre de dimensiopns de A
+ <literal>R = mtlb_cumprod(A,dim)</literal> peut être remplacé par <literal>R = cumprod(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est supérieure au nombre de dimensiopns de A
+ <literal>R = mtlb_cumprod(A,dim)</literal> peut être remplacé par <literal>R = A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_cumprod</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_cumsum.xml b/modules/compatibility_functions/help/fr_FR/mtlb_cumsum.xml
new file mode 100755
index 000000000..590eb6d38
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_cumsum.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_cumsum">
+ <refnamediv>
+ <refname>mtlb_cumsum</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab cumsum</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>cumsum</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un argument d'entrée (<literal>cumsum(A)</literal>) : La fonction <literal>cumsum</literal> de Matlab
+ traite les valeurs suivant la première dimension qui n'est pas 1 comme des vecteurs alors
+ que Scilab traite toutes les valeurs de A.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux arguments d'entrée (<literal>cumsum(A,dim)</literal>) : Matlab tolère une valeur de
+ <literal>dim</literal> supérieure au nombre de dimensions de A alors que Scilab renvoie un
+ message d'erreur dans ce cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>R = mtlb_cumsum(A,[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>cumsum(A,[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_cumsum</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est inférieure ou égale au nombre de dimensiopns de A
+ <literal>R = mtlb_cumsum(A,dim)</literal> peut être remplacé par <literal>R = cumsum(A,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>dim</literal> est supérieure au nombre de dimensiopns de A
+ <literal>R = mtlb_cumsum(A,dim)</literal> peut être remplacé par <literal>R = A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_cumsum</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_dec2hex.xml b/modules/compatibility_functions/help/fr_FR/mtlb_dec2hex.xml
new file mode 100755
index 000000000..a9246f50f
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_dec2hex.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_dec2hex">
+ <refnamediv>
+ <refname>mtlb_dec2hex</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab dec2hex</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>dec2hex</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec la matrice vide : La fonction Matlab <literal>dec2hex</literal> retourne "" mais la fonction Scilab renvoie [].
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée complexes : La fonction Matlab <literal>dec2hex</literal> enl�ve
+ automatiquement la partie imaginaire mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ La fonction Matlab <literal>dec2hex</literal> renvoie toujours un vecteur colonne mais
+ la fonction Scilab renvoie un matrice de la même taille que le paramètre d'entrée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ La fonction Matlab <literal>dec2hex</literal> peut avoir deux paramètres d'entrée mais pas dans Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_dec2hex(D[,N])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>dec2hex(D[,N])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_dec2hex</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>D</literal> n'est pas une matrice vide,
+ <literal>mtlb_dec2hex(D)</literal> peut être remplacé par
+ <literal>matrix(dec2hex(real(D)),-1,1)</literal> si <literal>D</literal> est complexe et par
+ <literal>matrix(dec2hex(D),-1,1)</literal> dans les autres cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_dec2hex</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_delete.xml b/modules/compatibility_functions/help/fr_FR/mtlb_delete.xml
new file mode 100755
index 000000000..d728f056a
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_delete.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_delete">
+ <refnamediv>
+ <refname>mtlb_delete</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab delete</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ La fonction <literal>mtlb_delete(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>delete(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_delete</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une chaîne de caractères
+ <literal>mtlb_delete(A)</literal> peut être remplacé par <literal>mdelete(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un handle graphique
+ <literal>mtlb_delete(A)</literal> peut être remplacé par <literal>delete(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_delete</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mdelete">mdelete</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_diag.xml b/modules/compatibility_functions/help/fr_FR/mtlb_diag.xml
new file mode 100755
index 000000000..9cdbf0290
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_diag.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_diag">
+ <refnamediv>
+ <refname>mtlb_diag</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab diag</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>diag</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des matrices de chaînes de caractères : La fonction <literal>diag</literal> de Scilab considère
+ les chaînes comme des objets alors que Matlab considère chaque caractère séparément.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>y = mtlb_diag(x[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>y = diag(x[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_diag</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>x</literal> n'est pas une matrice de chaînes de caractères
+ <literal>y = mtlb_diag(x,dim)</literal> peut être remplacé par <literal>y = diag(x[,dim])</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_diag</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_diff.xml b/modules/compatibility_functions/help/fr_FR/mtlb_diff.xml
new file mode 100755
index 000000000..f9acf79aa
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_diff.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_diff">
+ <refnamediv>
+ <refname>mtlb_diff</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab diff</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>diff</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée : la fonction <literal>diff</literal> de Scilab considère
+ toutes les valeurs du premier paramètre comm un vecteur ce que Matlab ne fait pas.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec trois paramètres d'entrée : si la dimension du premier paramètre suivant la dimension
+ donnée par le troisième paramètre atteint 1 avant que la fin des n itérations, Matlab passe
+ à la dimension suivante n'étant pas un 1 ce que Scilab ne fait pas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_diff(A[,n[,dim]])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>diff(A[,n[,dim]])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les entrées pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_diff</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec deux entrées, si <literal>A</literal> est un scalaire ou un vecteur
+ <literal>mtlb_diff(A,n)</literal> peut être remplacé par <literal>diff(A,n)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux entrées, si la taille de A suivant la dimension donnée par <literal>dim</literal> ne peut pas atteindre 1
+ <literal>mtlb_diff(A,n,dim)</literal> peut être remplacé par <literal>diff(A,n,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_diff</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_dir.xml b/modules/compatibility_functions/help/fr_FR/mtlb_dir.xml
new file mode 100755
index 000000000..6f74479bb
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_dir.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_dir">
+ <refnamediv>
+ <refname>mtlb_dir</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab dir</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ La fonction <literal>dir</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Quand le résultat est stocké dans une variable: La fonction Matlab <literal>dir</literal> renvoie une structure
+ mais la fonction Scilab retourne une tlist de type 'dir', ce qui fait que les données ne peuvent être
+ extraites de la même manière.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_dir([path])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>dir([path])</literal> quand la sortie est stockée dans une variable.
+ Il n'est pas possible de remplacer cette fonction, sinon (si on la remplace par <literal>dir</literal>)
+ les données ne pourront pas être extraites comme dans Matlab. Par exemple, l'équivalent Scilab pour l'instruction Matlab
+ <literal>L=dir;file_name=L(1).name;</literal> est <literal>L=dir();file_name=L.name(1);</literal>.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_dir</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_double.xml b/modules/compatibility_functions/help/fr_FR/mtlb_double.xml
new file mode 100755
index 000000000..8d92bb5f9
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_double.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_double">
+ <refnamediv>
+ <refname>mtlb_double</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab double</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>double</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée de type chaîne de caractère : La fonction <literal>double</literal> de Scilab
+ ne tolère pas ce type d'entrée alors que la fonction <literal>double</literal> de Matlab retourne
+ une matrice de codes ASCII.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée de type booléen : La fonction <literal>double</literal> de Scilab
+ ne tolère pas ce type d'entrée alors que la fonction <literal>double</literal> de Matlab retourne
+ une matrice de doubles.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_double(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>double(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était <literal>A</literal> pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_double</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une chaîne de caractère
+ <literal>mtlb_double(A)</literal> peut être remplacé par <literal>asciimat(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de booléens
+ <literal>mtlb_double(A)</literal> peut être remplacé par <literal>bool2s(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de doubles
+ <literal>mtlb_double(A)</literal> peut être remplacé par <literal>A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_double</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="asciimat">asciimat</link>
+ </member>
+ <member>
+ <link linkend="bool2s">bool2s</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_e.xml b/modules/compatibility_functions/help/fr_FR/mtlb_e.xml
new file mode 100755
index 000000000..5e97b42b9
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_e.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_e">
+ <refnamediv>
+ <refname>mtlb_e</refname>
+ <refpurpose>Fonction d'émulation de l'extraction Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, l'extraction se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Lors de l'extraction de données d'une matrice avec comme indice un vecteur :
+ Matlab retourne un vecteur ligne alors que Scilab retourne un vecteur colonne.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Lors de l'extraction de données d'une matrice d'une chaîne de caractères : étant donné que
+ les matrices de chaînes de caractères peuvent être adressées comme tout autre type de
+ matrice dans Matlab (chaque caractère peut être adressé),
+ l'extraction à partir d'une telle matrice ne change pas des autres types. Mais dans Scilab
+ ceci ne peut être fait de la même manière et la fonction <literal>part</literal> doit être utilisée.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_e(B,k)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A=B(k)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_e</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>B</literal> est un vecteur
+ <literal>A=mtlb_e(B,k)</literal> peut être remplacé par <literal>A=B(k)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>B</literal> est une matrice
+ <literal>A=mtlb_e(B,k)</literal> peut être remplacé par <literal>A=B(k).'</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>B</literal> est une chaîne de caractères et
+ k est une scalaire ou un vecteur
+ <literal>A=mtlb_e(B,k)</literal> peut être remplacé par <literal>A=part(B,k)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_e</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ <member>
+ <link linkend="part">part</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_echo.xml b/modules/compatibility_functions/help/fr_FR/mtlb_echo.xml
new file mode 100755
index 000000000..ad305a451
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_echo.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_echo">
+ <refnamediv>
+ <refname>mtlb_echo</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab echo</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour la fonction Matlab <literal>echo</literal> mais quelques cas particuliers peuvent être remplacés par des appels à la fonction Scilab <literal>mode</literal>:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>echo</literal> : est équivalent à <literal>mode(abs(mode()-1))</literal> dans Scilab pour les scripts et les fonctions non-compilées
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>echo on</literal> : est équivalent à <literal>mode(1)</literal> dans Scilab pour les scripts et les fonctions non-compilées
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>echo off</literal> : est équivalent à <literal>mode(0)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_echo(arg1[,arg2])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>echo arg1 [arg2]</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_echo</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>arg1</literal> est égal à "on"
+ <literal>mtlb_echo(arg1)</literal> peut être remplacé par <literal>mode(1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>arg1</literal> est égal à "off"
+ <literal>mtlb_echo(arg1)</literal> peut être remplacé par <literal>mode(0)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_echo</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mode">mode</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_eval.xml b/modules/compatibility_functions/help/fr_FR/mtlb_eval.xml
new file mode 100755
index 000000000..04308f95f
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_eval.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_eval">
+ <refnamediv>
+ <refname>mtlb_eval</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab eval</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ L'équivalent Scilab pour la fonction Matlab <literal>eval</literal> est différent suivant ses entrées et sorties.
+ </para>
+ <para>
+ La fonction <literal>mtlb_eval(str1,str2)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>eval</literal> parce qu'il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_eval</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Pour les appels avec une entrée et pas de sortie,
+ <literal>mtlb_eval(str1)</literal> peut être remplacé par <literal>evstr(str1)</literal>
+ si <literal>str1</literal> est une expression Scilab valid
+ ou par <literal>execstr(str1)</literal>
+ si <literal>str1</literal> est une instruction Scilab valid.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec une entrée et une sortie,
+ <literal>val=mtlb_eval(str1)</literal> peut être remplacé par <literal>val=evstr(str1)</literal>
+ si <literal>str1</literal> est une instruction Scilab valid.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux entrées et une sortie,
+ <literal>mtlb_eval(str1,str2)</literal> peut être remplacé par:
+ <literal>
+ if execstr(str1,"errcatch")&lt;&gt;0 then
+ execstr(str2);
+ end
+ </literal>
+ si <literal>str1</literal> et <literal>str2</literal> sont des instructions Scilab valides.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec une entrée et plus d'une sortie,
+ <literal>[val1,val2,...]=mtlb_eval(str1)</literal> peut être remplacé par:
+ <literal>execstr("[val1,val2,...]"+str1)</literal>
+ si <literal>str1</literal> est une instruction Scilab valide.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux entrées et plus d'une sortie,
+ <literal>[val1,val2,...]=mtlb_eval(str1,str2)</literal> peut être remplacé par:
+ <literal>
+ if execstr("[val1,val2,...]"+str1,"errcatch")&lt;&gt;0 then
+ execstr("[val1,val2,...]"+str2);
+ end
+ </literal>
+ si <literal>str1</literal> et <literal>str2</literal> sont des instructions Scilab valides.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_eval</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="evstr">evstr</link>
+ </member>
+ <member>
+ <link linkend="execstr">execstr</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_exist.xml b/modules/compatibility_functions/help/fr_FR/mtlb_exist.xml
new file mode 100755
index 000000000..d994df896
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_exist.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_exist">
+ <refnamediv>
+ <refname>mtlb_exist</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab exist</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour la fonction Matlab <literal>exist</literal> sauf si l'entrée est une variable.
+ La fonction Scilab <literal>mtlb_exist</literal> est une émulation partielle de cette fonction.
+ </para>
+ <para>
+ La fonction <literal>r = mtlb_exist(nam[,tp])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>exist(nam[,tp])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_exist</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée et si <literal>nam</literal> est un nom de variable,
+ <literal>mtlb_exist(nam)</literal> peut être remplacé par <literal>exists(nam)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_exist</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="exists">exists</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_eye.xml b/modules/compatibility_functions/help/fr_FR/mtlb_eye.xml
new file mode 100755
index 000000000..e29b29097
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_eye.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_eye">
+ <refnamediv>
+ <refname>mtlb_eye</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab eye</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>eye</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>eye</literal> retourne une
+ matrice n x n alors que Scilab retourne 1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_eye(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>eye(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_eye</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_eye(A)</literal> peut être remplacé par <literal>eye(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_eye(A)</literal> peut être remplacé par <literal>eye(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_eye</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_false.xml b/modules/compatibility_functions/help/fr_FR/mtlb_false.xml
new file mode 100755
index 000000000..d8044032c
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_false.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_false">
+ <refnamediv>
+ <refname>mtlb_false</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab false</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour la fonction Matlab <literal>false</literal>, cependant la fonction
+ Scilab <literal>zeros</literal> retourne un résultat interprété de la même façon pour Scilab.
+ </para>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>false</literal> et la fonction Scilab <literal>zeros</literal>se comporte différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>false</literal> retourne une
+ matrice n x n alors que la fonction Scilab <literal>zeros</literal> retourne 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_false(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>false(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_false</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_false(A)</literal> peut être remplacé par <literal>zeros(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_false(A)</literal> peut être remplacé par <literal>zeros(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_false</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fft.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fft.xml
new file mode 100755
index 000000000..460a03529
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fft.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fft">
+ <refnamediv>
+ <refname>mtlb_fft</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fft</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>fft</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée : si ce paramètre est un scalaire ou un vecteur l'équivalent Scilab
+ pour la fonction Matlab <literal>fft</literal> est <literal>fft(...,-1)</literal>
+ et si ce paramètre est une matrice l'équivalent Scilab pour l'appel Matlab à <literal>fft</literal>
+ est <literal>fft(...,-1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_fft(X[,n,[job]])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fft(X[,n,[job]])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les entrées pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_fft</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>X</literal> est un scalaire ou un vecteur
+ <literal>mtlb_fft(X,-1)</literal> peut être remplacé par <literal>fft(X,-1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>X</literal> est une matrice
+ <literal>mtlb_fft(X,-1)</literal> peut être remplacé par <literal>fft(X,-1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fft</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fftshift.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fftshift.xml
new file mode 100755
index 000000000..f74d037a3
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fftshift.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fftshift">
+ <refnamediv>
+ <refname>mtlb_fftshift</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fftshift</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>fftshift</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec les chaînes de caractère : étant donné que les chaînes de caractères sont vues différemment par Matlab et Scilab, le résultat peut être différent pour ce type d'entrée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée : Matlab autorise <literal>dim</literal> a être supérieur au nombre de dimension de <literal>A</literal> mais pas Scilab (message d'erreur).
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_fftshift(A,[dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fftshift(A,[dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_fftshift</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères,
+ <literal>mtlb_fftshift(A)</literal> peut être remplacé par <literal>fftshift(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères et <literal>dim</literal> est inférieur ou égal au nombre de dimension de <literal>A</literal>,
+ <literal>mtlb_fftshift(A,dim)</literal> peut être remplacé par <literal>fftshift(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fftshift</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_find.xml b/modules/compatibility_functions/help/fr_FR/mtlb_find.xml
new file mode 100755
index 000000000..635a7c201
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_find.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_find">
+ <refnamediv>
+ <refname>mtlb_find</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab find</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>find</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée qui est un vecteur colonne ou une matrice : La fonction Matlab <literal>find</literal>
+ retourne un(des) vecteur(s) colonne alors que Scilab retourne un(des) vecteur(s) ligne.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec trois paramètres de sortie : La fonction Matlab <literal>find</literal> peut retourner trois valeurs
+ mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>[i[,j[,v]]] = mtlb_find(B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>[i[,j[,v]]] = find(B)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_find</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Pour un appel avec un seul paramètre de sortie, si <literal>B</literal> est un vecteur ligne,
+ <literal>i = mtlb_find(B)</literal> peut être remplacé par <literal>i = find(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour un appel avec un seul paramètre de sortie, si <literal>B</literal> n'est pas un vecteur ligne,
+ <literal>i = mtlb_find(B)</literal> peut être remplacé par <literal>i = matrix(find(B),-1,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour un appel avec deux paramètres de sortie, si <literal>B</literal> est un vecteur ligne,
+ <literal>[i,j] = mtlb_find(B)</literal> peut être remplacé par <literal>[i,j] = find(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour un appel avec un seul paramètre de sortie, si <literal>B</literal> n'est pas un vecteur ligne,
+ <literal>[i,j] = mtlb_find(B)</literal> peut être remplacé par
+ <literal>[i,j] = find(B);i = matrix(i,-1,1);j = matrix(j,-1,1);</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_find</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_findstr.xml b/modules/compatibility_functions/help/fr_FR/mtlb_findstr.xml
new file mode 100755
index 000000000..28f3c3581
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_findstr.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_findstr">
+ <refnamediv>
+ <refname>mtlb_findstr</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab findstr</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalente à la fonction Matlab <literal>findstr</literal>.
+ </para>
+ <para>
+ La fonction <literal>mtlb_findstr(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>findstr(A,B)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_findstr</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est toujours plus longue que <literal>B</literal>
+ (i.e. <literal>strfind</literal> peut remplacer <literal>findstr</literal> en Matlab),
+ <literal>mtlb_findstr(A,B)</literal> peut être remplacé par <literal>strindex(A,B)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_findstr</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fliplr.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fliplr.xml
new file mode 100755
index 000000000..6cf28c019
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fliplr.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fliplr">
+ <refnamediv>
+ <refname>mtlb_fliplr</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fliplr</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>fliplr</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée de type chaîne de caractère : étant donné que Scilab et Matlab ne considèrent pas les chaînes de caractère de la même façon, le résultat pout être différent pour une entrée de ce type.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_fliplr(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fliplr(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_fliplr</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères,
+ <literal>mtlb_fliplr(A)</literal> peut être remplacé par <literal>fliplr(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fliplr</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fopen.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fopen.xml
new file mode 100755
index 000000000..669af1fb5
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fopen.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fopen">
+ <refnamediv>
+ <refname>mtlb_fopen</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fopen</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>fopen</literal> et la fonction Scilab <literal>mopen</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ La fonction Scilab ne renvoie pas de pessage d'erreur utilisable
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ L'indentifieur de fichier n'est pas initialisé dans Scilab en cas d'erreur alors que Matlab lui fixe la valeur <literal>-1</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ La fonction Matlab peut fonctionner avec des arguments qui n'existent pas en Scilab : options de permission...
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_fopen(filename,permission)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fopen(filename,permission)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_fopen</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si le message d'erreur n'est pas utilisé et si aucune erreur ne peut avoir lieu,
+ <literal>mtlb_fopen(filename,permission)</literal> peut être remplacé par <literal>mopen(filename,permission,0)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fopen</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_format.xml b/modules/compatibility_functions/help/fr_FR/mtlb_format.xml
new file mode 100755
index 000000000..038b5ea2f
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_format.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_format">
+ <refnamediv>
+ <refname>mtlb_format</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab format</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>format</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Certains formats Matlab n'existent pas en Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ La séquence d'appel de <literal>format</literal> est différente en Scilab et Matlab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_format(type,prec)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>format([type prec])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_format</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>type=""</literal> et <literal>prec=""</literal>
+ <literal>mtlb_format("","")</literal> peut être remplacé par <literal>format("v",6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="+"</literal> et <literal>prec=""</literal>
+ <literal>mtlb_format("+","")</literal> peut être remplacé par <literal>format(6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="long"</literal> et <literal>prec=""</literal>
+ <literal>mtlb_format("long","")</literal> peut être remplacé par <literal>format(16)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="long"</literal> et <literal>prec="e"</literal>
+ <literal>mtlb_format("long","e")</literal> peut être remplacé par <literal>format("e"16)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="long"</literal> et <literal>prec="g"</literal>
+ <literal>mtlb_format("long","g")</literal> peut être remplacé par <literal>format("e"16)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="short"</literal> et <literal>prec=""</literal>
+ <literal>mtlb_format("short","")</literal> peut être remplacé par <literal>format(6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="short"</literal> et <literal>prec="e"</literal>
+ <literal>mtlb_format("short","e")</literal> peut être remplacé par <literal>format("e"6)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>type="short"</literal> et <literal>prec="g"</literal>
+ <literal>mtlb_format("short","g")</literal> peut être remplacé par <literal>format("e"6)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_format</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fprintf.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fprintf.xml
new file mode 100755
index 000000000..cbb6b1e69
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fprintf.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fprintf">
+ <refnamediv>
+ <refname>mtlb_fprintf</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fprintf</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab exact pour la fonction Matlab <literal>fprintf</literal>. La fonction Scilab <literal>mfprintf</literal>
+ et la fonction Matlab <literal>fprintf</literal> se comportent différemment dans beaucoup de cas mais sont équivalentes dans plusieurs cas.
+ </para>
+ <para>
+ La fonction <literal>mtlb_fprintf(varargin)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fprintf</literal>. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Il est quelquefois possible de remplacer les appels à
+ <literal>mtlb_fprintf</literal> par des appels à <link linkend="mfprintf">mfprintf</link>.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fprintf</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mfprintf">mfprintf</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fread.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fread.xml
new file mode 100755
index 000000000..4929db11c
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fread.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fread">
+ <refnamediv>
+ <refname>mtlb_fread</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fread</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour la fonction Matlab <literal>fread</literal>. La fonction Scilab <literal>mget</literal>
+ et la fonction Matlab <literal>fread</literal> se comportent différemment dans beaucoup de cas mais sont équivalentes dans plusieurs cas.
+ </para>
+ <para>
+ La fonction <literal>mtlb_fread(varargin)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fread</literal>. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Il est quelquefois possible de remplacer les appels à
+ <literal>mtlb_fread</literal> par des appels à <link linkend="mget">mget</link>.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fread</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mget">mget</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fscanf.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fscanf.xml
new file mode 100755
index 000000000..8cdf29939
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fscanf.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_fscanf">
+ <refnamediv>
+ <refname>mtlb_fscanf</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab fscanf</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab exact pour la fonction Matlab <literal>fscanf</literal>. La fonction Scilab <literal>mfscanf</literal>
+ et la fonction Matlab <literal>fscanf</literal> se comportent différemment dans beaucoup de cas mais sont équivalentes dans plusieurs cas.
+ </para>
+ <para>
+ La fonction <literal>mtlb_fscanf(varargin)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>fscanf</literal>. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Il est quelquefois possible de remplacer les appels à
+ <literal>mtlb_fscanf</literal> par des appels à <link linkend="mfscanf">mfscanf</link>.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_fscanf</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mfscanf">mfscanf</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_full.xml b/modules/compatibility_functions/help/fr_FR/mtlb_full.xml
new file mode 100755
index 000000000..61ae779ed
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_full.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_full">
+ <refnamediv>
+ <refname>mtlb_full</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab full</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>full</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée de type chaîne de caractère : La fonction Matlab <literal>full</literal>
+ peut être utilisée avec des chaînes de caractères ce qui n'est pas possible dans Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée de type booléen : La fonction Matlab <literal>full</literal>
+ peut être utilisée avec des booléens ce qui n'est pas possible dans Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_full(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>full(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_full</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de doubles
+ <literal>mtlb_full(A)</literal> peut être remplacé par <literal>full(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de booléens
+ <literal>mtlb_full(A)</literal> peut être remplacé par <literal>full(bool2s(A))</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_full</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_fwrite.xml b/modules/compatibility_functions/help/fr_FR/mtlb_fwrite.xml
new file mode 100755
index 000000000..a0a08ca46
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_fwrite.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_write">
+ <refnamediv>
+ <refname>mtlb_write</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab write</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour la fonction Matlab <literal>write</literal>. La fonction Scilab <literal>mput</literal>
+ et la fonction Matlab <literal>write</literal> se comportent différemment dans beaucoup de cas mais sont équivalentes dans plusieurs cas.
+ </para>
+ <para>
+ La fonction <literal>mtlb_write(varargin)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>write</literal>. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Il est quelquefois possible de remplacer les appels à
+ <literal>mtlb_write</literal> par des appels à <link linkend="mput">mput</link>.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_write</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mput">mput</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_grid.xml b/modules/compatibility_functions/help/fr_FR/mtlb_grid.xml
new file mode 100755
index 000000000..ddd8ea866
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_grid.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_grid">
+ <refnamediv>
+ <refname>mtlb_grid</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab grid</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab equivalente à la fonction Matlab <literal>grid</literal> mais il existe des instructions équivalentes
+ </para>
+ <para>
+ La fonction <literal>mtlb_grid(flag_or_handle[,flag])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>grid(flag_or_handle[,flag])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_grid</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée, si <literal>flag</literal> est égal à "on"
+ <literal>mtlb_grid(flag)</literal> peut être remplacé par <literal>set(gca(),"grid",[1 1])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée, si <literal>flag</literal> est égal à "off"
+ <literal>mtlb_grid(flag)</literal> peut être remplacé par <literal>set(gca(),"grid",[-1 -1])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée, si <literal>flag</literal> est égal à "on"
+ <literal>mtlb_grid(axes_handle,flag)</literal> peut être remplacé par <literal>axes_handle.grid=[1 1]</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée, si <literal>flag</literal> est égal à "off"
+ <literal>mtlb_grid(axes_handle,flag)</literal> peut être remplacé par <literal>axes_handle.grid=[-1 -1]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_grid</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="axes_properties">axes_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_hold.xml b/modules/compatibility_functions/help/fr_FR/mtlb_hold.xml
new file mode 100755
index 000000000..46fb3dccb
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_hold.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_hold">
+ <refnamediv>
+ <refname>mtlb_hold</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab hold</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab equivalente à la fonction Matlab <literal>hold</literal> mais il existe des instructions équivalentes
+ </para>
+ <para>
+ La fonction <literal>mtlb_hold(flag)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>hold flag</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_hold</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>flag</literal> est égal à "on"
+ <literal>mtlb_hold(flag)</literal> peut être remplacé par <literal>set(gca(),"auto_clear","off")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>flag</literal> est égal à "off"
+ <literal>mtlb_hold(flag)</literal> peut être remplacé par <literal>set(gca(),"auto_clear","on")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_hold</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="axes_properties">axes_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_i.xml b/modules/compatibility_functions/help/fr_FR/mtlb_i.xml
new file mode 100755
index 000000000..8af56d13b
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_i.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_i">
+ <refnamediv>
+ <refname>mtlb_i</refname>
+ <refpurpose>Fonction d'émulation de l'insertion de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, l'insertion se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En insérant une matrice dans une variable : Matlab ajuste automatiquement la taille
+ de la variable de retour pour qu'elle corresponde avec la matrice à insérer mais pas Scilab.
+ Par exemple, avec A=1, A([1,2,3,4])=[1,2;3,4]) retourne un message d'erreur dans Scilab
+ alors que dans Matlab on obtient A=[1,2,3,4]. Si des valeurs manquent par rapport aux
+ indices donnés pour insérer, Matlab remplit la valeur de retour avec des zéros.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Lors de l'insertion de données d'une matrice d'une chaîne de caractères : étant donné que
+ les matrices de chaînes de caractères peuvent être adressées comme tout autre type de
+ matrice dans Matlab (chaque caractère peut être adressé),
+ l'insertion à partir dans une telle matrice ne change pas des autres types. Mais dans Scilab
+ ceci ne peut être fait de la même manière... <literal>mtlb_is</literal> est une alternative.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>A=mtlb_i(A,k,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A(k)=B</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_i</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un vecteur
+ <literal>A=mtlb_i(A,k,B)</literal> peut être remplacé par <literal>A(k)=B</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> sont des vecteurs lignes ou colonnes
+ <literal>A=mtlb_i(A,k,B)</literal> peut être remplacé par <literal>A(k)=B</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_i</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ <member>
+ <link linkend="mtlb_is">mtlb_is</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_ifft.xml b/modules/compatibility_functions/help/fr_FR/mtlb_ifft.xml
new file mode 100755
index 000000000..e6af2f3f4
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_ifft.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_ifft">
+ <refnamediv>
+ <refname>mtlb_fft</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab ifft</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>ifft</literal> et la fonction Scilab <literal>fft</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée : si ce paramètre est un scalaire ou un vecteur l'équivalent Scilab
+ pour la fonction Matlab <literal>ifft(A)</literal> est <literal>fft(A,1)</literal>
+ et si ce paramètre est une matrice l'équivalent Scilab pour l'appel Matlab à <literal>ifft</literal>
+ est <literal>fft(A,1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_ifft(X[,n,[job]])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>ifft(X[,n,[job]])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les entrées pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_ifft</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>X</literal> est un scalaire ou un vecteur
+ <literal>mtlb_ifft(X,1)</literal> peut être remplacé par <literal>fft(X,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>X</literal> est une matrice
+ <literal>mtlb_ifft(X,1)</literal> peut être remplacé par <literal>fft(X,1,2,1)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_ifft</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_imp.xml b/modules/compatibility_functions/help/fr_FR/mtlb_imp.xml
new file mode 100755
index 000000000..bf55e46b0
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_imp.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_imp">
+ <refnamediv>
+ <refname>mtlb_imp</refname>
+ <refpurpose>Fonction d'émulation de l'opérateur "deux points" de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, l'opérateur "deux points" se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des matrices vides : L'opérateur <literal>:</literal> doit être utilisé avec des scalaires dans Scilab
+ et retourne un message d'erreur quand on l'utilise avec des matrices vides alors que Matlab renvoie []
+ dans tous ces cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_imp(A,B[,C])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A:B[:C]</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_imp</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal>, <literal>B</literal> et <literal>C</literal> ne sont pas des matrices vides
+ <literal>mtlb_imp(A,B[,C])</literal> peut être remplacé par <literal>A:B[:C]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_imp</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_int16.xml b/modules/compatibility_functions/help/fr_FR/mtlb_int16.xml
new file mode 100755
index 000000000..1c964a6a2
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_int16.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_int16">
+ <refnamediv>
+ <refname>mtlb_int16</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab int16</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>int16</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée complexe : La fonction Matlab <literal>int16</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%inf</literal> : Matlab retourne 32767 alors que Scilab retourne -32768.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%nan</literal> : Matlab retourne 0 alors que Scilab retourne -32768.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>-%nan</literal> : Matlab retourne 0 alors que Scilab retourne -32768.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_int16(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>int16(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_int16</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ne contient pas de valeur <literal>%inf</literal>, <literal>%nan</literal> ou <literal>-%nan</literal>
+ <literal>mtlb_int16(A)</literal> peut être remplacé par <literal>int16(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_int16</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_int32.xml b/modules/compatibility_functions/help/fr_FR/mtlb_int32.xml
new file mode 100755
index 000000000..a77e40e67
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_int32.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_int32">
+ <refnamediv>
+ <refname>mtlb_int32</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab int32</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>int32</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée complexe : La fonction Matlab <literal>int32</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%inf</literal> : Matlab retourne 2147483647 alors que Scilab retourne -2147483648.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%nan</literal> : Matlab retourne 0 alors que Scilab retourne -2147483648.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>-%nan</literal> : Matlab retourne 0 alors que Scilab retourne -2147483648.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_int32(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>int32(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_int32</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ne contient pas de valeur <literal>%inf</literal>, <literal>%nan</literal> ou <literal>-%nan</literal>
+ <literal>mtlb_int32(A)</literal> peut être remplacé par <literal>int32(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_int32</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_int8.xml b/modules/compatibility_functions/help/fr_FR/mtlb_int8.xml
new file mode 100755
index 000000000..edbccd8a7
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_int8.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_int8">
+ <refnamediv>
+ <refname>mtlb_int8</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab int8</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>int8</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée complexe : La fonction Matlab <literal>int8</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%inf</literal> : Matlab retourne 127 alors que Scilab retourne 0.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>-%inf</literal> : Matlab retourne -128 alors que Scilab retourne 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_int8(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>int8(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_int8</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ne contient pas de valeur <literal>%inf</literal> ou <literal>-%inf</literal>
+ <literal>mtlb_int8(A)</literal> peut être remplacé par <literal>int8(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_int8</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_is.xml b/modules/compatibility_functions/help/fr_FR/mtlb_is.xml
new file mode 100755
index 000000000..03737ede5
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_is.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_is">
+ <refnamediv>
+ <refname>mtlb_is</refname>
+ <refpurpose>Fonction d'émulation de l'insertion dans une chaîne de caractères de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ L'insertion se comporte différemment dans Matlab et dans Scilab pour les chaînes de caractères
+ étant donné que celles-ci ne sont pas considérées de la même façon.
+ </para>
+ <para>
+ La fonction <literal>str = mtlb_is(sto,sfrom,i,j)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer les opérations d'insertion dans des
+ chaînes de caractères. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Elle ne peut être remplacée.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_is</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ <member>
+ <link linkend="mtlb_i">mtlb_i</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_isa.xml b/modules/compatibility_functions/help/fr_FR/mtlb_isa.xml
new file mode 100755
index 000000000..1bfaa1ad7
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_isa.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_isa">
+ <refnamediv>
+ <refname>mtlb_isa</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab isa</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalente à la fonction Matlab <literal>isa</literal> mais quand la "classe" d'objet recherchée existe dans Scilab, des expressions équivalentes existent.
+ </para>
+ <para>
+ La fonction <literal>mtlb_isa(OBJ,class)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>isa(OBJ,class)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_isa</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "logical",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>type(OBJ)==4</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "char",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>type(OBJ)==10</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "numeric",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>or(type(OBJ)==[1,5,8])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "intX" (X valant 8, 16 ou 32),
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>typeof(OBJ)=="intX"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "uintX" (X valant 8, 16 ou 32),
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>typeof(OBJ)=="uintX"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "single",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>type(OBJ)==1</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "double",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>type(OBJ)==1</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "cell",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>typeof(OBJ)=="ce"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "struct",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>typeof(OBJ)=="st"</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "function_handle",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>type(OBJ)==13</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "sparse",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>type(OBJ)==5</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>class</literal> est égal à "lti",
+ <literal>mtlb_isa(OBJ,class)</literal> peut être remplacé par <literal>typeof(OBJ)=="state-space"</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_isa</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="type">type</link>
+ </member>
+ <member>
+ <link linkend="typeof">typeof</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_isfield.xml b/modules/compatibility_functions/help/fr_FR/mtlb_isfield.xml
new file mode 100755
index 000000000..750de433f
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_isfield.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_isfield">
+ <refnamediv>
+ <refname>mtlb_isfield</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab isfield</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab equivalente à la fonctions Matlab <literal>isfield(st,f)</literal> et l'expression équivalente se comporte différemment dans certains cas particuliers:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>st</literal> n'est pas une structure : l'équivalent Scilab retourne une erreur alors que Matlab renvoie <literal>0</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_isfield(st,f)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>isfield(st,f)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_isfield</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>st</literal> est une structure
+ <literal>tf = mtlb_isfield(st,f)</literal> peut être remplacé par <literal>allf=getfield(1,st);tf=or(allf(3:$)==f);</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>st</literal> n'est pas une structure
+ <literal>tf = mtlb_isfield(st,f)</literal> peut être remplacé par <literal>tf=%F;</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_isfield</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="getfield">getfield</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_isletter.xml b/modules/compatibility_functions/help/fr_FR/mtlb_isletter.xml
new file mode 100755
index 000000000..1b1239a1f
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_isletter.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_isletter">
+ <refnamediv>
+ <refname>mtlb_isletter</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab isletter</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalente à la fonction Matlab <literal>isletter</literal> et les
+ expressions équivalentes sont assez compliquées, donc
+ <literal>mfile2sci</literal> utilise <literal>mtlb_isletter(A)</literal>pour remplacer <literal>isletter(A)</literal>.
+ Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_isletter</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une chaîne de caractères
+ <literal>tf = mtlb_isletter(A)</literal> peut être remplacé par <literal>tf = zeros(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une chaîne de caractères
+ <literal>tf = mtlb_isletter(A)</literal> peut être remplacé par
+ <literal>tf = (asciimat(A)&gt;=65&amp;asciimat(A)&lt;=90)|(asciimat(A)&gt;=97&amp;asciimat(A)&lt;=122)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_isletter</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_isspace.xml b/modules/compatibility_functions/help/fr_FR/mtlb_isspace.xml
new file mode 100755
index 000000000..43a2e3804
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_isspace.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_isspace">
+ <refnamediv>
+ <refname>mtlb_isspace</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab isspace</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalente à la fonction Matlab <literal>isspace</literal>
+ mais son comportement peut être reproduit.
+ </para>
+ <para>
+ La fonction <literal>mtlb_isspace(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>isspace(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_isspace</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de chaînes de caractères
+ <literal>mtlb_isspace(A)</literal> peut être remplacé par <literal>asciimat(A)==32</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères
+ <literal>mtlb_isspace(A)</literal> peut être remplacé par <literal>zeros(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_isspace</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="asciimat">asciimat</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_l.xml b/modules/compatibility_functions/help/fr_FR/mtlb_l.xml
new file mode 100755
index 000000000..7dd14b3fe
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_l.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_l">
+ <refnamediv>
+ <refname>mtlb_l</refname>
+ <refpurpose>Fonction d'émulation de la division à gauche de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, la division à gauche se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des opérandes de type chaîne de caractères : L'opérateur <literal>\</literal>
+ ne peut pas être utilisé dans Scilab avec des chaînes de caractères, alors que
+ dans Matlab c'est possible. Et dans ce cas, le résultat donné par matlab est
+ tranposé d'une manière très floue...
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_l(a,b)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A\B</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_l</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> ne sont pas des chaînes de caractères
+ <literal>mtlb_l(A,B)</literal> peut être remplacé par <literal>A\B</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_l</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_legendre.xml b/modules/compatibility_functions/help/fr_FR/mtlb_legendre.xml
new file mode 100755
index 000000000..de804e8f1
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_legendre.xml
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_legendre">
+ <refnamediv>
+ <refname>mtlb_legendre</refname>
+ <refpurpose>Fonction d'émulation de la fonction
+ Matlab legendre
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>P=mtlb_legendre(n,X)
+ P=mtlb_legendre(n,X[,normflag])
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>un scalaire, un vecteur, une matrice ou hypermatrice
+ d'elements compris dans [-1 1]
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>n</term>
+ <listitem>
+ <para>un entier positif</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>normflag</term>
+ <listitem>
+ <para>
+ une chaine de caracteres (<literal>'sch'</literal> ou
+ <literal>'norm'</literal>)
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>legendre</literal> se
+ comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ L'appel de fonction Scilab <literal>legendre(m,n,X)</literal> évalue
+ la fonction de legendre de degré <literal>n </literal> et d'ordre
+ <literal>m </literal>pour tous les éléments de <literal>X</literal>. Par
+ contre l'appel de fonction Scilab <literal>legendre(m,n,X)</literal>
+ évalue la fonction de legendre de degré <literal>n</literal> et d'ordre
+ <literal>m=0,1,...,n </literal>pour tous les éléments de
+ <literal>X</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Le mode <literal>normflag='sch'</literal> n'est pas implémenté avec
+ Scilab
+ </para>
+ </listitem>
+ <listitem>
+ <para>La fonction legendre de Scilab ne fonctionne pas si
+ <literal>X</literal> est une hypermatrice
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_legendre(n,X[,normflag])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer
+ <literal>legendre(n,X[,normflag])</literal> quand il n'était pas possible de
+ savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un
+ code Matlab vers Scilab. Cette fonction va déterminer la sémantique
+ correcte pendant l'exécution. Pour obtenir un code plus performant on peut
+ remplacer les appels à <literal>mtlb_legendre</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>If X is a scalar, a vector or a matrix
+ <literal>mtlb_legendre(n,X[,'norm']) </literal> may be replaced by
+ <literal>legendre(n,0:n,X[,'norm'])</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_legendre</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_linspace.xml b/modules/compatibility_functions/help/fr_FR/mtlb_linspace.xml
new file mode 100755
index 000000000..c637ce16a
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_linspace.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_linspace">
+ <refnamediv>
+ <refname>mtlb_linspace</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab linspace</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>linspace</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec les chaînes de caractère: La fonction Matlab <literal>linspace(A,B[,n])</literal> renvoie un vecteur de caractères si <literal>A</literal> ou <literal>B</literal> est une chaîne de caractère, mais la fonction Scilab ne marche pas avec des entrées de ce type.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_linspace(A,B[,n])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>linspace(A,B[,n])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_linspace</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> ne sont pas des chaînes de caractères,
+ <literal>mtlb_linspace(A,B[,n])</literal> peut être remplacé par <literal>linspace(A,B[,n])</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ou <literal>B</literal> est une chaîne de caractères,
+ <literal>mtlb_linspace(A,B[,n])</literal> peut être remplacé par <literal>ascii(linspace(ascii(A),ascii(B)[,n]))</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_linspace</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="ascii">ascii</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_logic.xml b/modules/compatibility_functions/help/fr_FR/mtlb_logic.xml
new file mode 100755
index 000000000..5002e58c2
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_logic.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_logic">
+ <refnamediv>
+ <refname>mtlb_logic</refname>
+ <refpurpose>Fonction d'émulation des opérateurs logiques de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, les opérateurs logiques se comportent différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des opérandes complexes : Les opérateurs <literal>&lt;</literal>, <literal>&lt;=</literal>,
+ <literal>&gt;</literal> et <literal>&gt;=</literal> ne peuvent pas être utilisés dans Scilab
+ avec des opérandes complexes alors que cela est possible dans Matlab. Dans ce cas,
+ seule la partie réelle des opérandes est comparée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec des matrices vides : Si les deux opérandes des opérateurs <literal>&lt;</literal>, <literal>&lt;=</literal>,
+ <literal>&gt;</literal> and <literal>&gt;=</literal> sont des matrices vides, Scilab renvoie un message d'erreur
+ alors que Matlab retourne une matrice vide. Pour les opérateurs <literal>==</literal> et <literal>~=</literal>,
+ si au moins une opérande est une matrice vide alors Matlab renvoie [] alors que Scilab
+ retourne un booléen %T ou %F.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_logic(A,symbol,B)</literal> (avec "symbol" une chaîne de caractères contenant
+ le symbole de l'opérateur) est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A symbol B</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_logic</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> ne sont pas des complexes ni des matrices vides
+ <literal>mtlb_logic(A,symbol,B)</literal> peut être remplacé par <literal>A symbol B</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_logic</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_logical.xml b/modules/compatibility_functions/help/fr_FR/mtlb_logical.xml
new file mode 100755
index 000000000..37fde8336
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_logical.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_logical">
+ <refnamediv>
+ <refname>mtlb_logical</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab logical</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas de fonction Scilab équivalent à la fonction Matlab <literal>logical</literal> mais sont comportement peut être reproduit.
+ </para>
+ <para>
+ La fonction <literal>mtlb_logical(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>logical(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_logical</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de booléens
+ <literal>mtlb_logical(A)</literal> peut être remplacé par <literal>A</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice vide
+ <literal>mtlb_logical(A)</literal> peut être remplacé par <literal>A&lt;&gt;[]</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice vide
+ <literal>mtlb_logical(A)</literal> peut être remplacé par <literal>[]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_logical</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_lower.xml b/modules/compatibility_functions/help/fr_FR/mtlb_lower.xml
new file mode 100755
index 000000000..b7c7fa406
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_lower.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_lower">
+ <refnamediv>
+ <refname>mtlb_lower</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab lower</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>lower(A)</literal> et la fonction Scilab
+ <literal>convstr(A,"l")</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une chaîne de caractères : la fonction Matlab <literal>lower</literal> peut être utilisée
+ avec <literal>A</literal> n'étant pas une chaîne de caractères mais pas la fonction Scilab <literal>convstr</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_lower(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>lower(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_lower</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de chaînes de caractères
+ <literal>mtlb_lower(A)</literal> peut être remplacé par <literal>convstr(A,"l")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères
+ <literal>mtlb_lower(A)</literal> peut être remplacé par <literal>A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_lower</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="convstr">convstr</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_max.xml b/modules/compatibility_functions/help/fr_FR/mtlb_max.xml
new file mode 100755
index 000000000..8073820ff
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_max.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_max">
+ <refnamediv>
+ <refname>mtlb_max</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab max</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>max</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des valeurs complexes : La fonction Matlab <literal>max</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée : La fonction Matlab <literal>max</literal> traite les valeurs
+ suivant la première dimension qui n'est pas 1 alors que Scilab traite l'ensemble des valeurs de l'entrée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée : si l'une d'elles est une matrice vide, Scilab
+ retourne un message d'erreur alors que Matlab renvoie [].
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec trois paramètres d'entrée : si le paramètre <literal>dim</literal> est plus grand que
+ le nombre de dimensions de le première entrée, Scilab retourne un message d'erreur alors que Matlab
+ retourne le premier paramètre.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>[r[,k]] = mtlb_max(A[,B[,dim]])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>[r[,k]] = max(A[,B[,dim]])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_max</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est un scalaire ou un vecteur
+ <literal>[r[,k]] = mtlb_max(A)</literal> peut être remplacé par <literal>max(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est une matrice
+ <literal>[r[,k]] = mtlb_max(A)</literal> peut être remplacé par <literal>max(A,"r")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée, si <literal>A</literal> et <literal>B</literal>
+ sont des matrices réelles et ne sont pas des matrices vides,
+ <literal>[r[,k]] = mtlb_max(A,B)</literal> peut être remplacé par <literal>max(A,B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec trois paramètres d'entrée, si <literal>dim</literal> est inférieur
+ au nombre de dimensions de <literal>A</literal>,
+ <literal>[r[,k]] = mtlb_max(A,[],dim)</literal> peut être remplacé par <literal>max(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_max</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_min.xml b/modules/compatibility_functions/help/fr_FR/mtlb_min.xml
new file mode 100755
index 000000000..30050b30e
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_min.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_min">
+ <refnamediv>
+ <refname>mtlb_min</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab min</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>min</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des valeurs complexes : La fonction Matlab <literal>min</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée : La fonction Matlab <literal>min</literal> traite les valeurs
+ suivant la première dimension qui n'est pas 1 alors que Scilab traite l'ensemble des valeurs de l'entrée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée : si l'une d'elles est une matrice vide, Scilab
+ retourne un message d'erreur alors que Matlab renvoie [].
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec trois paramètres d'entrée : si le paramètre <literal>dim</literal> est plus grand que
+ le nombre de dimensions de le première entrée, Scilab retourne un message d'erreur alors que Matlab
+ retourne le premier paramètre.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>[r[,k]] = mtlb_min(A[,B[,dim]])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>[r[,k]] = min(A[,B[,dim]])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_min</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est un scalaire ou un vecteur
+ <literal>[r[,k]] = mtlb_min(A)</literal> peut être remplacé par <literal>min(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est une matrice
+ <literal>[r[,k]] = mtlb_min(A)</literal> peut être remplacé par <literal>min(A,"r")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée, si <literal>A</literal> et <literal>B</literal>
+ sont des matrices réelles et ne sont pas des matrices vides,
+ <literal>[r[,k]] = mtlb_min(A,B)</literal> peut être remplacé par <literal>min(A,B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec trois paramètres d'entrée, si <literal>dim</literal> est inférieur
+ au nombre de dimensions de <literal>A</literal>,
+ <literal>[r[,k]] = mtlb_min(A,[],dim)</literal> peut être remplacé par <literal>min(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_min</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_mode.xml b/modules/compatibility_functions/help/fr_FR/mtlb_mode.xml
new file mode 100755
index 000000000..8415287ca
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_mode.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_mode">
+ <refnamediv>
+ <refname>mtlb_mode</refname>
+ <refpurpose>choisit le mode de compatibilité Matlab </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>mmode = mtlb_mode()
+ mtlb_mode(mmode)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>mmode </term>
+ <listitem>
+ <para>un booléen
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Les additions et soustractions fonctionnent différemment dans Scilab et Matlab quand un des opérandes est une matrice vide :
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>Scilab</term>
+ <listitem>
+ <para/>
+ <programlisting role=""><![CDATA[
+a=1;
+a+[]
+// -->a
+
+a-[]
+// -->a
+
+[]+a
+// -->a
+
+[]-a
+// -->-a
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Matlab</term>
+ <listitem>
+ <programlisting role="no-scilab-exec"><![CDATA[
+a+[] -->[]
+a-[] -->[]
+[]+a -->[]
+[]-a -->[]
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ <code>mtlb_mode(%t)</code> passe au mode de compatibilité Matlab pour les additions et les soustractions. <code>mtlb_mode(%f)</code> retourne au mode Scilab.
+ </para>
+ <para>
+ <code>mtlb_mode()</code> renvoie la valeur du mode de compatibilité courant (<constant>%t</constant>=Matlab, <constant>%f</constant>=Scilab).
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="empty">empty</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_more.xml b/modules/compatibility_functions/help/fr_FR/mtlb_more.xml
new file mode 100755
index 000000000..be998fbe0
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_more.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_more">
+ <refnamediv>
+ <refname>mtlb_more</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab more</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>more</literal> et la fonction Scilab
+ <literal>lines</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des chaînes de caractères comme entrée : La fonction Matlab <literal>more</literal> accepte
+ "on" et "off" comme entrée mais pas la fonction Scilab <literal>lines</literal>,
+ il existe des équivalents (0 et 60).
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_more(in)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>more(in)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_more</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>in</literal> est égal à "on"
+ <literal>mtlb_more(in)</literal> peut être remplacé par <literal>lines(60)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>in</literal> est égal à "off"
+ <literal>mtlb_more(in)</literal> peut être remplacé par <literal>lines(0)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>in</literal> est un double
+ <literal>mtlb_more(in)</literal> peut être remplacé par <literal>lines(in)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_more</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_num2str.xml b/modules/compatibility_functions/help/fr_FR/mtlb_num2str.xml
new file mode 100755
index 000000000..3c8db7483
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_num2str.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_num2str">
+ <refnamediv>
+ <refname>mtlb_num2str</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab num2str</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>num2str</literal> et ses équivalents Scilab
+ (<literal>string</literal>, <literal>msprintf</literal>) se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée, le second donnant une précision : Il n'y a pas de fonction Scilab équivalente
+ mais <literal>msprintf</literal> peut être utilisée pour émuler ce cas.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée, le second donnant un format : l'équivalent Scilab pour l'expression Matlab
+ <literal>num2string(a,format)</literal> est <literal>msprintf(format,a)</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_num2str(x,f)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>num2str(x,f)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_num2str</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>f</literal> est une chaîne de caractères,
+ <literal>mtlb_num2str(x,f)</literal> peut être remplacé par <literal>msprintf(f,x)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_num2str</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="string">string</link>
+ </member>
+ <member>
+ <link linkend="msprintf">msprintf</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_ones.xml b/modules/compatibility_functions/help/fr_FR/mtlb_ones.xml
new file mode 100755
index 000000000..5cdbb73ec
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_ones.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_ones">
+ <refnamediv>
+ <refname>mtlb_ones</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab ones</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>ones</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>ones</literal> retourne une
+ matrice n x n alors que Scilab retourne 1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_ones(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>ones(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_ones</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_ones(A)</literal> peut être remplacé par <literal>ones(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_ones(A)</literal> peut être remplacé par <literal>ones(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_ones</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_plot.xml b/modules/compatibility_functions/help/fr_FR/mtlb_plot.xml
new file mode 100755
index 000000000..dced16f74
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_plot.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_plot">
+ <refnamediv>
+ <refname>mtlb_plot</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab plot</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ La fonction Matlab <literal>plot</literal> et la fonction Scilab <literal>plot2d</literal> se comportent différemment.
+ </para>
+ <para>
+ La fonction <literal>mtlb_plot(...)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>plot(...)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_plot</literal> quand il n'y a pas de valeur de sortie,
+ dans ce cas, les couleurs doivent être changées par l'utilisateur:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée, si <literal>Y</literal> est réel
+ <literal>mtlb_plot(Y)</literal> peut être remplacé par <literal>plot2d(Y)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée, si <literal>Y</literal> est complex
+ <literal>mtlb_plot(Y)</literal> peut être remplacé par <literal>plot2d(real(Y),imag(Y))</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée <literal>X</literal> et <literal>Y</literal>, si <literal>Y</literal> n'est pas une chaîne de caractères,
+ <literal>mtlb_plot(X,Y)</literal> peut être remplacé par <literal>plot2d(X,Y)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_plot</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="plot2d">plot2d</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_prod.xml b/modules/compatibility_functions/help/fr_FR/mtlb_prod.xml
new file mode 100755
index 000000000..970200d54
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_prod.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_prod">
+ <refnamediv>
+ <refname>mtlb_prod</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab prod</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>prod</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée : La fonction Matlab <literal>prod</literal> traite
+ les valeurs en suivant la première dimension qui n'est pas 1 alors que la fonction Scilab
+ <literal>prod</literal> traite toutes les valeurs de l'entrée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée : La fonction Matlab <literal>prod</literal> peut être
+ utilisée avec le second paramètre donnant une dimension du premier paramètre qui n'existe pas
+ alors que la fonction Scilab <literal>prod</literal> retourne un message d'erreur.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_prod(A[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>prod(A[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_prod</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est une matrice vide, un scalaire ou un vecteur,
+ <literal>mtlb_prod(A)</literal> peut être remplacé par <literal>prod(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est une matrice non-vide,
+ <literal>mtlb_prod(A)</literal> peut être remplacé par <literal>prod(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est hypermatrice,
+ <literal>mtlb_prod(A)</literal> peut être remplacé par <literal>prod(A,firstnonsingleton(A))</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée, si <literal>dim</literal> est inférieure au nombre
+ de dimensions de <literal>A</literal>
+ <literal>mtlb_prod(A,dim)</literal> peut être remplacé par <literal>prod(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_prod</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_rand.xml b/modules/compatibility_functions/help/fr_FR/mtlb_rand.xml
new file mode 100755
index 000000000..0d254529d
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_rand.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_rand">
+ <refnamediv>
+ <refname>mtlb_rand</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab rand</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>rand</literal> se comporte différemment
+ dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>rand</literal> retourne une
+ matrice n x n alors que la fonction Scilab retourne un scalaire.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_rand(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>rand(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_rand</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_rand(A)</literal> peut être remplacé par <literal>rand(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_rand(A)</literal> peut être remplacé par <literal>rand(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_rand</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_randn.xml b/modules/compatibility_functions/help/fr_FR/mtlb_randn.xml
new file mode 100755
index 000000000..705c91d03
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_randn.xml
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_randn">
+ <refnamediv>
+ <refname>mtlb_randn</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab randn</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>randn</literal> et la fonction Scilab
+ <literal>rand(...,"normal")</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>randn</literal> retourne une
+ matrice n x n alors que la fonction Scilab <literal>rand(...,"normal")</literal> retourne un scalaire.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_randn(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>randn(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_randn</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_randn(A)</literal> peut être remplacé par <literal>rand(A,A,"normal")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_randn(A)</literal> peut être remplacé par <literal>rand(A,"normal")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_randn</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_rcond.xml b/modules/compatibility_functions/help/fr_FR/mtlb_rcond.xml
new file mode 100755
index 000000000..674c00d53
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_rcond.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_rcond">
+ <refnamediv>
+ <refname>mtlb_rcond</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab rcond</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>rcond</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une matrice vide : La fonction Matlab <literal>rcond</literal> retourne <literal>Inf</literal>
+ et Scilab retourne <literal>[]</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_rcond(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>rcond(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_rcond</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice vide
+ <literal>mtlb_rcond(A)</literal> peut être remplacé par <literal>rcond(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_rcond</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_realmax.xml b/modules/compatibility_functions/help/fr_FR/mtlb_realmax.xml
new file mode 100755
index 000000000..e250fc657
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_realmax.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_realmax">
+ <refnamediv>
+ <refname>mtlb_realmax</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab realmax</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ L'équivalent Scilab de la fonction Matlab <literal>realmax</literal>
+ est <literal>number_properties</literal> mais tous les cas ne sont pas
+ implémentés :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ L'équivalent Scilab de l'expression Matlab
+ <literal>realmax</literal> ou <literal>realmax('double')</literal> est <literal>number_properties("huge")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour l'expression Matlab <literal>realmax('single')</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_realmax(prec)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>realmax(prec)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_realmax</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>prec</literal> est égale à <literal>"double"</literal>
+ <literal>mtlb_realmax(prec)</literal> peut être remplacé par <literal>number_properties("huge")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_realmax</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="number_properties">number_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_realmin.xml b/modules/compatibility_functions/help/fr_FR/mtlb_realmin.xml
new file mode 100755
index 000000000..754deccfa
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_realmin.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_realmin">
+ <refnamediv>
+ <refname>mtlb_realmin</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab realmin</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ L'équivalent Scilab de la fonction Matlab <literal>realmin</literal>
+ est <literal>number_properties</literal> mais tous les cas ne sont pas
+ implémentés :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ L'équivalent Scilab de l'expression Matlab
+ <literal>realmin</literal> ou <literal>realmin('double')</literal> est <literal>number_properties("tiny")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour l'expression Matlab <literal>realmin('single')</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_realmin(prec)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>realmin(prec)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_realmin</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>prec</literal> est égale à <literal>"double"</literal>
+ <literal>mtlb_realmin(prec)</literal> peut être remplacé par <literal>number_properties("tiny")</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_realmin</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="number_properties">number_properties</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_s.xml b/modules/compatibility_functions/help/fr_FR/mtlb_s.xml
new file mode 100755
index 000000000..8d6f1c607
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_s.xml
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_s">
+ <refnamediv>
+ <refname>mtlb_s</refname>
+ <refpurpose>Fonction d'émulation de la soustraction Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, la soustraction se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des opérandes de type chaîne de caractères : L'opérateur <literal>-</literal>
+ ne peut pas être utilisé dans Scilab avec des chaînes de caractère, alors que
+ Matlab réalise dans ce cas la soustraction des codes ASCII des opérandes.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec une matrice vide : Dans Scilab, si une des
+ opérandes est une matrice vide alors le résultat de la soustraction est
+ l'autre opérande. Dans Matlab si une des opérandes est une matrice
+ vide alors le résultat de la soustraction est soit une erreur (la seconde opérande n'est pas un scalaire)
+ soit une matrice vide.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_s(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A-B</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_s</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> sont des chaînes de caractères,
+ <literal>mtlb_s(A,B)</literal> peut être remplacé par <literal>asciimat(A)-asciimat(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> ne sont pas des matrices vides
+ <literal>mtlb_s(A,B)</literal> peut être remplacé par <literal>A-B</literal>,
+ sinon <literal>mtlb_s(A,B)</literal> peut être remplacé par
+ <literal>[]</literal>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si mtlb_mode()==%T, alors <literal>mtlb_s(A,B)</literal>
+ peut être remplacé par <literal>A-B</literal> dans tous les cas où
+ <literal>A</literal> et <literal>B</literal> ne sont pas des chaînes de caractères.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_s</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="mtlb_mode">mtlb_mode</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_setstr.xml b/modules/compatibility_functions/help/fr_FR/mtlb_setstr.xml
new file mode 100755
index 000000000..e3f137f2c
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_setstr.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_setstr">
+ <refnamediv>
+ <refname>mtlb_setstr</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab setstr</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>setstr</literal> et la fonction Scilab
+ <literal>ascii</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec les chaînes de caractère : la fonction Matlab <literal>setstr</literal> retourne une chaîne de caractères
+ alors que la fonction Scilab <literal>ascii</literal> retourne uen matrice de doubles.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec les matrices de doubles : la fonction Matlab <literal>setstr</literal> retourne une matrice
+ de caractères alors que la fonction Scilab <literal>ascii</literal> retourne une chaine de caractères.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_setstr(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>setstr(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_setstr</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une chaîne de caractères ou une matrice de chaînes
+ <literal>mtlb_setstr(A)</literal> peut être remplacé par <literal>A</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un vecteur ligne de doubles
+ <literal>mtlb_setstr(A)</literal> peut être remplacé par <literal>ascii(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_setstr</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_size.xml b/modules/compatibility_functions/help/fr_FR/mtlb_size.xml
new file mode 100755
index 000000000..2d641edf9
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_size.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_size">
+ <refnamediv>
+ <refname>mtlb_size</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab size</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>size</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée : La fonction Matlab <literal>size</literal> peut être
+ utilisée avec le second paramètre donnant donnant une dimension du premier paramètre
+ qui n'existe pas (retourne 1 dans ce cas) mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec plus d'une paramètre de sortie : si le nombre de paramètres de sortie est plus
+ petit que le nombre de dimension, la dernière sortie est égale au produit de toutes
+ les dimensions restantes dans Matlab mais pas dans Scilab. Si le nombre de sorties
+ est plus grand que le nombre de dimensions, toutes les sorties correspondant à une
+ dimension qui n'existe pas sont égales à 1 en Matlab mais Scilab retourne une erreur dans ce cas.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>[d1,[d2,...]] = mtlb_size(X[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>[d1,[d2,...]] = mtlb_size(X[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_size</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée : si <literal>dim</literal> correspond à une dimension de <literal>X</literal> qui existe
+ <literal>mtlb_size(X,dim)</literal> peut être remplacé par <literal>size(X,dim)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec plus d'un paramètre de sortie : si le nombre des sorties est égal au nombre de dimensions de <literal>X</literal>
+ <literal>[d1,[d2,...]] = mtlb_size(X)</literal> peut être remplacé par <literal>[d1,[d2,...]] = size(X)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_size</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_sort.xml b/modules/compatibility_functions/help/fr_FR/mtlb_sort.xml
new file mode 100755
index 000000000..cc95faa0b
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_sort.xml
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_sort">
+ <refnamediv>
+ <refname>mtlb_sort</refname>
+ <refpurpose>Fonction d'émulation de la fonction
+ Matlab sort
+ </refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>P = mtlb_sort(X)
+ P = mtlb_sort(X,dim[,mode])
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Paramètres</title>
+ <variablelist>
+ <varlistentry>
+ <term>X</term>
+ <listitem>
+ <para>un scalaire, un vecteur, une matrice ou hypermatrice
+ d'elements compris dans [-1 1]un scalaire, un vecteur ou une matrice
+ de réels, de booléens ou une string
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>ndim</term>
+ <listitem>
+ <para>un entier positif</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>mode</term>
+ <listitem>
+ <para>
+ une chaine de caracteres (<literal>"ascend"</literal> or
+ <literal>"descend"</literal>)
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>sort</literal> de
+ Matlab et la fonction <literal>gsort</literal> de Scilab se comportent
+ différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>X</literal> est un vecteur alors l'appel de la fonction
+ <literal>sort(X) </literal>de Matlab est équivalent à l'appel de la
+ fonction <literal>sort(X,'g','i')</literal> de Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>dim=1</literal> (resp. <literal>2</literal>) de Matlab est
+ equivalent au flag <literal>'r'</literal> (resp.<literal> 'c'</literal>) de
+ Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>mode="ascend"</literal> (resp. <literal>"descend"</literal>) est
+ équivalent au flag <literal>'i'</literal> (resp <literal>'d'</literal>) de
+ Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_sort(X,dim[,mode])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>sort(X,dim[,mode])</literal>
+ quand il n'était pas possible de savoir ce qu'étaient les paramètres
+ d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette
+ fonction va déterminer la sémantique correcte pendant l'exécution. Pour
+ obtenir un code plus performant on peut remplacer les appels à
+ <literal>mtlb_sort</literal> par des appels <link linkend="gsort">gsort</link>.
+ </para>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_sort</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_strcmp.xml b/modules/compatibility_functions/help/fr_FR/mtlb_strcmp.xml
new file mode 100755
index 000000000..7db76d403
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_strcmp.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_strcmp">
+ <refnamediv>
+ <refname>mtlb_strcmp</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab strcmp</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas dans Scilab de fonction équivalente à la fonction Matlab <literal>strcmp</literal> mais il existe des instructions équivalentes.
+ </para>
+ <para>
+ La fonction <literal>mtlb_strcmp(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>strcmp(A,B)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_strcmp</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> sont des chaînes de caractères
+ <literal>mtlb_strcmp(A,B)</literal> peut être remplacé par <literal>A==B</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et/ou <literal>B</literal> n'est pas une chaîne de caractères
+ <literal>mtlb_strcmp(A,B)</literal> peut être remplacé par <literal>0</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_strcmp</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_strcmpi.xml b/modules/compatibility_functions/help/fr_FR/mtlb_strcmpi.xml
new file mode 100755
index 000000000..5e4ac60f4
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_strcmpi.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_strcmpi">
+ <refnamediv>
+ <refname>mtlb_strcmpi</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab strcmpi</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas dans Scilab de fonction équivalente à la fonction Matlab <literal>strcmpi</literal> mais il existe des instructions équivalentes.
+ </para>
+ <para>
+ La fonction <literal>mtlb_strcmpi(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>strcmpi(A,B)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_strcmpi</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> sont des chaînes de caractères
+ <literal>mtlb_strcmpi(A,B)</literal> peut être remplacé par <literal>convstr(A)==convstr(B)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et/ou <literal>B</literal> n'est pas une chaîne de caractères
+ <literal>mtlb_strcmpi(A,B)</literal> peut être remplacé par <literal>0</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_strcmpi</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_strfind.xml b/modules/compatibility_functions/help/fr_FR/mtlb_strfind.xml
new file mode 100755
index 000000000..5367d0d1a
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_strfind.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_strfind">
+ <refnamediv>
+ <refname>mtlb_strfind</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab strfind</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>strfind</literal> et la fonction Scilab
+ <literal>strindex</literal> se comportent différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée n'étant pas des chaînes de caractère : La fonction Matlab <literal>strfind</literal>
+ peut être utilisée avec des entrées n'étant pas des chaînes de caractères mais pas la fonction
+ Scilab <literal>strindex</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_strfind(A,B)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>strfind(A,B)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_strfind</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> et <literal>B</literal> sont des chaînes de caractères
+ <literal>mtlb_strfind(A,B)</literal> peut être remplacé par <literal>strindex(A,B)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_strfind</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_strrep.xml b/modules/compatibility_functions/help/fr_FR/mtlb_strrep.xml
new file mode 100755
index 000000000..aa896a249
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_strrep.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_strrep">
+ <refnamediv>
+ <refname>mtlb_strrep</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab strrep</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>strrep</literal> et la fonction Scilab
+ <literal>strsubst</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée n'étant pas des chaînes de caractère : La fonction Matlab <literal>strrep</literal>
+ peut être utilisée avec des entrées n'étant pas des chaînes de caractères mais pas la fonction
+ Scilab <literal>strsubst</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_strrep(A,B,C)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>strrep(A,B,C)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_strrep</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal>, <literal>B</literal> et <literal>C</literal> sont des chaînes de caractères
+ <literal>y = mtlb_strrep(A,B,C)</literal> peut être remplacé par <literal>strsubst(A,B,C)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_strrep</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_sum.xml b/modules/compatibility_functions/help/fr_FR/mtlb_sum.xml
new file mode 100755
index 000000000..4b8b4b6c2
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_sum.xml
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_sum">
+ <refnamediv>
+ <refname>mtlb_sum</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab sum</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>sum</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée : La fonction Matlab <literal>sum</literal> traite
+ les valeurs en suivant la première dimension qui n'est pas 1 alors que la fonction Scilab
+ <literal>sum</literal> traite toutes les valeurs de l'entrée.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée : La fonction Matlab <literal>sum</literal> peut être
+ utilisée avec le second paramètre donnant une dimension du premier paramètre qui n'existe pas
+ alors que la fonction Scilab <literal>sum</literal> retourne un message d'erreur.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_sum(A[,dim])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>sum(A[,dim])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_sum</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est une matrice vide, un scalaire ou un vecteur,
+ <literal>mtlb_sum(A)</literal> peut être remplacé par <literal>sum(A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est une matrice non-vide,
+ <literal>mtlb_sum(A)</literal> peut être remplacé par <literal>sum(A,1)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec un paramètre d'entrée, si <literal>A</literal> est hypermatrice,
+ <literal>mtlb_sum(A)</literal> peut être remplacé par <literal>sum(A,firstnonsingleton(A))</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ En cas d'appel avec deux paramètres d'entrée, si <literal>dim</literal> est inférieure au nombre
+ de dimensions de <literal>A</literal>
+ <literal>mtlb_sum(A,dim)</literal> peut être remplacé par <literal>sum(A,dim)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_sum</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="firstnonsingleton">firstnonsingleton</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_t.xml b/modules/compatibility_functions/help/fr_FR/mtlb_t.xml
new file mode 100755
index 000000000..3d9e52bc7
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_t.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_t">
+ <refnamediv>
+ <refname>mtlb_t</refname>
+ <refpurpose>Fonction d'émulation de la transposition de Matlab</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>Dans plusieurs cas particuliers, la transposition se comporte différemment dans Matlab et dans Scilab :</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des opérandes de type chaîne de caractère : L'opérateur <literal>'</literal> est utilisé dans Scilab
+ pour transposer des chaînes de caractères entières alors que Matlab fait la transposition caractère par caractère.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_t(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>A'</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_t</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères
+ <literal>mtlb_t(A)</literal> peut être remplacé par <literal>A'</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_t</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_toeplitz.xml b/modules/compatibility_functions/help/fr_FR/mtlb_toeplitz.xml
new file mode 100755
index 000000000..ca6da0277
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_toeplitz.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_toeplitz">
+ <refnamediv>
+ <refname>mtlb_toeplitz</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab toeplitz</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>toeplitz</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée : si celui-ci est complexe ou si c'est une matrice, la valeur de sortie
+ des fonctions <literal>toeplitz</literal> de Matlab et Scilab sera différente.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec deux paramètres d'entrée : si ce sont des vecteurs et que leurs premiers éléments sont différents,
+ Scilab renvoie un message d'erreur alors que Matlab donne priorité à l'élément colonne. Si ce sont des matrices,
+ la valeur retournée par la fonction <literal>toeplitz</literal> sera différente dans Matlab et dans Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_toeplitz(c[,r])</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>toeplitz(c[,r])</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code
+ Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_toeplitz</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Pour les appels avec un paramètre d'entrée, si <literal>c</literal> est un scalaire ou un vecteur réel,
+ <literal>mtlb_toeplitz(c)</literal> peut être remplacé par <literal>toeplitz(c)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Pour les appels avec deux paramètres d'entrée, si <literal>c</literal> et <literal>r</literal> sont des scalaires ou des vecteurs
+ et que leurs premiers éléments sont égaux,
+ <literal>mtlb_toeplitz(c,r)</literal> peut être remplacé par <literal>toeplitz(c,r)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_toeplitz</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_tril.xml b/modules/compatibility_functions/help/fr_FR/mtlb_tril.xml
new file mode 100755
index 000000000..1e8e40038
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_tril.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_tril">
+ <refnamediv>
+ <refname>mtlb_tril</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab tril</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>tril</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée complexes : La fonction Matlab <literal>tril</literal> peut être
+ utilisée avec des données complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée de type chaîne de caractère : étant donné que Matlab et Scilab
+ ne considèrent pas les chaînes de caractères de la même façon, la fonction <literal>tril</literal>
+ ne donne pas le même résultat pour ce type d'entrée dans Scilab et dans Matlab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée booléens : La fonction Matlab <literal>tril</literal> peut être
+ utilisée avec des données booléennes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_tril(x,k)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>tril(x,k)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_tril</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>X</literal> contient des doubles réels
+ <literal>mtlb_tril(x,k)</literal> peut être remplacé par <literal>tril(x,k)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>X</literal> contient des booléens
+ <literal>mtlb_tril(x,k)</literal> peut être remplacé par <literal>tril(bool2s(x),k)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_tril</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_triu.xml b/modules/compatibility_functions/help/fr_FR/mtlb_triu.xml
new file mode 100755
index 000000000..0c5163483
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_triu.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_triu">
+ <refnamediv>
+ <refname>mtlb_triu</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab triu</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>triu</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée complexes : La fonction Matlab <literal>triu</literal> peut être
+ utilisée avec des données complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée de type chaîne de caractère : étant donné que Matlab et Scilab
+ ne considèrent pas les chaînes de caractères de la même façon, la fonction <literal>triu</literal>
+ ne donne pas le même résultat pour ce type d'entrée dans Scilab et dans Matlab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec des paramètres d'entrée booléens : La fonction Matlab <literal>triu</literal> peut être
+ utilisée avec des données booléennes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_triu(x,k)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>triu(x,k)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_triu</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>X</literal> contient des doubles réels
+ <literal>mtlb_triu(x,k)</literal> peut être remplacé par <literal>triu(x,k)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>X</literal> contient des booléens
+ <literal>mtlb_triu(x,k)</literal> peut être remplacé par <literal>triu(bool2s(x),k)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_triu</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="Chaines_de_caracteres_MatlabScilab">Chaines_de_caracteres_Matlab-Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_true.xml b/modules/compatibility_functions/help/fr_FR/mtlb_true.xml
new file mode 100755
index 000000000..7fbfff8cf
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_true.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_true">
+ <refnamediv>
+ <refname>mtlb_true</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab true</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Il n'y a pas d'équivalent Scilab pour la fonction Matlab <literal>true</literal>, cependant la fonction
+ Scilab <literal>ones</literal> retourne un résultat interprété de la même façon pour Scilab.
+ </para>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>true</literal> et la fonction Scilab <literal>ones</literal>se comporte différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>true</literal> retourne une
+ matrice n x n alors que la fonction Scilab <literal>ones</literal> retourne 1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_true(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>true(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_true</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_true(A)</literal> peut être remplacé par <literal>ones(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_true(A)</literal> peut être remplacé par <literal>ones(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_true</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_uint16.xml b/modules/compatibility_functions/help/fr_FR/mtlb_uint16.xml
new file mode 100755
index 000000000..d86d5faf3
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_uint16.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_uint16">
+ <refnamediv>
+ <refname>mtlb_uint16</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab uint16</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>uint16</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée complexe : La fonction Matlab <literal>uint16</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%inf</literal> : Matlab retourne 65535 alors que Scilab retourne 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_uint16(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>uint16(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_uint16</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ne contient pas de valeur <literal>%inf</literal>, <literal>%nan</literal> ou <literal>-%nan</literal>
+ <literal>mtlb_uint16(A)</literal> peut être remplacé par <literal>uint16(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_uint16</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_uint32.xml b/modules/compatibility_functions/help/fr_FR/mtlb_uint32.xml
new file mode 100755
index 000000000..873699011
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_uint32.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_uint32">
+ <refnamediv>
+ <refname>mtlb_uint32</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab uint32</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>uint32</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée complexe : La fonction Matlab <literal>uint32</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%inf</literal> : Matlab retourne 4294967295 alors que Scilab retourne 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_uint32(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>uint32(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_uint32</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ne contient pas de valeur <literal>%inf</literal>, <literal>%nan</literal> ou <literal>-%nan</literal>
+ <literal>mtlb_uint32(A)</literal> peut être remplacé par <literal>uint32(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_uint32</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_uint8.xml b/modules/compatibility_functions/help/fr_FR/mtlb_uint8.xml
new file mode 100755
index 000000000..223983295
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_uint8.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_uint8">
+ <refnamediv>
+ <refname>mtlb_uint8</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab uint8</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>uint8</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec un paramètre d'entrée complexe : La fonction Matlab <literal>uint8</literal> peut être utilisée
+ avec des complexes mais pas la fonction Scilab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Avec la valeur <literal>%inf</literal> : Matlab retourne 255 alors que Scilab retourne 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_uint8(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>uint8(A)</literal> quand il n'était pas
+ possible de savoir ce qu'était le paramètre d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_uint8</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> ne contient pas de valeur <literal>%inf</literal>, <literal>%nan</literal> ou <literal>-%nan</literal>
+ <literal>mtlb_uint8(A)</literal> peut être remplacé par <literal>uint8(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_uint8</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_upper.xml b/modules/compatibility_functions/help/fr_FR/mtlb_upper.xml
new file mode 100755
index 000000000..7e79f3145
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_upper.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_upper">
+ <refnamediv>
+ <refname>mtlb_upper</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab upper</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction Matlab <literal>upper(A)</literal> et la fonction Scilab
+ <literal>convstr(A,"u")</literal> se comportent différemment :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une chaîne de caractères : la fonction Matlab <literal>upper</literal> peut être utilisée
+ avec <literal>A</literal> n'étant pas une chaîne de caractères mais pas la fonction Scilab <literal>convstr</literal>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_upper(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>upper(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les paramètres d'entrée pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_upper</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est une matrice de chaînes de caractères
+ <literal>mtlb_upper(A)</literal> peut être remplacé par <literal>convstr(A,"u")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas une matrice de chaînes de caractères
+ <literal>mtlb_upper(A)</literal> peut être remplacé par <literal>A</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_upper</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="convstr">convstr</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/fr_FR/mtlb_zeros.xml b/modules/compatibility_functions/help/fr_FR/mtlb_zeros.xml
new file mode 100755
index 000000000..76e4780d3
--- /dev/null
+++ b/modules/compatibility_functions/help/fr_FR/mtlb_zeros.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="fr" xml:id="mtlb_zeros">
+ <refnamediv>
+ <refname>mtlb_zeros</refname>
+ <refpurpose>Fonction d'émulation de la fonction Matlab zeros</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Description</title>
+ <para>
+ Dans plusieurs cas particuliers, la fonction <literal>zeros</literal> se comporte différemment dans Matlab et dans Scilab :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Avec une entrée qui est un scalaire : La fonction Matlab <literal>zeros</literal> retourne une
+ matrice n x n alors que Scilab retourne 0.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ La fonction <literal>mtlb_zeros(A)</literal> est utilisée par
+ <literal>mfile2sci</literal> pour remplacer <literal>zeros(A)</literal> quand il n'était pas
+ possible de savoir ce qu'étaient les opérandes pendant la conversion d'un code Matlab vers Scilab. Cette fonction va
+ déterminer la sémantique correcte pendant l'exécution. Pour obtenir un code plus performant
+ on peut remplacer les appels à <literal>mtlb_zeros</literal> :
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Si <literal>A</literal> est un scalaire
+ <literal>mtlb_zeros(A)</literal> peut être remplacé par <literal>zeros(A,A)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Si <literal>A</literal> n'est pas un scalaire
+ <literal>mtlb_zeros(A)</literal> peut être remplacé par <literal>zeros(A)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <warning>
+ Attention : <literal>mtlb_zeros</literal> ne doit pas être utilisée pour une programmation manuelle.
+ </warning>
+ </para>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/ja_JP/addchapter.sce b/modules/compatibility_functions/help/ja_JP/addchapter.sce
new file mode 100755
index 000000000..76cce23cb
--- /dev/null
+++ b/modules/compatibility_functions/help/ja_JP/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Compatibility Functions",SCI+"/modules/compatibility_functions/help/ja_JP",%T);
+
diff --git a/modules/compatibility_functions/help/ja_JP/mtlb_mode.xml b/modules/compatibility_functions/help/ja_JP/mtlb_mode.xml
new file mode 100755
index 000000000..54f6d7311
--- /dev/null
+++ b/modules/compatibility_functions/help/ja_JP/mtlb_mode.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="mtlb_mode">
+ <refnamediv>
+ <refname>mtlb_mode</refname>
+ <refpurpose>Matlab 類似処ç†ã‚’切替</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>呼ã³å‡ºã—手順</title>
+ <synopsis>mmode = mtlb_mode()
+ mtlb_mode(mmode)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>パラメータ</title>
+ <variablelist>
+ <varlistentry>
+ <term>mmode</term>
+ <listitem>
+ <para>è«–ç†å€¤</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>説明</title>
+ <para>
+ 以下ã®ã‚ˆã†ã«ç©ºã®è¡Œåˆ—を使用ã—ãŸå ´åˆã®
+ Scilab ãŠã‚ˆã³ Matlab ã®åŠ ç®—ãŠã‚ˆã³é™¤ç®—ã®å‹•ä½œã¯
+ ç•°ãªã‚Šã¾ã™:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>Scilab</term>
+ <listitem>
+ <para/>
+ <programlisting role=""><![CDATA[
+a=1;
+a+[]
+// -->a
+a-[]
+// -->a
+[]+a
+// -->a
+[]-a
+// -->-a
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Matlab</term>
+ <listitem>
+ <programlisting role="no-scilab-exec"><![CDATA[
+a+[] -->[]
+a-[] -->[]
+[]+a -->[]
+[]-a -->[]
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ <code>mtlb_mode(%t)</code> ã¯åŠ ç®—ãŠã‚ˆã³é™¤ç®—ã‚’Matlab互æ›ãƒ¢ãƒ¼ãƒ‰ã«
+ 切り替ãˆã¾ã™.
+ <code>mtlb_mode(%f)</code> ã¯Scilabモードã«æˆ»ã—ã¾ã™.
+ </para>
+ <para>
+ <code>mtlb_mode()</code>ã¯ã‚«ãƒ¬ãƒ³ãƒˆã® <varname>mmode</varname>ã®å€¤ã‚’è¿”ã—ã¾ã™(<constant>%t</constant>=Matlab, <constant>%f</constant>=Scilab).
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>å‚ç…§</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="empty">empty</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/pt_BR/addchapter.sce b/modules/compatibility_functions/help/pt_BR/addchapter.sce
new file mode 100755
index 000000000..f8bcafa41
--- /dev/null
+++ b/modules/compatibility_functions/help/pt_BR/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Funções de Compatibilidade",SCI+"/modules/compatibility_functions/help/pt_BR",%T);
+
diff --git a/modules/compatibility_functions/help/pt_BR/mtlb_mode.xml b/modules/compatibility_functions/help/pt_BR/mtlb_mode.xml
new file mode 100755
index 000000000..27697d6cd
--- /dev/null
+++ b/modules/compatibility_functions/help/pt_BR/mtlb_mode.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="mtlb_mode" xml:lang="en">
+ <refnamediv>
+ <refname>mtlb_mode</refname>
+ <refpurpose>alterna para modo de operações do Matlab</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title> Seqüência de Chamamento </title>
+ <synopsis>mmode = mtlb_mode()
+ mtlb_mode(mmode)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title> Parâmetros </title>
+ <variablelist>
+ <varlistentry>
+ <term>mmode</term>
+ <listitem>
+ <para>booleano</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Descrição</title>
+ <para>Adições e subtrações do Scilab e do Matlab funcionam de modo
+ diferente quando usadas com matrizes vazias:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>Scilab</term>
+ <listitem>
+ <para/>
+ <programlisting role=""><![CDATA[
+a=1;
+a+[]
+// -->a
+
+a-[]
+// -->a
+
+[]+a
+// -->a
+
+[]-a
+// -->-a
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Matlab</term>
+ <listitem>
+ <programlisting role="no-scilab-exec"><![CDATA[
+a+[] -->[]
+a-[] -->[]
+[]+a -->[]
+[]-a -->[]
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ <code>mtlb_mode(%t)</code> alterna para o modo de operações
+ para adição e subtração do Matlab. <code>mtlb_mode(%f)</code> volta
+ para o modo de operações do Scilab.
+ </para>
+ <para>
+ <code>mtlb_mode()</code> retorna o valor <varname>mmode</varname>
+ corrente (<constant>%t</constant>=Matlab, <constant>%f</constant>=Scilab).
+ </para>
+ </refsection>
+ <refsection>
+ <title> Ver Também </title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="empty">empty</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/help/ru_RU/addchapter.sce b/modules/compatibility_functions/help/ru_RU/addchapter.sce
new file mode 100755
index 000000000..c1ccc6161
--- /dev/null
+++ b/modules/compatibility_functions/help/ru_RU/addchapter.sce
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+add_help_chapter("Функции Ð´Ð»Ñ ÑовмеÑтимоÑти",SCI+"/modules/compatibility_functions/help/ru_RU",%T);
+
diff --git a/modules/compatibility_functions/help/ru_RU/mtlb_mode.xml b/modules/compatibility_functions/help/ru_RU/mtlb_mode.xml
new file mode 100755
index 000000000..1199c3159
--- /dev/null
+++ b/modules/compatibility_functions/help/ru_RU/mtlb_mode.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ru" xml:id="mtlb_mode">
+ <refnamediv>
+ <refname>mtlb_mode</refname>
+ <refpurpose>переключение на операции в Ñтиле Matlab'а</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>ПоÑледовательноÑÑ‚ÑŒ вызова</title>
+ <synopsis>
+ mmode = mtlb_mode()
+ mtlb_mode(mmode)
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Ðргументы</title>
+ <variablelist>
+ <varlistentry>
+ <term>mmode</term>
+ <listitem>
+ <para>логичеÑкое значение</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>ОпиÑание</title>
+ <para>
+ Ð¡ÑƒÐ¼Ð¼Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸ Ð²Ñ‹Ñ‡Ð¸Ñ‚Ð°Ð½Ð¸Ñ Ð² Scilab'е и Matlab'е
+ работают по-разному при иÑпользовании пуÑÑ‚Ñ‹Ñ…
+ матриц:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>Scilab</term>
+ <listitem>
+ <para/>
+ <programlisting><![CDATA[
+a=1;
+a+[]
+// -->a
+
+a-[]
+// -->a
+
+[]+a
+// -->a
+
+[]-a
+// -->-a
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Matlab</term>
+ <listitem>
+ <programlisting role = "no-scilab-exec"><![CDATA[
+a+[] -->[]
+a-[] -->[]
+[]+a -->[]
+[]-a -->[]
+ ]]></programlisting>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ <code>mtlb_mode(%t)</code> переключает на режим вычиÑÐ»ÐµÐ½Ð¸Ñ Ð² Ñтиле Matlab'а Ð´Ð»Ñ Ñуммирований и вычитаний. <code>mtlb_mode(%f)</code> переключает обратно в режим Scilab'а.
+ </para>
+ <para>
+ <code>mtlb_mode()</code> возвращает текущее значение <varname>mmode</varname> (<constant>%t</constant> Ð´Ð»Ñ Matlab'а, <constant>%f</constant> Ð´Ð»Ñ Scilab'а).
+ </para>
+ </refsection>
+ <refsection role="see also">
+ <title>Смотрите также</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="empty">empty</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/modules/compatibility_functions/license.txt b/modules/compatibility_functions/license.txt
new file mode 100755
index 000000000..933635069
--- /dev/null
+++ b/modules/compatibility_functions/license.txt
@@ -0,0 +1,10 @@
+Copyright:
+Copyright (c) 2008 - DIGITEO
+Copyright (c) 1989-2008 - INRIA
+
+License:
+This module must be used under the terms of the CeCILL.
+This module file is licensed as described in the file COPYING, which
+you should have received as part of this distribution. The terms
+are also available at
+http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
diff --git a/modules/compatibility_functions/locales/ca_ES.po b/modules/compatibility_functions/locales/ca_ES.po
new file mode 100755
index 000000000..647a93407
--- /dev/null
+++ b/modules/compatibility_functions/locales/ca_ES.po
@@ -0,0 +1,320 @@
+# Catalan translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-04-18 18:58+0000\n"
+"Last-Translator: Marc Coll Carrillo <Unknown>\n"
+"Language-Team: Catalan <ca@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: ca\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: Nombre incorrecte d'arguments d'entrada: Han de ser entre %d i %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s: el paràmetre d'entrada #%d té una mida incorrecta: s'esperava un "
+"escalar.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: el paràmetre d'entrada #%d té una mida incorrecta: s'esperava una "
+"cadena.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: el paràmetre d'entrada #%d té un valor incorrecte: ha d'estar dintre del "
+"conjunt {%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: L'argument d'entrada és d'un tipus incorrecte: Els elements de la cel·la "
+"han de ser un vector de caràcters.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Aquesta característica no està implementada.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr ""
+"%s: L'argument d'entrada és d'un tipus incorrecte: Ha de ser una cel·la.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s: L'argument d'entrada és d'un tipus incorrecte: Ha de ser una cadena de "
+"text.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser %s, %s, %s, "
+"'%s', '%s' o '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Els arguments d'entrada són incorrectes: La dimensió especificada com a "
+"primer argument no concorda amb el contingut especificat per a les cel·les.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+"%s: Aquesta característica no està implementada: Suport per hipermatrius.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu "
+"de cadenes de text.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Mida incorrecta per a '%s': Ha de ser un vector.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Aquesta característica no està implementada: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: El valor que afecta a '%s' és incorrecte.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' només s'utilitza en mode 3D."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr ""
+"%s: Aquesta característica no està implementada: Argument del tipus %d.\n"
+
+msgid "Close"
+msgstr "Tanca"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' ignorat.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: S'ha eliminat totes les finestres.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser una matriu "
+"quadrada.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser %s, %s,'%s' o "
+"'%s'.\n"
+
+msgid "Jan"
+msgstr "Gen"
+
+msgid "Feb"
+msgstr "Feb"
+
+msgid "Mar"
+msgstr "Mar"
+
+msgid "Apr"
+msgstr "Abr"
+
+msgid "May"
+msgstr "Mai"
+
+msgid "Jun"
+msgstr "Jun"
+
+msgid "Jul"
+msgstr "Jul"
+
+msgid "Aug"
+msgstr "Ago"
+
+msgid "Sep"
+msgstr "Set"
+
+msgid "Oct"
+msgstr "Oct"
+
+msgid "Nov"
+msgstr "Nov"
+
+msgid "Dec"
+msgstr "Des"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Encara no s'ha implementat.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: No s'ha pogut obrir el fitxer '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Tipus desconegut.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: Tipus '%s' desconegut: S'ha ignorat.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s no s'ha implementat.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: La funció %s de Scilab no funciona amb més d'una línia de variables.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: El format '%s' és desconegut.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: El format '%s' encara no està suportat.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+"%s: S'ha arribat al final de fitxer abans que s'hagi llegit tota la matriu.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: No hi ha equivalent per a la propietat '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: No hi ha reixa menor a Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser '%s', '%s' o "
+"'%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d té una mida incorrecta: Ha de ser un vector de "
+"cadenes de text de Matlab.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: No es pot tractar la classe '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d té un valor incorrecte: Ha de ser un enter "
+"positiu.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Nombre d'arguments de sortida incorrecte: Hi ha d'haver %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: S'ha ignorat l'opció '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: Estil de línia desconegut a '%s' -> S'ha deixat com a 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: Color desconegut a '%s' -> S'ha posat a negre.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: Nombre incorrecte d'arguments d'entrada: Han de ser %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: No es pot diagonalitzar el llàpis.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: L'argument d'entrada #%d és d'un tipus incorrecte: Ha de ser un vector "
+"columna.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: No s'ha implementat aquest cas particular.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: No s'ha implementat '%s'.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr ""
+"%s: S'ha arribat al final de la cadena abans d'acabar de llegir les dades.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: No s'ha pogut obrir ni '%s', ni '%s', ni'%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: Nombre incorrecte d'arguments d'entrada: Hi ha d'haver entre %d i %d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: El factor de normalització m - 1 és zero.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: El factor de normalització n - 1 és zero.\n"
diff --git a/modules/compatibility_functions/locales/compatibility_functions.pot b/modules/compatibility_functions/locales/compatibility_functions.pot
new file mode 100755
index 000000000..8fc42a146
--- /dev/null
+++ b/modules/compatibility_functions/locales/compatibility_functions.pot
@@ -0,0 +1,499 @@
+# Localization of the module compatibility_functions-macros
+# Please see in SCI/tools/localization for localization management
+# Copyright (C) 2007-2008 - INRIA
+# Copyright (C) 2008-2011 - DIGITEO
+# Copyright (C) 2012-2014 - Scilab-Enterprises
+# This file is distributed under the same license as the Scilab package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"Last-Translator: Vincent COUVERT <vincent.couvert@scilab-enterprises.com>\n"
+"Language-Team: Scilab Localization <localization@lists.scilab.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Revision-Date: 2015-03-27 13:54+0100\n"
+
+# File: macros/%b_cumprod.sci, line: 31
+# File: macros/%b_cumsum.sci, line: 31
+# File: macros/%b_prod.sci, line: 31
+# File: macros/%b_sum.sci, line: 31
+# File: macros/mtlb_realmax.sci, line: 24
+# File: macros/mtlb_realmin.sci, line: 24
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 38
+# File: macros/%b_cumsum.sci, line: 38
+# File: macros/%b_prod.sci, line: 38
+# File: macros/%b_sum.sci, line: 38
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 41
+# File: macros/%b_cumsum.sci, line: 41
+# File: macros/%b_prod.sci, line: 41
+# File: macros/%b_sum.sci, line: 41
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 45
+# File: macros/%b_cumprod.sci, line: 61
+# File: macros/%b_cumsum.sci, line: 45
+# File: macros/%b_cumsum.sci, line: 61
+# File: macros/%b_prod.sci, line: 45
+# File: macros/%b_prod.sci, line: 61
+# File: macros/%b_sum.sci, line: 45
+# File: macros/%b_sum.sci, line: 61
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 48
+# File: macros/%b_cumsum.sci, line: 48
+# File: macros/%b_prod.sci, line: 48
+# File: macros/%b_sum.sci, line: 48
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 52
+# File: macros/%b_cumsum.sci, line: 52
+# File: macros/%b_prod.sci, line: 52
+# File: macros/%b_sum.sci, line: 52
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 57
+# File: macros/%b_cumsum.sci, line: 57
+# File: macros/%b_prod.sci, line: 57
+# File: macros/%b_sum.sci, line: 57
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#
+# File: macros/%b_cumprod.sci, line: 65
+# File: macros/%b_cumsum.sci, line: 65
+# File: macros/%b_prod.sci, line: 65
+# File: macros/%b_sum.sci, line: 65
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#
+# File: macros/char.sci, line: 44
+# File: macros/char.sci, line: 53
+# File: macros/char.sci, line: 67
+# File: macros/char.sci, line: 76
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+
+#
+# File: macros/char.sci, line: 101
+# File: macros/mtlb_axes.sci, line: 33
+# File: macros/mtlb_box.sci, line: 36
+# File: macros/mtlb_close.sci, line: 48
+# File: macros/mtlb_delete.sci, line: 18
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr ""
+
+#
+# File: macros/char.sci, line: 104
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr ""
+
+#
+# File: macros/char.sci, line: 119
+# File: macros/char.sci, line: 129
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+
+#
+# File: macros/fseek_origin.sci, line: 26
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+
+#
+# File: macros/makecell.sci, line: 21
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+
+#
+# File: macros/mstr2sci.sci, line: 18
+#, c-format
+msgid "%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+
+#
+# File: macros/mstr2sci.sci, line: 22
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_axis.sci, line: 34
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_axis.sci, line: 49
+# File: macros/mtlb_axis.sci, line: 71
+# File: macros/mtlb_axis.sci, line: 87
+# File: macros/mtlb_axis.sci, line: 102
+# File: macros/mtlb_axis.sci, line: 127
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_axis.sci, line: 52
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_axis.sci, line: 92
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr ""
+
+#
+# File: macros/mtlb_axis.sci, line: 143
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_choices.sci, line: 13
+msgid "Close"
+msgstr ""
+
+#
+# File: macros/mtlb_close.sci, line: 15
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_close.sci, line: 51
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_cond.sci, line: 15
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_cond.sci, line: 36
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 45
+msgid "Jan"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 46
+msgid "Feb"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 47
+msgid "Mar"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 48
+msgid "Apr"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 49
+msgid "May"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 50
+msgid "Jun"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 51
+msgid "Jul"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 52
+msgid "Aug"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 53
+msgid "Sep"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 54
+msgid "Oct"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 55
+msgid "Nov"
+msgstr ""
+
+#
+# File: macros/mtlb_dir.sci, line: 56
+msgid "Dec"
+msgstr ""
+
+#
+# File: macros/mtlb_echo.sci, line: 23
+# File: macros/mtlb_echo.sci, line: 26
+# File: macros/mtlb_hold.sci, line: 27
+# File: macros/mtlb_num2str.sci, line: 25
+# File: macros/mtlb_realmax.sci, line: 21
+# File: macros/mtlb_realmin.sci, line: 21
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_fopen.sci, line: 18
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_format.sci, line: 57
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_format.sci, line: 59
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_fprintf.sci, line: 43
+# File: macros/mtlb_fprintf.sci, line: 92
+# File: macros/mtlb_fprintf.sci, line: 94
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_fprintf.sci, line: 57
+# File: macros/mtlb_fprintf.sci, line: 114
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_fread.sci, line: 44
+# File: macros/mtlb_fwrite.sci, line: 40
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_fread.sci, line: 48
+# File: macros/mtlb_fwrite.sci, line: 44
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_fread.sci, line: 66
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_get.sci, line: 24
+# File: macros/mtlb_get.sci, line: 26
+# File: macros/mtlb_get.sci, line: 28
+# File: macros/mtlb_get.sci, line: 30
+# File: macros/mtlb_get.sci, line: 32
+# File: macros/mtlb_get.sci, line: 34
+# File: macros/mtlb_get.sci, line: 36
+# File: macros/mtlb_get.sci, line: 38
+# File: macros/mtlb_get.sci, line: 40
+# File: macros/mtlb_get.sci, line: 45
+# File: macros/mtlb_get.sci, line: 47
+# File: macros/mtlb_get.sci, line: 49
+# File: macros/mtlb_get.sci, line: 51
+# File: macros/mtlb_get.sci, line: 53
+# File: macros/mtlb_get.sci, line: 55
+# File: macros/mtlb_get.sci, line: 57
+# File: macros/mtlb_get.sci, line: 59
+# File: macros/mtlb_get.sci, line: 69
+# File: macros/mtlb_get.sci, line: 71
+# File: macros/mtlb_get.sci, line: 73
+# File: macros/mtlb_get.sci, line: 75
+# File: macros/mtlb_get.sci, line: 77
+# File: macros/mtlb_get.sci, line: 79
+# File: macros/mtlb_get.sci, line: 81
+# File: macros/mtlb_get.sci, line: 83
+# File: macros/mtlb_get.sci, line: 85
+# File: macros/mtlb_get.sci, line: 90
+# File: macros/mtlb_get.sci, line: 92
+# File: macros/mtlb_get.sci, line: 96
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_grid.sci, line: 35
+# File: macros/mtlb_grid.sci, line: 51
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_grid.sci, line: 42
+# File: macros/mtlb_grid.sci, line: 58
+#, c-format
+msgid "%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_is.sci, line: 17
+# File: macros/mtlb_is.sci, line: 33
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_isa.sci, line: 45
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_legendre.sci, line: 15
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_max.sci, line: 67
+# File: macros/mtlb_min.sci, line: 69
+# File: macros/mtlb_qr.sci, line: 16
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_plot.sci, line: 128
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_plot.sci, line: 197
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_plot.sci, line: 215
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_qr.sci, line: 19
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_qz.sci, line: 21
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_sortrows.sci, line: 28
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_sprintf.sci, line: 39
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_sscanf.sci, line: 12
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_sscanf.sci, line: 25
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_type.sci, line: 29
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_var.sci, line: 33
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_var.sci, line: 46
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr ""
+
+#
+# File: macros/mtlb_var.sci, line: 53
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr ""
diff --git a/modules/compatibility_functions/locales/cs_CZ.po b/modules/compatibility_functions/locales/cs_CZ.po
new file mode 100755
index 000000000..9846822e3
--- /dev/null
+++ b/modules/compatibility_functions/locales/cs_CZ.po
@@ -0,0 +1,299 @@
+# Czech translation for scilab
+# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2011.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-11-30 20:18+0000\n"
+"Last-Translator: Zbyněk Schwarz <Unknown>\n"
+"Language-Team: Czech <cs@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr "%s: Å patný poÄet vstupních argumentů: oÄekáváno %d až %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr "%s: Å patná velikost vstupního argumentu #%d: OÄekáván skalár.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+"%s: Å patná hodnota vstupního argumentu #%d: OÄekáváno celé Äíslo >= %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr "%s: Å patná velikost vstupního argumentu #%d: OÄekáván Å™etÄ›zec.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr "%s: Špatná hodnota vstupního argumentu #%d: Musí být v sadě {%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+"%s: Å patný typ vstupního argumentu #%d: OÄekáván Å™etÄ›zec nebo skalár.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr "%s: Å patný typ vstupního argumentu #%d: OÄekáván Å™etÄ›zec.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr "%s: Å patná hodnota vstupního argumentu #%d: OÄekáváno %s nebo %s.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: Špatný typ vstupního argumentu: Prvky buňky musí být pole znaků.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Tato funkce nebyla zavedena.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s: Å patný typ vstupního argumentu: OÄekávána buňka.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr "%s: Å patný typ vstupního argumentu: OÄekáván Å™etÄ›zec.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: Å patná hodnota vstupního argumentu #%d: oÄekáván %s, %s, %s, '%s', '%s' "
+"nebo '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Špatné vstupní argumenty: Rozměry zadané jako první argument se "
+"neshodují se zadanými obsahy buňky.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s: Tato funkce nebyla zavedena: Podpora hypermatic.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr "%s: Å patný typ vstupního argumentu #%d: OÄekávána matice Å™etÄ›zců.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Å patná velikost '%s': OÄekáván vektor.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Tato funkce nebyla zavedena: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: Špatná hodnota pro předstírání '%s'.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' se používá pouze v režimu 3d."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: Tato funkce nebyla zavedena: Argument typu %d.\n"
+
+msgid "Close"
+msgstr "Zavřít"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' ignorováno.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Všechna okna smazána.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: Å patný typ vstupního argumentu #%d: OÄekávána Ätvercová matice.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: Å patná hodnota vstupního argumentu #%d: oÄekáván %s, %s, '%s', nebo "
+"'%s'.\n"
+
+msgid "Jan"
+msgstr "Led"
+
+msgid "Feb"
+msgstr "Úno"
+
+msgid "Mar"
+msgstr "Bře"
+
+msgid "Apr"
+msgstr "Dub"
+
+msgid "May"
+msgstr "KvÄ›"
+
+msgid "Jun"
+msgstr "ÄŒer"
+
+msgid "Jul"
+msgstr "ÄŒvc"
+
+msgid "Aug"
+msgstr "Srp"
+
+msgid "Sep"
+msgstr "Zář"
+
+msgid "Oct"
+msgstr "Říj"
+
+msgid "Nov"
+msgstr "Lis"
+
+msgid "Dec"
+msgstr "Pro"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Není ještě zavedeno.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: Nelze otevřít soubor '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Neznámý typ.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: Neznámý typ '%s': IGNOROVÃNO.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s není zavedeno.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: Funkce Scilabu %s nepracuje s více než jednou řadou proměnných.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: Formát '%s' je neznámý.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: Formát '%s' zatím nelze ještě zpracovat.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s: Bylo dosaženo konce souboru pÅ™ed pÅ™eÄtením vÅ¡ech matic.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: Nic neodpovídá vlastnosti '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Ve Scilabu není žádná malá mřížka.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Å patná hodnota vstupního argumentu #%d: OÄekáváno '%s', '%s' nebo '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: Å patná velikost vstupního argumentu #%d: OÄekáván Matlab vektor "
+"řetězců.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: Neošetřená třída '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: Å patná hodnota vstupního argumentu #%d: oÄekávána hodnota kladného "
+"celého Äísla.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Å patný poÄet vstupních argumentů: oÄekáváno %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: možnost '%s' ignorována.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: V '%s' byl nalezen neznámý styl řádku -> nastaven na 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: V '%s' byla nalezena neznámá barva -> nastaveno na Äernou.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: Å patný poÄet vstupních argumentů: OÄekáván %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: tužka není diagonalizovatelná.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr "%s: Å patný typ vstupního argumentu #%d: OÄekáván sloupcový vektor.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Tento konkrétní případ není zaveden.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' není zavedeno.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: Bylo dosaženo konce Å™etÄ›zce pÅ™ed pÅ™eÄtením dat.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: Nelze otevřít ani '%s', ani '%s', ani '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr "%s: Å patný poÄet vstupních argumentů: oÄekáváno %d až %d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: Normalizace m - 1 Äinitel je nula.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: Normalizace n - 1 Äinitel je nula.\n"
diff --git a/modules/compatibility_functions/locales/de_DE.po b/modules/compatibility_functions/locales/de_DE.po
new file mode 100755
index 000000000..f89910fea
--- /dev/null
+++ b/modules/compatibility_functions/locales/de_DE.po
@@ -0,0 +1,308 @@
+# German translation for scilab
+# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2011-09-01 15:52+0000\n"
+"Last-Translator: Scilab.team <Unknown>\n"
+"Language-Team: German <de@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: de\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: Falsche Anzahl von Eingangsargumenten: zwischen %d und %d erwartet.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr "%s: Falsche Größe für Eingangsargument #%d: einen Skalar erwartet.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: Falsche Größe für Eingangsargument #%d: eine Zeichenkette erwartet.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: falscher Wert für Eingangsargument #%d: muß sich im Satz {%s} befinden.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: falscher Typ für Eingangsargument: Zellen-Elemente müssen "
+"Zeichenmatrizen sein.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Diese Funktionalität wurde nicht implementiert.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s: Falscher Typ für Eingangsargument: Zelle erwartet.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr "%s: Falscher Typ für Eingabeargumente: Zeichenkette erwartet.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: Falscher Wert für Eingangsargument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"erwartet.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Falsche Eingangsargumente: die als erstes Argument angegebenen "
+"Dimensionen stimmen nicht mit den spezifizierten Zelleninhalten überein.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+"%s: Diese Funktionalität wurde noch nicht implementiert: Unterstützung für "
+"Hypermatrizen.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: falscher Typ für Eingangsargument #%d: Matrix von Variablen erwartet.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Falsche Größe für '%s': Vektor erwartet.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Diese Funktionalität wurde nicht implementiert: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: falscher Wert für Beeinflussung zu '%s'.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' wird nur im 3D Modus verwendet."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr ""
+"%s: Diese Funktionalität wurde noch nicht implementiert. Argument des Typs "
+"%d.\n"
+
+msgid "Close"
+msgstr "Schließen"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' ignoriert.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Alle Fenster geschlossen.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr "%s: falscher Typ für Eingangsargument #%d: N x N Matrix erwartet.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: Falscher Wert für Eingangsargument #%d: %s, %s, '%s' oder '%s' "
+"erwartet.\n"
+
+msgid "Jan"
+msgstr "Januar"
+
+msgid "Feb"
+msgstr "Februar"
+
+msgid "Mar"
+msgstr "März"
+
+msgid "Apr"
+msgstr "April"
+
+msgid "May"
+msgstr "Mai"
+
+msgid "Jun"
+msgstr "Juni"
+
+msgid "Jul"
+msgstr "Juli"
+
+msgid "Aug"
+msgstr "August"
+
+msgid "Sep"
+msgstr "September"
+
+msgid "Oct"
+msgstr "Oktober"
+
+msgid "Nov"
+msgstr "November"
+
+msgid "Dec"
+msgstr "Dezember"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Noch nicht implementiert.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: Kann Datei '%s' nicht öffnen.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Unbekannter Typ.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: unbekannter Typ '%s': ignoriert.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s ist nicht implementiert.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: %s Scilab Funktion arbeitet nicht mit mehr als einer Reihenvariable.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: Das Format '%s' ist unbekannt.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: Das Format '%s' wird noch nicht unterstützt.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s: Ende der Datei erreicht, bevor alle Matrizen gelesen wurden.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: Kein Äquivalent für '%s' Eigenschaft.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: kein untergeordnetes Raster in Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Falscher Wert für Eingangsargument #%d: '%s', '%s' oder '%s' erwartet.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: falsche Größe für Eingangsargument #%d: Matlab Vektor von Variablen "
+"erwartet.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: unbehandelte Klasse '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: Falscher Wert für Eingangsargument #%d: einen positiven Integerwert "
+"erwartet.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Falsche Anzahl von Ausgangsargumenten: %d erwartet.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: '%s' Option ignoriert.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: unbekannter Anschlußstil gefunden in '%s' -> gesetzt nach 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: Unbekannte Farbe gefunden in '%s' -> nach Schwarz gesetzt.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: Falsche Anzahl von Eingangsargumenten: %d erwartet.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: Stift ist nicht diagnostizierbar.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: Falscher Typ für Eingangsargument #%d: einen Spaltenvektor erwartet.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Dieser spezielle Fall ist nicht implementiert.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' nicht implementiert.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: Ende der Zeichenkette erreicht, bevor Daten gelesen wurden.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: kann Folgendes nicht öffnen: '%s', '%s' und '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: Falsche Anzahl von Eingangsargumenten: zwischen %d und %d erwartet.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: der Normierungsfaktor m-1 ist Null.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: der Normierungsfaktor n-1 ist Null.\n"
diff --git a/modules/compatibility_functions/locales/es_ES.po b/modules/compatibility_functions/locales/es_ES.po
new file mode 100755
index 000000000..82599b81d
--- /dev/null
+++ b/modules/compatibility_functions/locales/es_ES.po
@@ -0,0 +1,318 @@
+# Spanish translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2011-09-01 15:52+0000\n"
+"Last-Translator: Scilab.team <Unknown>\n"
+"Language-Team: Spanish <es@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: es\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: Número incorrecto de argumento(s) de entrada: Se esperaban de %d a %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un escalar.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un string.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: Valor incorrecto del argumento de entrada #%d: Debe estar en el conjunto "
+"{%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: Tipo incorrecto del argumento de entrada: Los elementos de la celda "
+"deben ser arreglos de caracteres.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Esta función aun no ha sido implementada.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr ""
+"%s: Tipo incorrecto del argumento de entrada: Se esperaba una celda.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s: Tipo incorrecto de argumentos de entrada: Se esperaban strings.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba %s, %s, %s, "
+"'%s', '%s' o '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Argumentos de entrada incorrectos: Las dimensiones dadas en el primer "
+"argumento no coinciden con el contenido de la celda.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+"%s: Esta función no a sido implementada: Soporte para hiper-matrices.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz de "
+"strings.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Tamaño incorrecto para '%s': Se esperaba un vector.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Esta función aun no a sido implementada: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: Valor incorrecto para la simulación de '%s'.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' sólo se usa en modo 3d."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: Esta función aun no a sido implementada: Argumento de tipo %d.\n"
+
+msgid "Close"
+msgstr "Cerrar"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' ignorado.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Se eliminaron todas las ventanas.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba una matriz "
+"cuadrada.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba %s, %s,'%s' o "
+"'%s'.\n"
+
+msgid "Jan"
+msgstr "Ene"
+
+msgid "Feb"
+msgstr "Feb"
+
+msgid "Mar"
+msgstr "Mar"
+
+msgid "Apr"
+msgstr "Abr"
+
+msgid "May"
+msgstr "May"
+
+msgid "Jun"
+msgstr "Jun"
+
+msgid "Jul"
+msgstr "Jul"
+
+msgid "Aug"
+msgstr "Ago"
+
+msgid "Sep"
+msgstr "Sep"
+
+msgid "Oct"
+msgstr "Oct"
+
+msgid "Nov"
+msgstr "Nov"
+
+msgid "Dec"
+msgstr "Dic"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Aun no implementado.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: No se puede abrir archivo '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Tipo desconocido.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: Tipo desconocido '%s': IGNORADO.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s no está implementado.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: La función %s de Scilab no funciona con variables de más de una fila.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: El formato '%s' es desconocido.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: El formato '%s' aun no es manejado.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+"%s: Se llegó al final del archivo antes de terminar de leer la matriz.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: No hay equivalente para la propiedad '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: No hay grilla de segundo orden en Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba '%s', '%s' o "
+"'%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: Tamaño incorrecto del argumento de entrada #%d: Se esperaba un vector "
+"de string de Matlab.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: Clase no manejada '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: Valor incorrecto del argumento de entrada #%d: Se esperaba un valor "
+"entero positivo.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Número incorrecto de argumento(s) de salida: Se esperaban %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: Opción '%s' ignorada.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr ""
+"%s: Se encontró un estilo de línea no soportado en '%s' -> ajustado a 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: Color desconocido en '%s' -> ajustado a negro.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: Número incorrecto de argumento(s) de entrada: Se esperaban %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: el lápiz no es diagonalizable.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: Tipo incorrecto del argumento de entrada #%d: Se esperaba un vector "
+"columna.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Este caso en particular no está implementado.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' no implementado.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr ""
+"%s: Se alcanzó el final de la cadena de caracteres antes de que se lean los "
+"datos.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: No se pudo abrir '%s' o '%s' o '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: Número incorrecto de argumentos de entrada: Se esperaban de %d a %d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: La normalización m - 1 factor es cero.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: La normalización n - 1 factor es cero.\n"
diff --git a/modules/compatibility_functions/locales/fr_FR.po b/modules/compatibility_functions/locales/fr_FR.po
new file mode 100755
index 000000000..485d6c620
--- /dev/null
+++ b/modules/compatibility_functions/locales/fr_FR.po
@@ -0,0 +1,323 @@
+# French translation for scilab
+# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-09-27 09:24+0000\n"
+"Last-Translator: Julie PAUL <Unknown>\n"
+"Language-Team: French <fr@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: fr\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr "%s : Nombre erroné d'argument(s) d'entrée : %d à %d attendu(s).\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s : Dimension erronée de l'argument d'entrée n°%d : Un scalaire attendu.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : Un entier >= %d attendu.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s : Dimension erronée de l'argument d'entrée n°%d : Une chaîne de "
+"caractères attendue.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : Doit être dans l'ensemble "
+"{%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères ou "
+"un scalaire attendu.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée n°%d : Une chaîne de caractères "
+"attendue.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : %s ou %s attendu.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée : Les éléments de la cellule doivent "
+"être des tableaux de caractères.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s : Cette fonction n'a pas été implémentée.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s : Type erroné de l'argument d'entrée : Une cell attendue.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s : Type erroné des arguments d'entrée : Une chaîne de caractères "
+"attendue.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : %s, %s, %s, '%s', '%s' ou "
+"'%s' attendu.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s : Arguments d'entrée faux : Les dimensions données comme premier argument "
+"ne correspondent pas au contenu de la cellule spécifiée.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+"%s : Cette fonctionnalité n'a pas été implémentée : Support pour les "
+"hypermatrices.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée n°%d : Une matrice de chaîne de "
+"caractères attendue.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s : Dimension erronée pour '%s' : Un vecteur attendu.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s : Cette fonctionnalité n'a pas été implémentée : %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s : Valeur erronée pour l'affectation de '%s'.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s : '%s' est seulement utilisé en mode 3d."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr ""
+"%s : Cette fonctionnalité n'a pas été implémentée : Argument de type %d.\n"
+
+msgid "Close"
+msgstr "Fermer"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s : '%s' ignoré.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s : Toutes les fenêtres supprimées.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée n°%d : Une matrice carrée attendue.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : %s, %s,'%s' ou '%s' "
+"attendu.\n"
+
+msgid "Jan"
+msgstr "Jan."
+
+msgid "Feb"
+msgstr "Fév."
+
+msgid "Mar"
+msgstr "Mars"
+
+msgid "Apr"
+msgstr "Avr"
+
+msgid "May"
+msgstr "Mai"
+
+msgid "Jun"
+msgstr "Juin"
+
+msgid "Jul"
+msgstr "Juil."
+
+msgid "Aug"
+msgstr "Août"
+
+msgid "Sep"
+msgstr "Sept."
+
+msgid "Oct"
+msgstr "Oct."
+
+msgid "Nov"
+msgstr "Nov."
+
+msgid "Dec"
+msgstr "Déc."
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s : Pas encore implémenté.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s : Ne peut pas ouvrir le fichier '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s : Type inconnu.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s : Type inconnu '%s' : IGNORE.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s : %s n'est pas implémenté.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s : La fonction Scilab %s ne fonctionne pas avec des variables de plus "
+"d'une ligne.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s : Le format '%s' est inconnu.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s : Le format '%s' n'est pas encore traité.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+"%s : Fin du fichier atteinte avant que toute la matrice ne soit lue.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s : Pas d'équivalent pour la propriété '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s : Pas de grille mineure dans Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : '%s', '%s' ou '%s' "
+"attendu.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s : Dimension erronée de l'argument d'entrée n°%d : Un vecteur de chaînes "
+"de caractères Matlab attendu.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s : Classe '%s' non traitée.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s : Valeur erronée de l'argument d'entrée n°%d : Une valeur entière "
+"positive attendue.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s : Nombre erroné d'argument(s) de sortie : %d attendu(s).\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s : '%s' option ignorée.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s : Style de ligne inconnu trouvé dans '%s' -> fixé à 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s : Couleur inconnue trouvée dans '%s' -> fixé à noir.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s : Nombre erroné d'argument(s) d'entrée : %d attendu(s).\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s : Le mode trait n'est pas diagonalisable.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s : Type erroné de l'argument d'entrée n°%d : Un vecteur colonne attendu.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s : Ce cas particulier n'est pas implémenté.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s : '%s' pas implémenté.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr ""
+"%s : Fin de la chaîne de caractères atteinte avant que les données n'aient "
+"été lues.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s : Ne peut pas ouvrir '%s' ni '%s' ni '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr "%s : Nombre erroné d'arguments d'entrée : %d à %d attendus.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s : Le facteur de normalisation m - 1 est zéro.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s : Le facteur de normalisation n - 1 est zéro.\n"
diff --git a/modules/compatibility_functions/locales/it_IT.po b/modules/compatibility_functions/locales/it_IT.po
new file mode 100755
index 000000000..6d378770f
--- /dev/null
+++ b/modules/compatibility_functions/locales/it_IT.po
@@ -0,0 +1,338 @@
+# Italian translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2015-02-15 20:14+0000\n"
+"Last-Translator: Carml <mighty.carml@gmail.com>\n"
+"Language-Team: Italian <it@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: it\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: Il numero degli argomenti in ingresso è sbagliato: era atteso da %d a "
+"%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era atteso uno "
+"scalare.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso un intero "
+">=%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha una dimensione sbagliata: era attesa una "
+"stringa.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore sbagliato: deve essere "
+"nell'insieme {%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una stringa "
+"o uno scalare.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una "
+"stringa.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso %s o %s.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: L'argomento in ingresso è di tipo sbagliato: gli elementi delle cella "
+"devono essere array di caratteri.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Questa caratteristica non è stata sviluppata.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso è di tipo sbagliato: era attesa una cella.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s: Gli argomenti in ingresso sono di tipo sbagliato: erano attese delle "
+"stringhe.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore errato: era atteso %s, %s, %s, "
+"'%s', '%s' o '%s'\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Gli argomenti in ingresso sono sbagliati: le dimensioni inserite come "
+"primo argomento non corrispondono ai contenuti della cella specificata.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+"%s: La seguente caratteristica non è stata sviluppata: supporto per le "
+"ipermatrici.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice "
+"di stringhe.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: La dimensione di '%s' è sbagliata: era atteso un vettore.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: La seguente caratteristica non è stata sviluppata: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: Il valore è sbagliato per approssimazione presunta a '%s'\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' è usato solo in modalità 3d"
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr ""
+"%s: Questa caratteristica non è stata sviluppata: argomento di tipo %d:\n"
+
+msgid "Close"
+msgstr "Chiudere"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' è stato ignorato.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Tutte le finestre sono state eliminate.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d è di tipo sbagliato: era attesa una matrice "
+"quadrata.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso %s, %s, "
+"'%s' o '%s'.\n"
+
+msgid "Jan"
+msgstr "Gen"
+
+msgid "Feb"
+msgstr "Feb"
+
+msgid "Mar"
+msgstr "Mar"
+
+msgid "Apr"
+msgstr "Apr"
+
+msgid "May"
+msgstr "Mag"
+
+msgid "Jun"
+msgstr "Giu"
+
+msgid "Jul"
+msgstr "Lug"
+
+msgid "Aug"
+msgstr "Ago"
+
+msgid "Sep"
+msgstr "Set"
+
+msgid "Oct"
+msgstr "Ott"
+
+msgid "Nov"
+msgstr "Nov"
+
+msgid "Dec"
+msgstr "Dic"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Non ancora sviluppato.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: Non è possibile aprire il file '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Tipo sconosciuto.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: Il tipo sconosciuto '%s' è stato ignorato.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s non è ancora sviluppato.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: La funzione di Scilab %s non lavora con più di una variabile di tipo "
+"riga.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: Il formato '%s' è sconosciuto.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: Il formato \"%s\" non è ancora gestito.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+"%s: È stata raggiunta la fine del file prima che tutta la matrice fosse "
+"stata letta.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: Non c'è nessun equivalente per la proprietà '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Non c'è una griglia minore in Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso '%s', "
+"'%s' o '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s L'argomento in ingresso #%d ha una grandezza sbagliata: era atteso un "
+"vettore di stringhe creato con Matlab.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: La classe \"%s\" non è gestita.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d ha un valore sbagliato: era atteso un valore "
+"intero positivo.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr ""
+"%s: Il numero degli argomenti in uscita è sbagliato: ne erano attesi %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: l'opzione '%s' è stata ignorata.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr ""
+"%s: È stato trovato in '%s' uno stile di linea sconosciuto -> impostato a "
+"6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr ""
+"%s: È stato trovato un colore sconosciuto in '%s' -> impostato a nero.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr ""
+"%s: Il numero degli argomenti in ingresso è sbagliato: ne erano attesi %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: la matita non è diagonalizzabile.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: L'argomento in ingresso #%d è di tipo sbagliato: era atteso un vettore "
+"colonna.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Questo caso particolare non è sviluppato.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' non è sviluppato.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr ""
+"%s: È stata raggiunta la fine della stringa prima che venissero letti dei "
+"dati.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: Non è possibile aprire né '%s' né '%s' né '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: Il numero degli argomenti in ingresso è sbagliato: era atteso da %d a "
+"%d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: Il fattore di normalizzazione m - 1 è zero.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: Il fattore di normalizzazione n - 1 è zero.\n"
diff --git a/modules/compatibility_functions/locales/ja_JP.po b/modules/compatibility_functions/locales/ja_JP.po
new file mode 100755
index 000000000..a1211b0fa
--- /dev/null
+++ b/modules/compatibility_functions/locales/ja_JP.po
@@ -0,0 +1,325 @@
+# Japanese translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-10-02 13:51+0000\n"
+"Last-Translator: Rui Hirokawa <Unknown>\n"
+"Language-Team: Japanese <z-saito@guitar.ocn.ne.jp>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"X-Poedit-Country: Japan\n"
+"Language: ja\n"
+"X-Poedit-Language: Japanese\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr "%s: 入力引数ã®æ•°ãŒé–“é•ã£ã¦ã„ã¾ã™: %d ã‹ã‚‰ %d 個ã®å¼•æ•°ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr "%s: 入力引数 #%d ã®å¤§ãã•ãŒæ­£ã—ãã‚ã‚Šã¾ã›ã‚“: スカラーを1ã¤æŒ‡å®šã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr "%s: 入力引数 #%d ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™: %d 以上ã®æ•´æ•°ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr "%s: 入力引数 #%d ã®å¤§ãã•ãŒæ­£ã—ãã‚ã‚Šã¾ã›ã‚“: 文字列を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr "%s: 入力引数 #%d ã®å€¤ãŒæ­£ã—ãã‚ã‚Šã¾ã›ã‚“: é›†åˆ {%s} ã«å«ã¾ã‚Œã‚‹å€¤ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr "%s: 入力引数 #%d ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: 文字列ã¾ãŸã¯ã‚¹ã‚«ãƒ©ãƒ¼ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr "%s: 入力引数 #%d ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: 文字列を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr "%s: 入力引数 #%d ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™: %s ã¾ãŸã¯ %sを指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr "%s: 入力引数ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: セルè¦ç´ ã¯æ–‡å­—列é…列ã¨ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: ã“ã®æ©Ÿèƒ½ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s: 入力引数ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: セルを指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr "%s: 入力引数ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: 文字列を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: 入力引数 #%d ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™: %s, %s, %s, '%s', '%s' ã¾ãŸã¯ '%s' を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr "%s: 入力引数ãŒé–“é•ã£ã¦ã„ã¾ã™: 最åˆã®å¼•æ•°ã«æŒ‡å®šã•ã‚ŒãŸæ¬¡å…ƒãŒæŒ‡å®šã•ã‚ŒãŸã‚»ãƒ«ã®å†…容ã«ä¸€è‡´ã—ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s: ã“ã®æ©Ÿèƒ½ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“: ãƒã‚¤ãƒ‘ー行列ã®ã‚µãƒãƒ¼ãƒˆ.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr "%s: 入力引数 #%d ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: 文字列ã®è¡Œåˆ—を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: '%s'ã®å¤§ãã•ãŒé–“é•ã£ã¦ã„ã¾ã™: ベクトルを指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: ã“ã®æ©Ÿèƒ½ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: '%s'ã¸ã®ã‚¢ãƒ•ã‚§ã‚¯ã‚·ãƒ§ãƒ³ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' ã¯3次元モード専用ã§ã™."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: ã“ã®æ©Ÿèƒ½ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“: %d åž‹ã®å¼•æ•°.\n"
+
+#
+# File: macros/mtlb_choices.sci, line: 13
+msgid "Close"
+msgstr "é–‰ã˜ã‚‹"
+
+#
+# File: macros/mtlb_close.sci, line: 15
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' を無視ã—ã¾ã—ãŸã€‚\n"
+
+#
+# File: macros/mtlb_close.sci, line: 51
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: å…¨ã¦ã®ã‚¦ã‚¤ãƒ³ãƒ‰ã‚¦ã‚’削除ã—ã¾ã—ãŸã€‚\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr "%s: 入力引数 #%d ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: 正方行列を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr "%s: 入力引数 #%d ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™: %s, %s,'%s' ã¾ãŸã¯ '%s' を指定ã—ã¦ãã ã•ã„.\n"
+
+#
+# File: macros/mtlb_dir.sci, line: 45
+msgid "Jan"
+msgstr "1月"
+
+#
+# File: macros/mtlb_dir.sci, line: 46
+msgid "Feb"
+msgstr "2月"
+
+#
+# File: macros/mtlb_dir.sci, line: 47
+msgid "Mar"
+msgstr "3月"
+
+#
+# File: macros/mtlb_dir.sci, line: 48
+msgid "Apr"
+msgstr "4月"
+
+#
+# File: macros/mtlb_dir.sci, line: 49
+msgid "May"
+msgstr "5月"
+
+#
+# File: macros/mtlb_dir.sci, line: 50
+msgid "Jun"
+msgstr "6月"
+
+#
+# File: macros/mtlb_dir.sci, line: 51
+msgid "Jul"
+msgstr "7月"
+
+#
+# File: macros/mtlb_dir.sci, line: 52
+msgid "Aug"
+msgstr "8月"
+
+#
+# File: macros/mtlb_dir.sci, line: 53
+msgid "Sep"
+msgstr "9月"
+
+#
+# File: macros/mtlb_dir.sci, line: 54
+msgid "Oct"
+msgstr "10月"
+
+#
+# File: macros/mtlb_dir.sci, line: 55
+msgid "Nov"
+msgstr "11月"
+
+#
+# File: macros/mtlb_dir.sci, line: 56
+msgid "Dec"
+msgstr "12月"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: ã¾ã å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“.\n"
+
+#
+# File: macros/mtlb_fopen.sci, line: 18
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: ファイル '%s' ã‚’é–‹ã‘ã¾ã›ã‚“。\n"
+
+#
+# File: macros/mtlb_format.sci, line: 57
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: 未知ã®åž‹ã§ã™ã€‚\n"
+
+#
+# File: macros/mtlb_format.sci, line: 59
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: 未知ã®åž‹ '%s': 無視ã—ã¾ã—ãŸã€‚\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr "%s: %s Scilab関数ã¯è¤‡æ•°ã®è¡Œå¤‰æ•°ã§å‹•ä½œã—ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: フォーマット '%s' ã‚’èªè­˜ã§ãã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: フォーマット '%s' ã¯ã¾ã å‡¦ç†ã•ã‚Œã¦ã„ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s: 行列全体を読むå‰ã«ãƒ•ã‚¡ã‚¤ãƒ«çµ‚端ã«é”ã—ã¾ã—ãŸ.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: '%s'プロパティã«ç›¸å½“ã™ã‚‹ã‚‚ã®ãŒã‚ã‚Šã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Scilabã®ãƒžã‚¤ãƒŠãƒ¼ã‚°ãƒªãƒƒãƒ‰ãŒå­˜åœ¨ã—ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr "%s: 入力引数 #%d ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™: '%s', '%s' ã¾ãŸã¯ '%s' を指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr "%s: 入力引数 #%d ã®å¤§ãã•ãŒé–“é•ã£ã¦ã„ã¾ã™: 文字列ã®Matlabベクトルを指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: クラス '%s' ã¯å‡¦ç†ã§ãã¾ã›ã‚“.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr "%s: 入力引数 #%d ã®å€¤ãŒé–“é•ã£ã¦ã„ã¾ã™: æ­£ã®æ•´æ•°ã®å€¤ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: 出力引数ã®æ•°ãŒé–“é•ã£ã¦ã„ã¾ã™: %d 個ã®å¼•æ•°ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: '%s'オプションã¯ç„¡è¦–ã•ã‚Œã¾ã—ãŸ.\n"
+
+#
+# File: macros/mtlb_plot.sci, line: 197
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: 未知ã®ç·šã‚¹ã‚¿ã‚¤ãƒ«ã§ã™ '%s' -> 6 を設定ã—ã¾ã™ã€‚\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: 未知ã®è‰²ãŒ '%s'ã§ã¿ã¤ã‹ã‚Šã¾ã—㟠-> 黒を設定ã—ã¾ã™.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: 入力引数ã®æ•°ã«èª¤ã‚ŠãŒã‚ã‚Šã¾ã™: %d 個ã®å¼•æ•°ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: ペンシルãŒå¯¾è§’化å¯èƒ½ã§ã¯ã‚ã‚Šã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr "%s: 入力引数 #%d ã®åž‹ãŒé–“é•ã£ã¦ã„ã¾ã™: 列ベクトルを指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: ã“ã®ç‰¹å®šã®ã‚±ãƒ¼ã‚¹ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' ã¯å®Ÿè£…ã•ã‚Œã¦ã„ã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: データãŒèª­ã¾ã‚Œã‚‹å‰ã«æ–‡å­—列ã®çµ‚端ã«é”ã—ã¾ã—ãŸã€‚\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: '%s' , '%s' , '%s' ã®ã„ãšã‚Œã‚‚オープンã§ãã¾ã›ã‚“.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr "%s: 入力引数ã®æ•°ãŒé–“é•ã£ã¦ã„ã¾ã™: %d ã‹ã‚‰ %d 個ã®å¼•æ•°ã‚’指定ã—ã¦ãã ã•ã„.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: æ­£è¦åŒ– m-1 å› å­ãŒã‚¼ãƒ­ã§ã™.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: æ­£è¦åŒ– n-1 å› å­ãŒã‚¼ãƒ­ã§ã™.\n"
diff --git a/modules/compatibility_functions/locales/pl_PL.po b/modules/compatibility_functions/locales/pl_PL.po
new file mode 100755
index 000000000..c64ac9dc7
--- /dev/null
+++ b/modules/compatibility_functions/locales/pl_PL.po
@@ -0,0 +1,314 @@
+# Polish translation for scilab
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2011-09-10 18:49+0000\n"
+"Last-Translator: I.Rokach <Unknown>\n"
+"Language-Team: Polish <pl@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: pl\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano od %d do %d\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: Oczekiwany "
+"skalar.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: Nieprawidłowy rozmiar dla argumentu wejściowego nr %d: Oczekiwano ciągu "
+"znaków.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: Nieprawidłowa wartość parametru wejściowego nr %d: Musi być ze zbioru "
+"{%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: Zły typ parametru wejściowego: Elementy komórek muszą być tablicami "
+"znaków.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Ta funkcja nie została zrealizowana.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s: Zły typ parametru wejściowego: Oczekiwano komórki.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s: Nieprawidłowy typ dla argumentu wejściowego: oczekiwany łańcuch.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: Zła wartość parametru wejściowego #%d: oczekiwano %s, %s, %s, '%s', '%s' "
+"lub '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Nieprawidłowy parametr wejściowy: Wymiary podane jako pierwszy parametr "
+"nie odpowiadają określonej zawartości komórki.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s: Wsparcie dla hipermacierzy nie zostało zrealizowane.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: Nieprawidłowy typ argumentu wejściowego #%d: oczekiwana macierz ciągów "
+"znaków.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Nieprawidłowy rozmiar '%s': Oczekiwany jest wektor.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Funkcja ta nie została zrealizowana: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: Zła wartość dla wymuszenia do '%s'.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' stosowany tylko w trybie 3d."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: Właściwość ta (parametr typu %d) nie została zrealizowana.\n"
+
+msgid "Close"
+msgstr "Zamknij"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' zignorowano.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Wszystkie okna zostały usunięte.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: Nieprawidłowy typ parametru wejściowego #%d: Oczekiwano macierzy "
+"kwadratowej.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: Zła wartość parametru wejściowego #%d: oczekiwano %s, %s,'%s' lub '%s'.\n"
+
+msgid "Jan"
+msgstr "Sty"
+
+msgid "Feb"
+msgstr "Lut"
+
+msgid "Mar"
+msgstr "Mar"
+
+msgid "Apr"
+msgstr "Kwi"
+
+msgid "May"
+msgstr "Maj"
+
+msgid "Jun"
+msgstr "Cze"
+
+msgid "Jul"
+msgstr "Lip"
+
+msgid "Aug"
+msgstr "Sie"
+
+msgid "Sep"
+msgstr "Wrz"
+
+msgid "Oct"
+msgstr "Paź"
+
+msgid "Nov"
+msgstr "Lis"
+
+msgid "Dec"
+msgstr "Gru"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Jeszcze nie realizowane.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: Nie można otworzyć pliku '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Nieznany typ.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: Nieznany typ '%s': ZIGNOROWANY.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s nie został(a) zrealizowany(a).\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: %s Funkcja programu Scilab nie działa ze zmiennymi o długości większej "
+"niż jeden wiersz.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: Format '%s' jest nieznany.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: Format '%s' nie jest jeszcze obsługiwany.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s: Osiągnięto koniec pliku przed odczytaniem macierzy w całości.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: Nie ma odpowiednika własności '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Nie ma siatki podrzędnej w programie Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Nieprawidłowa wartość parametru wejściowego nr %d: oczekiwano '%s', '%s' "
+"lub '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: Zły rozmiar dla parametru wejściowego #%d: Oczekiwano wektora programu "
+"Matlab dla ciągów.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: Nieobsługiwana klasa '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: Zła wartość parametru wejściowego #%d: Oczekiwana dodatnia wartość "
+"całkowita.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Nieprawidłowa liczba argumentów wyjściowych: oczekiwano %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: '%s' opcja ignorowana.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: Odnaleziono nieznany typ linii w '%s' -> zmieniono na 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: Odnaleziono nieznany kolor w '%s' -> zmieniono na czarny.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: macierzy typu pencil nie da się zdiagonalizować\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: Nieprawidłowy typ parametru wejściowego #%d: Oczekiwano wektora "
+"kolumnowego.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Ten konkretny przypadek nie został zrealizowany.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' nie został(a) zrealizowany(a).\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: Osiągnięto koniec ciągu zanim odczytano dane.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: Nie można otworzyć '%s' ani '%s' ani '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: Nieprawidłowa liczba argumentów wejściowych: oczekiwano od %d do %d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: Współczynnik normalizacji m - 1 wynosi zero.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: Współczynnik normalizacji n - 1 wynosi zero.\n"
diff --git a/modules/compatibility_functions/locales/pt_BR.po b/modules/compatibility_functions/locales/pt_BR.po
new file mode 100755
index 000000000..d219c37fe
--- /dev/null
+++ b/modules/compatibility_functions/locales/pt_BR.po
@@ -0,0 +1,320 @@
+# Brazilian Portuguese translation for scilab
+# Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2011-09-01 15:53+0000\n"
+"Last-Translator: Scilab.team <Unknown>\n"
+"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: pt_BR\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: Quantidade incorreta de argumento(s) de entrada: esperava-se de %d a "
+"%d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um "
+"escalar.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um "
+"texto.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: Valor incorreto para o argumento de entrada #%d: deve pertencer ao "
+"conjunto {%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: Tipo incorreto para o argumento de entrada: elementos das células devem "
+"ser matrizes de caracteres.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Este recurso não foi implementado.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr ""
+"%s: Tipo incorreto para o argumento de entrada: esperava-se uma célula.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s: Tipo incorreto para argumentos de entrada: esperava-se um texto.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: Valor incorreto para o argumento de entrada #%d: esperava-se %s, %s, %s, "
+"'%s', '%s' ou '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Argumentos de entrada incorretos: as dimensões fornecidas como primeiro "
+"argumento não correspondem ao conteúdo da célula especificada.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s: Este recurso não foi implementado: suporte a hipermatrizes.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz "
+"de textos.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Tamanho incorreto para '%s': esperava-se um vetor.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Este recurso não foi implementado: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: Valor incorreto para simulação de '%s'.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' usado apenas em modo 3D."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: Este recurso não foi implementado: argumento do tipo %d.\n"
+
+msgid "Close"
+msgstr "Fechar"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: '%s' ignorado.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Todas as janelas excluídas.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se uma matriz "
+"quadrada.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: Valor incorreto para o argumento de entrada #%d: Esperava-se %s, %s,'%s' "
+"ou '%s'.\n"
+
+msgid "Jan"
+msgstr "Jan"
+
+msgid "Feb"
+msgstr "Fev"
+
+msgid "Mar"
+msgstr "Mar"
+
+msgid "Apr"
+msgstr "Abr"
+
+msgid "May"
+msgstr "Mai"
+
+msgid "Jun"
+msgstr "Jun"
+
+msgid "Jul"
+msgstr "Jul"
+
+msgid "Aug"
+msgstr "Ago"
+
+msgid "Sep"
+msgstr "Set"
+
+msgid "Oct"
+msgstr "Out"
+
+msgid "Nov"
+msgstr "Nov"
+
+msgid "Dec"
+msgstr "Dez"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Ainda não foi implementado.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: Não pode abrir o arquivo '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: Tipo desconhecido.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: Tipo desconhecido '%s': IGNORADO.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s não foi implementado.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: A função %s do Scilab não funciona com variáveis com mais de uma linha.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: O formato '%s' é desconhecido.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: O formato '%s' ainda não é tratado.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+"%s: Chegou-se ao final do arquivo antes de terminar de ler toda a matriz.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: Não há equivalente para a propriedade '%s'.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Não há a grade minor (menor) no Scilab.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Valor incorreto para o argumento de entrada #%d: esperava-se '%s', '%s' "
+"ou '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: Tamanho incorreto para o argumento de entrada #%d: esperava-se um vetor "
+"de textos do Matlab.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: Classe '%s' não tratada.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: Valor incorreto para o argumento de entrada #%d: esperava-se um valor "
+"inteiro positivo.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Quantidade incorreta de argumento(s) de saída: esperava-se %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: Opção '%s' ignorada.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr ""
+"%s: Encontrado um estilo de linha desconhecido em '%s' -> ajustado para 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr ""
+"%s: Encontrou-se uma cor desconhecida em '%s' -> ajustado para preto.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr ""
+"%s: Quantidade incorreta de argumento(s) de entrada: esperava-se %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: o lápis não é diagonalizável.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: Tipo incorreto para o argumento de entrada #%d: esperava-se um vetor "
+"coluna.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Este caso em particular não está implementado.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' não implementado.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: Chegou-se ao final do texto antes dos dados serem lidos.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: Não foi possível abrir '%s' nem '%s' nem '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: Quantidade incorreta de argumentos de entrada: esperava-se de %d a %d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: O fator m - 1 de normalização é zero.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: O fator n - 1 de normalização é zero.\n"
diff --git a/modules/compatibility_functions/locales/ru_RU.po b/modules/compatibility_functions/locales/ru_RU.po
new file mode 100755
index 000000000..8c5bb63a3
--- /dev/null
+++ b/modules/compatibility_functions/locales/ru_RU.po
@@ -0,0 +1,305 @@
+# Russian translation for scilab
+# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-09-27 14:34+0000\n"
+"Last-Translator: Stanislav V. Kroter <krotersv@gmail.com>\n"
+"Language-Team: Russian <ru@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: ru\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr "%s: Ðеверное количеÑтво входных параметров: ожидалоÑÑŒ от %d до %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr "%s: Ðеверный размер входного параметра â„–%d: ожидалÑÑ ÑкалÑÑ€.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+"%s: Ðеверное значение входного аргумента â„–%d: ожидалоÑÑŒ целое чиÑло >= %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr "%s: Ðеверный размер входного параметра â„–%d: ожидалаÑÑŒ Ñтрока.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: Ðеверное значение входного параметра â„–%d: должно быть из множеÑтва "
+"{%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+"%s: Ðеверный тип входного аргумента â„–%d: ожидалоÑÑŒ Ñтроковое значение или "
+"ÑкалÑÑ€.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr "%s: Ðеверный тип входного аргумента â„–%d: ОжидалаÑÑŒ Ñтрока.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr "%s: Ðеверное значение входного аргумента â„–%d: ожидалоÑÑŒ %s или %s.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: Ðеверный тип входного параметра: Ñлементы Ñчеек должны быть маÑÑивами "
+"Ñимволов.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: Эта функциональноÑÑ‚ÑŒ не реализована.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s: Ðеверный тип входного параметра: ожидалаÑÑŒ Ñчейка.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr "%s: Ðеверный тип входных параметров: ожидалаÑÑŒ Ñтрока.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: Ðеверное значение входного параметра â„–%d: ожидалоÑÑŒ %s, %s, %s, «%s», "
+"«%s» или «%s».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: Ðеверные входные параметра: заданные первым параметром размерноÑти не "
+"ÑоответÑтвуют Ñодержимому Ñчеек.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr ""
+"%s: Ð¡Ð»ÐµÐ´ÑƒÑŽÑ‰Ð°Ñ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ð¾Ð½Ð°Ð»ÑŒÐ½Ð¾ÑÑ‚ÑŒ не реализована: поддержка гиперматриц.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr "%s: Ðеверный тип входного параметра â„–%d: ожидалаÑÑŒ матрица Ñтрок.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: Ðеверный размер «%s»: ожидалÑÑ Ð²ÐµÐºÑ‚Ð¾Ñ€.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: Ð¡Ð»ÐµÐ´ÑƒÑŽÑ‰Ð°Ñ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ð¾Ð½Ð°Ð»ÑŒÐ½Ð¾ÑÑ‚ÑŒ не реализована: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: Ðеверное значение Ð´Ð»Ñ Ð²Ð¾Ð·Ð´ÐµÐ¹ÑÑ‚Ð²Ð¸Ñ Ð½Ð° «%s».\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: «%s» иÑпользуетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ в режиме 3d."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: Ð¡Ð»ÐµÐ´ÑƒÑŽÑ‰Ð°Ñ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ð¾Ð½Ð°Ð»Ð½Ð¾ÑÑ‚ÑŒ не реализована: аргумент типа %d.\n"
+
+msgid "Close"
+msgstr "Закрыть"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: «%s» проигнорирован.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: Ð’Ñе окна удалены.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: Ðеверный тип входного параметра â„–%d: ожидалаÑÑŒ ÐºÐ²Ð°Ð´Ñ€Ð°Ñ‚Ð½Ð°Ñ Ð¼Ð°Ñ‚Ñ€Ð¸Ñ†Ð°.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: Ðеверное значение входного параметра â„–%d: ожидалоÑÑŒ %s, %s, «%s» или "
+"«%s».\n"
+
+msgid "Jan"
+msgstr "Янв"
+
+msgid "Feb"
+msgstr "Фев"
+
+msgid "Mar"
+msgstr "Мар"
+
+msgid "Apr"
+msgstr "Ðпр"
+
+msgid "May"
+msgstr "Май"
+
+msgid "Jun"
+msgstr "Июн"
+
+msgid "Jul"
+msgstr "Июл"
+
+msgid "Aug"
+msgstr "Ðвг"
+
+msgid "Sep"
+msgstr "Сен"
+
+msgid "Oct"
+msgstr "Окт"
+
+msgid "Nov"
+msgstr "ÐоÑ"
+
+msgid "Dec"
+msgstr "Дек"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: Пока не реализовано.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: Ðе удалоÑÑŒ открыть файл '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: ÐеизвеÑтный тип.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: ÐеизвеÑтный тип «%s»: ПРОИГÐОРИРОВÐÐ.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s не реализован(а).\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr ""
+"%s: Ð¤ÑƒÐ½ÐºÑ†Ð¸Ñ Scilab %s не работает Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ñ‹Ñ… Ñ Ð±Ð¾Ð»ÐµÐµ чем одной Ñтрокой.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: Формат «%s» неизвеÑтен.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: Формат «%s» пока не поддерживаетÑÑ.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s: ДоÑтигнут конец файла до того, как вÑÑ Ð¼Ð°Ñ‚Ñ€Ð¸Ñ†Ð° была прочитана.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: Ðет Ñквивалента Ð´Ð»Ñ ÑвойÑтва «%s».\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Ð’ Scilab нет второÑтепенной Ñетки.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Ðеверное значение входного параметра â„–%d: ожидалоÑÑŒ «%s», «%s» или "
+"«%s».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: Ðеверный размер входного параметра â„–%d: ожидалÑÑ Ð²ÐµÐºÑ‚Ð¾Ñ€ Ñтрок Matlab.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: Ðеподдерживаемый клаÑÑ Â«%s».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: Ðеверное значение входного параметра â„–%d: ожидалоÑÑŒ целое положительное "
+"чиÑло.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: Ðеверное количеÑтво выходных параметров: ожидалоÑÑŒ %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: параметр «%s» проигнорирован.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: Ð’ «%s» найден неизвеÑтный Ñтиль линии -> уÑтановлен 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: Ð’ «%s» найден неизвеÑтный цвет -> выбран чёрный.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: Ðеверное количеÑтво входных параметров: ожидалоÑÑŒ %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: пучок не может быть диаганолизирован.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr "%s: Ðеверный тип входного параметра â„–%d: ожидалÑÑ Ð²ÐµÐºÑ‚Ð¾Ñ€-Ñтолбец.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: Этот чаÑтный Ñлучай не реализован.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: «%s» не реализовано.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: Конец Ñтроки был доÑтигнут раньше, чем данные были прочитаны.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: Ðе удалоÑÑŒ открыть ни «%s», ни «%s», ни «%s».\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr "%s: Ðеверное количеÑтво входных параметров: ожидалоÑÑŒ от %d до %d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: Фактор Ð½Ð¾Ñ€Ð¼Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ m - 1 равен нулю.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: Фактор Ð½Ð¾Ñ€Ð¼Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ n - 1 равен нулю.\n"
diff --git a/modules/compatibility_functions/locales/uk_UA.po b/modules/compatibility_functions/locales/uk_UA.po
new file mode 100755
index 000000000..f8bf74098
--- /dev/null
+++ b/modules/compatibility_functions/locales/uk_UA.po
@@ -0,0 +1,325 @@
+# Ukrainian translation for scilab
+# Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010
+# This file is distributed under the same license as the scilab package.
+#
+# Yuri Chornoivan <yurchor@ukr.net>, 2010.
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2013-10-01 08:46+0000\n"
+"Last-Translator: Yuri Chornoivan <yurchor@gmail.com>\n"
+"Language-Team: Ukrainian <translation@linux.org.ua>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: uk\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr ""
+"%s: помилкова кількіÑÑ‚ÑŒ вхідних параметрів: Ñлід викориÑтовувати від %d до "
+"%d параметрів.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr ""
+"%s: помилкова розмірніÑÑ‚ÑŒ вхідного параметра â„–%d: Ñлід викориÑтовувати "
+"дійÑне чиÑло.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+"%s: помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: мало бути викориÑтано ціле "
+"чиÑло >= %d.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: помилковий розмір вхідного параметра â„–%d: Ñлід викориÑтовувати Ñ€Ñдок.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr ""
+"%s: помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: Ñлід викориÑтовувати Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ "
+"з набору {%s}.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра â„–%d: Ñлід викориÑтовувати тип «string» "
+"або ÑкалÑрний (чиÑловий) тип.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра â„–%d: Ñлід викориÑтовувати тип "
+"«string».\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+"%s: помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: Ñлід викориÑтовувати %s або "
+"%s.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра: елементи комірок мають бути маÑивами "
+"Ñимволів.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: цю можливіÑÑ‚ÑŒ ще не реалізовано.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра: Ñлід викориÑтовувати тип комірки.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr ""
+"%s: помилковий тип вхідних параметрів: Ñлід викориÑтовувати «string».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr ""
+"%s: помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: Ñлід викориÑтовувати %s, %s, "
+"%s, «%s», «%s» або «%s».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr ""
+"%s: помилкові вхідні параметри: розмірноÑÑ‚Ñ–, вказані за допомогою першого "
+"параметра, не відповідають вказаному вміÑту комірок.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s: цю можливіÑÑ‚ÑŒ не реалізовано: підтримка гіперматриць.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра â„–%d: Ñлід викориÑтовувати матрицю з "
+"Ñ€Ñдків.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: помилкова розмірніÑÑ‚ÑŒ «%s»: Ñлід викориÑтовувати вектор.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: цю можливіÑÑ‚ÑŒ не реалізовано: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: помилкове Ð½Ð°Ð´Ð°Ð½Ð½Ñ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Â«%s».\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: «%s» викориÑтовуєтьÑÑ Ð»Ð¸ÑˆÐµ у режимі 3d."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: цю можливіÑÑ‚ÑŒ не реалізовано: параметр типу %d.\n"
+
+msgid "Close"
+msgstr "Закрити"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: «%s» проігноровано.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: вÑÑ– вікна вилучено.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра â„–%d: Ñлід викориÑтовувати квадратну "
+"матрицю.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr ""
+"%s: помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: Ñлід викориÑтовувати %s, %s, "
+"«%s» або «%s».\n"
+
+msgid "Jan"
+msgstr "Ñіч"
+
+msgid "Feb"
+msgstr "лют"
+
+msgid "Mar"
+msgstr "бер"
+
+msgid "Apr"
+msgstr "кві"
+
+msgid "May"
+msgstr "тра"
+
+msgid "Jun"
+msgstr "чер"
+
+msgid "Jul"
+msgstr "лип"
+
+msgid "Aug"
+msgstr "Ñер"
+
+msgid "Sep"
+msgstr "вер"
+
+msgid "Oct"
+msgstr "жов"
+
+msgid "Nov"
+msgstr "лиÑ"
+
+msgid "Dec"
+msgstr "гру"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: ще не реалізовано.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: не вдалоÑÑ Ð²Ñ–Ð´ÐºÑ€Ð¸Ñ‚Ð¸ файл «%s».\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: невідомий тип.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: невідомий тип «%s»: проігноровано.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s не реалізовано.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr "%s: Ñ„ÑƒÐ½ÐºÑ†Ñ–Ñ Scilab %s не працює з декількома Ñ€Ñдковими змінними.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: формат «%s» не належить до відомих.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: обробки формату «%s» ще не передбачено.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr ""
+"%s: Ñ‡Ð¸Ñ‚Ð°Ð½Ð½Ñ Ð¼Ð°Ñ‚Ñ€Ð¸Ñ†Ñ– було перервано неÑподіваним завершеннÑм файла даних.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: у влаÑтивоÑÑ‚Ñ– «%s» немає еквівалентів.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: у Scilab не передбачено додаткової ґратки.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr ""
+"%s: Помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: Ñлід викориÑтовувати «%s», "
+"«%s» або «%s».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr ""
+"%s: помилкова розмірніÑÑ‚ÑŒ вхідного параметра â„–%d: Ñлід викориÑтовувати "
+"вектор з Ñ€Ñдків Matlab.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: непридатний Ð´Ð»Ñ Ð¾Ð±Ñ€Ð¾Ð±ÐºÐ¸ ÐºÐ»Ð°Ñ Â«%s».\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr ""
+"%s: помилкове Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð²Ñ…Ñ–Ð´Ð½Ð¾Ð³Ð¾ параметра â„–%d: Ñлід викориÑтовувати додатне "
+"ціле значеннÑ.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: помилкова кількіÑÑ‚ÑŒ вихідних параметрів: мало бути %d.\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: параметр «%s» проігноровано.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr ""
+"%s: у «%s» виÑвлено невідомий Ñтиль лінії -> вÑтановлено Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s: у «%s» виÑвлено невідомий колір -> вÑтановлено чорний.\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: помилкова кількіÑÑ‚ÑŒ вхідних параметрів: мало бути %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: Ð´Ñ–Ð°Ð³Ð¾Ð½Ð°Ð»Ñ–Ð·Ð°Ñ†Ñ–Ñ Ð½ÐµÐ¼Ð¾Ð¶Ð»Ð¸Ð²Ð°.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr ""
+"%s: помилковий тип вхідного параметра â„–%d: Ñлід викориÑтовувати тип вектора-"
+"Ñтовпчика.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: цей чаÑтковий випадок не реалізовано.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: «%s» не реалізовано.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: Ñ‡Ð¸Ñ‚Ð°Ð½Ð½Ñ Ð´Ð°Ð½Ð¸Ñ… було перервано неÑподіваним завершеннÑм Ñ€Ñдка.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: не вдалоÑÑ Ð²Ñ–Ð´ÐºÑ€Ð¸Ñ‚Ð¸ ні «%s», ні «%s», ні «%s».\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr ""
+"%s: помилкова кількіÑÑ‚ÑŒ вхідних параметрів: Ñлід викориÑтовувати від %d до "
+"%d.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: коефіцієнт Ð½Ð¾Ñ€Ð¼ÑƒÐ²Ð°Ð½Ð½Ñ m - 1 дорівнює нулеві.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: коефіцієнт Ð½Ð¾Ñ€Ð¼ÑƒÐ²Ð°Ð½Ð½Ñ n - 1 дорівнює нулеві.\n"
diff --git a/modules/compatibility_functions/locales/zh_CN.po b/modules/compatibility_functions/locales/zh_CN.po
new file mode 100755
index 000000000..71deb8ef5
--- /dev/null
+++ b/modules/compatibility_functions/locales/zh_CN.po
@@ -0,0 +1,284 @@
+# Simplified Chinese translation for scilab
+# Free Software Foundation, Inc
+# This file is distributed under the same license as the scilab package.
+# ilinux <bnufl66@gmail.com>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2012-03-04 07:56+0000\n"
+"Last-Translator: Wesh <Unknown>\n"
+"Language-Team: Chinese (simplified) <i18n-zh@googlegroups.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: zh_CN\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr "%s:输入å‚数的数目出错:应该为 %d 到 %d 个。\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr "%s:第%d个输入å‚数的大å°é”™è¯¯ï¼šåº”该为标é‡ã€‚\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr "%s:第%d个输入å‚数的大å°é”™è¯¯ï¼šåº”该为字符串。\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr "%s:第%d个输入å‚数的值错误:必须在集åˆ{%s}中。\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr "%s:输入å‚数的类型出错:Cell 元素必须为字符数组。\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s:该特点尚未实现。\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s:输入å‚数类型出错:应该为 Cell。\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr "%s:输入å‚数的类型出错:应该为字符串。\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的值出错:应该为%s,%s,%s,“%sâ€ï¼Œâ€œ%sâ€æˆ–“%sâ€ã€‚\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr "%s:输入å‚数出错:第一个å‚数给出的维数与特定的 cell 内容ä¸ç¬¦ã€‚\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s:该特点还没有实现:对高维矩阵的支æŒã€‚\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的类型出错:应该为字符串矩阵。\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s:“%sâ€çš„大å°å‡ºé”™ï¼šåº”该为å‘é‡ã€‚\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s:该特点尚未实现:%s\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s:修饰“%sâ€çš„值出错。\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s:“%sâ€åªèƒ½åœ¨3 d 模å¼ä¸‹ä½¿ç”¨ã€‚"
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s:该特点尚未实现:类型为 %d çš„å‚数。\n"
+
+msgid "Close"
+msgstr "关闭"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s:“%sâ€å·²è¢«å¿½ç•¥ã€‚\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s:所有的窗å£å·²è¢«åˆ é™¤ã€‚\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的类型出错:应该为方阵。\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的值出错:应该为%s, %s,“%sâ€æˆ–“%sâ€ã€‚\n"
+
+msgid "Jan"
+msgstr "1月"
+
+msgid "Feb"
+msgstr "2月"
+
+msgid "Mar"
+msgstr "3月"
+
+msgid "Apr"
+msgstr "4月"
+
+msgid "May"
+msgstr "5月"
+
+msgid "Jun"
+msgstr "6月"
+
+msgid "Jul"
+msgstr "7月"
+
+msgid "Aug"
+msgstr "8月"
+
+msgid "Sep"
+msgstr "9月"
+
+msgid "Oct"
+msgstr "10月"
+
+msgid "Nov"
+msgstr "11月"
+
+msgid "Dec"
+msgstr "12月"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s:尚未实现。\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s:无法打开文件“%sâ€ã€‚\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s:未知的类型。\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s:未知的类型“%sâ€ï¼šå·²å¿½ç•¥ã€‚\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s:%s 尚未实现。\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr "%s:当å˜é‡å¤šäºŽä¸€è¡Œæ—¶ï¼ŒScilab 函数 %s ä¸èƒ½è¿è¡Œã€‚\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s:格å¼â€œ%sâ€æ˜¯æœªçŸ¥çš„。\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s:格å¼â€œ%sâ€å°šæ— æ³•å¤„ç†ã€‚\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s:在所有矩阵读完之å‰æ–‡ä»¶ç»“æŸã€‚\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s:属性“%sâ€æ²¡æœ‰ç­‰ä»·çš„。\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s:在 Scilab 里没有å°ç½‘格。\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的值出错:应该为“%sâ€ï¼Œâ€œ%sâ€æˆ–“%sâ€ã€‚\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的大å°å‡ºé”™ï¼šåº”该为 Matlab 字符串å‘é‡ã€‚\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s:无法处ç†çš„类“%sâ€ã€‚\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的值出错:应该为一个正整数值。\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s:输出å‚数的数目出错:应该为 %d 个。\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s:选项“%sâ€è¢«å¿½ç•¥äº†ã€‚\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s:“%sâ€ä¸­çš„未知线型->设置为6。\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s:在“%sâ€ä¸­å‘现未知的颜色->设置为黑色。\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s:输入å‚数的数目出错:应该为 %d 个。\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s:铅笔是éžå¯¹è§’化的。\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr "%s:输入å‚æ•° #%d 的类型出错:应该为列å‘é‡ã€‚\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s:该特殊的情形尚未实现。\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s:“%sâ€å°šæœªå®žçŽ°ã€‚\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s:在数æ®è¯»å…¥å‰å·²ç»åˆ°è¾¾å­—符串的结尾。\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s:ä¸èƒ½æ‰“开“%sâ€ï¼Œâ€œ%sâ€å’Œâ€œ%sâ€ä¸­ä»»ä¸€ä¸ªã€‚\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr "%s:输入å‚数的数目出错:应该为 %d 到 %d 个。\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s:正常化 m - 1 çš„å› å­æ˜¯é›¶ã€‚\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s:正常化 n - 1 çš„å› å­æ˜¯é›¶ã€‚\n"
diff --git a/modules/compatibility_functions/locales/zh_TW.po b/modules/compatibility_functions/locales/zh_TW.po
new file mode 100755
index 000000000..c66314a1a
--- /dev/null
+++ b/modules/compatibility_functions/locales/zh_TW.po
@@ -0,0 +1,284 @@
+# Traditional Chinese translation for scilab
+# Copyright (c) 2008 Rosetta Contributors and Canonical Ltd 2008
+# This file is distributed under the same license as the scilab package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2008.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: scilab\n"
+"Report-Msgid-Bugs-To: <localization@lists.scilab.org>\n"
+"POT-Creation-Date: 2013-04-16 17:44+0100\n"
+"PO-Revision-Date: 2011-09-01 15:53+0000\n"
+"Last-Translator: Scilab.team <Unknown>\n"
+"Language-Team: Traditional Chinese <zh_TW@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Launchpad (build 17413)\n"
+"Language: \n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d to %d expected.\n"
+msgstr "%s: 輸入åƒæ•¸ä¹‹æ•¸ç›®éŒ¯èª¤: 應為 %d 到 %d 之數.\n"
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A scalar expected.\n"
+msgstr "%s: 第 %d 個輸入åƒæ•¸å€¼éŒ¯èª¤: 應該是純é‡.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Integer >= %d expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong size for input argument #%d: A string expected.\n"
+msgstr "%s: 第 %d 個輸入åƒæ•¸çš„資料長度錯誤: 應該是字串型態.\n"
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"
+msgstr "%s: 第 %d 個輸入åƒæ•¸æ•¸å€¼éŒ¯èª¤: æ‡‰åœ¨é›†åˆ {%s} 之內.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string or scalar expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: A string expected.\n"
+msgstr ""
+
+#, c-format
+msgid "%s: Wrong value for input argument #%d: %s or %s expected.\n"
+msgstr ""
+
+#, c-format
+msgid ""
+"%s: Wrong type for input argument: Cell elements must be character arrays.\n"
+msgstr "%s: 輸入åƒæ•¸ä¹‹åž‹æ…‹éŒ¯èª¤: Cell 元素必須為字元陣列.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented.\n"
+msgstr "%s: 此特性尚未實作.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument: Cell expected.\n"
+msgstr "%s: 輸入åƒæ•¸åž‹æ…‹éŒ¯èª¤: 應為 Cell åž‹æ…‹.\n"
+
+#, c-format
+msgid "%s: Wrong type for input arguments: String expected.\n"
+msgstr "%s: 輸入åƒæ•¸åž‹æ…‹éŒ¯èª¤: 應為字串.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s, %s, '%s', '%s' or '%s' "
+"expected.\n"
+msgstr "%s: 第 %d 輸入åƒæ•¸æ•¸å€¼éŒ¯èª¤: 應為 %s, %s, %s, '%s', '%s' 或 '%s'\n"
+
+#, c-format
+msgid ""
+"%s: Wrong input arguments: Dimensions given as first argument do not match "
+"specified cell contents.\n"
+msgstr "%s: 輸入åƒæ•¸éŒ¯èª¤: 第一åƒæ•¸ä¹‹ç¶­åº¦ç„¡æ³•æ­é… cell 之容.\n"
+
+#, c-format
+msgid ""
+"%s: This feature has not been implemented: Support for hypermatrices.\n"
+msgstr "%s: 此特性尚未實作: 支æ´è¶…矩陣 (hypermatrices).\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Matrix of strings expected.\n"
+msgstr "%s: 第 %d 個輸入åƒæ•¸åž‹æ…‹éŒ¯èª¤: 應為字串矩陣.\n"
+
+#, c-format
+msgid "%s: Wrong size for '%s': Vector expected.\n"
+msgstr "%s: '%s' 之長度錯誤: 應為一å‘é‡.\n"
+
+#, c-format
+msgid "%s: This feature has not been implemented: %s.\n"
+msgstr "%s: 此特性尚未實作: %s.\n"
+
+#, c-format
+msgid "%s: Wrong value for affectation to '%s'.\n"
+msgstr "%s: '%s' 之修飾 (affectation) 數值錯誤.\n"
+
+#, c-format
+msgid "%s: '%s' only used in 3d mode."
+msgstr "%s: '%s' åªç”¨æ–¼ 3d 模å¼."
+
+#, c-format
+msgid "%s: This feature has not been implemented: Argument of type %d.\n"
+msgstr "%s: 此特性尚未實作: åž‹æ…‹ %d 之åƒæ•¸.\n"
+
+msgid "Close"
+msgstr "關閉"
+
+#, c-format
+msgid "%s: '%s' ignored.\n"
+msgstr "%s: 忽略 '%s'.\n"
+
+#, c-format
+msgid "%s: All windows deleted.\n"
+msgstr "%s: 刪除所有視窗.\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Square matrix expected.\n"
+msgstr "%s: 第 %d 輸入åƒæ•¸åž‹æ…‹éŒ¯èª¤: 應為一方陣.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: %s, %s,'%s' or '%s' expected.\n"
+msgstr "%s: 第 %d 輸入åƒæ•¸æ•¸å€¼éŒ¯èª¤: 應為 %s, %s,'%s' 或 '%s' .\n"
+
+msgid "Jan"
+msgstr "一月"
+
+msgid "Feb"
+msgstr "二月"
+
+msgid "Mar"
+msgstr "三月"
+
+msgid "Apr"
+msgstr "四月"
+
+msgid "May"
+msgstr "五月"
+
+msgid "Jun"
+msgstr "六月"
+
+msgid "Jul"
+msgstr "七月"
+
+msgid "Aug"
+msgstr "八月"
+
+msgid "Sep"
+msgstr "ä¹æœˆ"
+
+msgid "Oct"
+msgstr "å月"
+
+msgid "Nov"
+msgstr "å一月"
+
+msgid "Dec"
+msgstr "å二月"
+
+#, c-format
+msgid "%s: Not yet implemented.\n"
+msgstr "%s: 尚未實作.\n"
+
+#, c-format
+msgid "%s: Cannot open file '%s'.\n"
+msgstr "%s: 無法開啟檔案 '%s'.\n"
+
+#, c-format
+msgid "%s: Unknown type.\n"
+msgstr "%s: 未知型態.\n"
+
+#, c-format
+msgid "%s: Unknown type '%s': IGNORED.\n"
+msgstr "%s: 未知型態 '%s': 忽略.\n"
+
+#, c-format
+msgid "%s: %s is not implemented.\n"
+msgstr "%s: %s 尚未實作.\n"
+
+#, c-format
+msgid ""
+"%s: %s Scilab function does not work with more than one row variables.\n"
+msgstr "%s: %s Scilab 函數無法用於超éŽä¸€è¡Œä»¥ä¸Šä¹‹è®Šæ•¸.\n"
+
+#, c-format
+msgid "%s: The format '%s' is unknown.\n"
+msgstr "%s: æ ¼å¼ã€€'%s' 未知.\n"
+
+#, c-format
+msgid "%s: The format '%s' is not yet handled.\n"
+msgstr "%s: æ ¼å¼ '%s' 尚未處ç†.\n"
+
+#, c-format
+msgid "%s: End of file reached before all matrix is read.\n"
+msgstr "%s: 在所有矩陣讀å–å‰æª”案已çµæŸ.\n"
+
+#, c-format
+msgid "%s: No equivalent for '%s' property.\n"
+msgstr "%s: 並無等價之 '%s' 屬性.\n"
+
+#, c-format
+msgid "%s: No minor grid in Scilab.\n"
+msgstr "%s: Scilab 中並無å°æ ¼ç·š (minor grid) .\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: '%s', '%s' or '%s' expected.\n"
+msgstr "%s: 第 %d 個輸入åƒæ•¸æ•¸å€¼éŒ¯èª¤: '%s', 應為 '%s' 或 '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"
+msgstr "%s: 第 %d 輸入åƒæ•¸é•·åº¦éŒ¯èª¤: 應為一 Matlab å‘é‡æˆ–字串.\n"
+
+#, c-format
+msgid "%s: Unhandled class '%s'.\n"
+msgstr "%s: 無法處ç†é¡žåˆ¥ '%s'.\n"
+
+#, c-format
+msgid ""
+"%s: Wrong value for input argument #%d: A positive integer value expected.\n"
+msgstr "%s: 第 %d 輸入åƒæ•¸æ•¸å€¼éŒ¯èª¤: 應為一正整數.\n"
+
+#, c-format
+msgid "%s: Wrong number of output argument(s): %d expected.\n"
+msgstr "%s: 輸出åƒæ•¸æ•¸ç›®éŒ¯èª¤: 應為 %d .\n"
+
+#, c-format
+msgid "%s: '%s' option ignored.\n"
+msgstr "%s: '%s' é¸é …忽略.\n"
+
+#, c-format
+msgid "%s: Unknown line style found in '%s' -> set to 6.\n"
+msgstr "%s: '%s' 中未知之 line 型態-> 設為 6.\n"
+
+#, c-format
+msgid "%s: Unknown color found in '%s' -> set to black.\n"
+msgstr "%s:: '%s' 中未知之é¡è‰²-> 設為黑色 ( black).\n"
+
+#, c-format
+msgid "%s: Wrong number of input argument(s): %d expected.\n"
+msgstr "%s: 輸入åƒæ•¸æ•¸ç›®éŒ¯èª¤:應為 %d.\n"
+
+#, c-format
+msgid "%s: pencil is not diagonalizable.\n"
+msgstr "%s: 矩陣æŸé•æ³•ä¸»å°è§’線化 (diagonalizable).\n"
+
+#, c-format
+msgid "%s: Wrong type for input argument #%d: Column vector expected.\n"
+msgstr "%s: 第 %d 輸入åƒæ•¸åž‹æ…‹éŒ¯èª¤ : 應為列å‘é‡.\n"
+
+#, c-format
+msgid "%s: This particular case is not implemented.\n"
+msgstr "%s: 此特例尚未實作.\n"
+
+#, c-format
+msgid "%s: '%s' not implemented.\n"
+msgstr "%s: '%s' 尚未實作.\n"
+
+#, c-format
+msgid "%s: End of string reached before data has been read.\n"
+msgstr "%s: 讀å–資料å‰å­—串先çµæŸ.\n"
+
+#, c-format
+msgid "%s: Could not open neither '%s' nor '%s' nor '%s'.\n"
+msgstr "%s: 無法開啟 '%s' , '%s' 或 '%s'.\n"
+
+#, c-format
+msgid "%s: Wrong number of input arguments: %d to %d expected.\n"
+msgstr "%s: 輸入åƒæ•¸çš„個數錯誤: 應該是 %d 到 %d 個.\n"
+
+#, c-format
+msgid "%s: The normalization m - 1 factor is zero.\n"
+msgstr "%s: æ­£è¦åŒ– m - 1 係數值為零.\n"
+
+#, c-format
+msgid "%s: The normalization n - 1 factor is zero.\n"
+msgstr "%s: æ­£è¦åŒ– n - 1 係數值為零.\n"
diff --git a/modules/compatibility_functions/macros/%b_a_b.bin b/modules/compatibility_functions/macros/%b_a_b.bin
new file mode 100755
index 000000000..f3e25f78b
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_a_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_a_b.sci b/modules/compatibility_functions/macros/%b_a_b.sci
new file mode 100755
index 000000000..2745de207
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_a_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_a_b(a,b)
+ r=bool2s(a)+bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_a_s.bin b/modules/compatibility_functions/macros/%b_a_s.bin
new file mode 100755
index 000000000..8399a7976
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_a_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_a_s.sci b/modules/compatibility_functions/macros/%b_a_s.sci
new file mode 100755
index 000000000..c5f47804c
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_a_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_a_s(a,b)
+ r=bool2s(a)+b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_c_s.bin b/modules/compatibility_functions/macros/%b_c_s.bin
new file mode 100755
index 000000000..ac09c9d76
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_c_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_c_s.sci b/modules/compatibility_functions/macros/%b_c_s.sci
new file mode 100755
index 000000000..612e37a86
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_c_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_c_s(b,s)
+ r=[bool2s(b),s]
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_cumprod.bin b/modules/compatibility_functions/macros/%b_cumprod.bin
new file mode 100755
index 000000000..32bf8c5c6
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_cumprod.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_cumprod.sci b/modules/compatibility_functions/macros/%b_cumprod.sci
new file mode 100755
index 000000000..9922d37c5
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_cumprod.sci
@@ -0,0 +1,91 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - INRIA - Serge Steer
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function a=%b_cumprod(varargin)
+ a = varargin(1)
+ dims = size(a);
+
+ nargs = size(varargin);
+ select nargs
+ case 1
+ d = "*";
+ typ = "double";
+ case 2
+ if or(varargin(2) == ["native", "double"]) then
+ d = "*";
+ typ = varargin(2);
+ else
+ d = varargin(2);
+ typ = "double";
+ end
+ case 3
+ d = varargin(2);
+ typ = varargin(3);
+ else
+ error(msprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"),"cumprod", 1, 3));
+ end
+
+ // Check second argument : d
+ select type(d)
+ case 1
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"cumprod", 2))
+ end
+ if int(d) <> d | d < 0 then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Integer >= %d expected.\n"),"cumprod", 2, 1))
+ end
+ case 10
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"cumprod",2))
+ end
+ if and(d<>["r","c","*","m"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+ "cumprod",2,"""*"",""r"",""c"",""m"""))
+ end
+ else
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string or scalar expected.\n"),"cumprod",2))
+ end
+
+ // Check third argument
+ if type(typ)<>10 then
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"),"cumprod",3))
+ end
+
+ if size(typ,"*")<>1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"cumprod",3))
+ end
+
+ if and(typ <> ["native" "double"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: ""%s"" or ""%s"" expected.\n"),"cumprod", 3, "native", "double"));
+ end
+
+ if typ == "native" then
+ if type(d) == 10 then
+ pos = [1,2,0,find(dims>1,1)];
+ d=pos(find(d==["r","c","*","m"]))
+ end
+ select d
+ case 0
+ k=find(~a,1)
+ if k<>[] then a(k:$) = %f,end
+ case 1
+ for k=1:dims(2)
+ a(:,k)=cumprod(a(:,k),"native")
+ end
+ case 2
+ for k=1:dims(1)
+ a(k,:)=cumprod(a(k,:),"native")
+ end
+ else
+ a = a
+ end
+ else
+ a = cumprod(double(a), d)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_cumsum.bin b/modules/compatibility_functions/macros/%b_cumsum.bin
new file mode 100755
index 000000000..35c634cee
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_cumsum.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_cumsum.sci b/modules/compatibility_functions/macros/%b_cumsum.sci
new file mode 100755
index 000000000..51c2e3886
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_cumsum.sci
@@ -0,0 +1,91 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - INRIA - Serge Steer
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function a=%b_cumsum(varargin)
+ a = varargin(1)
+ dims = size(a);
+
+ nargs = size(varargin);
+ select nargs
+ case 1
+ d = "*";
+ typ = "double";
+ case 2
+ if or(varargin(2) == ["native", "double"]) then
+ d = "*";
+ typ = varargin(2);
+ else
+ d = varargin(2);
+ typ = "double";
+ end
+ case 3
+ d = varargin(2);
+ typ = varargin(3);
+ else
+ error(msprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"),"cumsum", 1, 3));
+ end
+
+ // Check second argument : d
+ select type(d)
+ case 1
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"cumsum", 2))
+ end
+ if int(d) <> d | d < 0 then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Integer >= %d expected.\n"),"cumsum", 2, 1))
+ end
+ case 10
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"cumsum",2))
+ end
+ if and(d<>["r","c","*","m"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+ "cumsum",2,"""*"",""r"",""c"",""m"""))
+ end
+ else
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string or scalar expected.\n"),"cumsum",2))
+ end
+
+ // Check third argument
+ if type(typ)<>10 then
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"),"cumsum",3))
+ end
+
+ if size(typ,"*")<>1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"cumsum",3))
+ end
+
+ if and(typ <> ["native" "double"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: ""%s"" or ""%s"" expected.\n"),"cumsum", 3, "native", "double"));
+ end
+
+ if typ == "native" then
+ if type(d) == 10 then
+ pos = [1,2,0,find(dims>1,1)];
+ d=pos(find(d==["r","c","*","m"]))
+ end
+ select d
+ case 0
+ k=find(a,1)
+ if k<>[] then a(k:$) = %t,end
+ case 1
+ for k=1:dims(2)
+ a(:,k)=cumsum(a(:,k),"native")
+ end
+ case 2
+ for k=1:dims(1)
+ a(k,:)=cumsum(a(k,:),"native")
+ end
+ else
+ a = a
+ end
+ else
+ a = cumsum(double(a), d)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_d_s.bin b/modules/compatibility_functions/macros/%b_d_s.bin
new file mode 100755
index 000000000..a81789bde
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_d_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_d_s.sci b/modules/compatibility_functions/macros/%b_d_s.sci
new file mode 100755
index 000000000..af181afbe
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_d_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_d_s(a,b)
+ r=bool2s(a)./b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_f_s.bin b/modules/compatibility_functions/macros/%b_f_s.bin
new file mode 100755
index 000000000..2e7846fd8
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_f_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_f_s.sci b/modules/compatibility_functions/macros/%b_f_s.sci
new file mode 100755
index 000000000..8eb526471
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_f_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_f_s(b,s)
+ r=[bool2s(b);s]
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_l_b.bin b/modules/compatibility_functions/macros/%b_l_b.bin
new file mode 100755
index 000000000..ae4763781
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_l_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_l_b.sci b/modules/compatibility_functions/macros/%b_l_b.sci
new file mode 100755
index 000000000..8ddf0a8ae
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_l_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_l_b(a,b)
+ r=bool2s(a)\bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_l_s.bin b/modules/compatibility_functions/macros/%b_l_s.bin
new file mode 100755
index 000000000..f527ff3e2
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_l_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_l_s.sci b/modules/compatibility_functions/macros/%b_l_s.sci
new file mode 100755
index 000000000..0da2ad405
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_l_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_l_s(a,b)
+ r=bool2s(a)\b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_m_b.bin b/modules/compatibility_functions/macros/%b_m_b.bin
new file mode 100755
index 000000000..55c4961ca
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_m_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_m_b.sci b/modules/compatibility_functions/macros/%b_m_b.sci
new file mode 100755
index 000000000..5b3569ab6
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_m_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_m_b(a,b)
+ r=bool2s(a)*bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_m_s.bin b/modules/compatibility_functions/macros/%b_m_s.bin
new file mode 100755
index 000000000..dd777987a
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_m_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_m_s.sci b/modules/compatibility_functions/macros/%b_m_s.sci
new file mode 100755
index 000000000..c2ab0ccb6
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_m_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_m_s(a,b)
+ r=bool2s(a)*b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_p_s.bin b/modules/compatibility_functions/macros/%b_p_s.bin
new file mode 100755
index 000000000..aeae8d452
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_p_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_p_s.sci b/modules/compatibility_functions/macros/%b_p_s.sci
new file mode 100755
index 000000000..e5b83402d
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_p_s.sci
@@ -0,0 +1,13 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_p_s(a,b)
+ // Copyright INRIA
+ r=bool2s(a)^b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_prod.bin b/modules/compatibility_functions/macros/%b_prod.bin
new file mode 100755
index 000000000..10bebb81e
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_prod.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_prod.sci b/modules/compatibility_functions/macros/%b_prod.sci
new file mode 100755
index 000000000..bbfb76314
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_prod.sci
@@ -0,0 +1,82 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function a = %b_prod(varargin)
+ a = varargin(1)
+ dims = size(a);
+
+ nargs = size(varargin);
+ select nargs
+ case 1
+ d = "*";
+ typ = "double";
+ case 2
+ if or(varargin(2) == ["native", "double"]) then
+ d = "*";
+ typ = varargin(2);
+ else
+ d = varargin(2);
+ typ = "double";
+ end
+ case 3
+ d = varargin(2);
+ typ = varargin(3);
+ else
+ error(msprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"),"prod", 1, 3));
+ end
+
+ // Check second argument : d
+ select type(d)
+ case 1
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"prod", 2))
+ end
+ if int(d) <> d | d < 0 then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Integer >= %d expected.\n"),"prod", 2, 1))
+ end
+ case 10
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"prod",2))
+ end
+ if and(d<>["r","c","*","m"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+ "prod",2,"""*"",""r"",""c"",""m"""))
+ end
+ else
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string or scalar expected.\n"),"prod",2))
+ end
+
+ // Check third argument
+ if type(typ)<>10 then
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"),"prod",3))
+ end
+
+ if size(typ,"*")<>1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"prod",3))
+ end
+
+ if and(typ <> ["native" "double"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: ""%s"" or ""%s"" expected.\n"),"prod", 3, "native", "double"));
+ end
+
+ if typ == "native" then
+ if d <> "*" & type(d) == 10 then
+ pos = [1,2,find(dims>1,1)];
+ d=pos(find(d==["r","c","m"]))
+ end
+ // Case "m"
+ if type(d) == 1 & d > 2 then
+ a = a;
+ else
+ a = and(a, d)
+ end
+ else
+ a = prod(double(a), d)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_r_b.bin b/modules/compatibility_functions/macros/%b_r_b.bin
new file mode 100755
index 000000000..ee4fcfa9e
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_r_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_r_b.sci b/modules/compatibility_functions/macros/%b_r_b.sci
new file mode 100755
index 000000000..230d2a5fd
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_r_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_r_b(a,b)
+ r=bool2s(a)/bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_r_s.bin b/modules/compatibility_functions/macros/%b_r_s.bin
new file mode 100755
index 000000000..e3e181e7d
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_r_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_r_s.sci b/modules/compatibility_functions/macros/%b_r_s.sci
new file mode 100755
index 000000000..06f90daa1
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_r_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_r_s(a,b)
+ r=bool2s(a)/b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_s_b.bin b/modules/compatibility_functions/macros/%b_s_b.bin
new file mode 100755
index 000000000..3910b96c3
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_s_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_s_b.sci b/modules/compatibility_functions/macros/%b_s_b.sci
new file mode 100755
index 000000000..7753058ee
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_s_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_s_b(a,b)
+ r=bool2s(a)-bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_s_s.bin b/modules/compatibility_functions/macros/%b_s_s.bin
new file mode 100755
index 000000000..65ae4e912
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_s_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_s_s.sci b/modules/compatibility_functions/macros/%b_s_s.sci
new file mode 100755
index 000000000..6e7982b94
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_s_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_s_s(a,b)
+ r=bool2s(a)-b
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_sum.bin b/modules/compatibility_functions/macros/%b_sum.bin
new file mode 100755
index 000000000..6a202ab32
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_sum.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_sum.sci b/modules/compatibility_functions/macros/%b_sum.sci
new file mode 100755
index 000000000..8fb93bf7c
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_sum.sci
@@ -0,0 +1,187 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function a=%b_sum(varargin)
+ a = varargin(1)
+ dims = size(a);
+
+ nargs = size(varargin);
+ select nargs
+ case 1
+ d = "*";
+ typ = "double";
+ case 2
+ if or(varargin(2) == ["native", "double"]) then
+ d = "*";
+ typ = varargin(2);
+ else
+ d = varargin(2);
+ typ = "double";
+ end
+ case 3
+ d = varargin(2);
+ typ = varargin(3);
+ else
+ error(msprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"),"sum", 1, 3));
+ end
+
+ // Check second argument : d
+ select type(d)
+ case 1
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"sum", 2))
+ end
+ if int(d) <> d | d < 0 then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Integer >= %d expected.\n"),"sum", 2, 1))
+ end
+ case 10
+ if size(d,'*') <> 1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"sum",2))
+ end
+ if and(d<>["r","c","*","m"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+ "sum",2,"""*"",""r"",""c"",""m"""))
+ end
+ else
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string or scalar expected.\n"),"sum",2))
+ end
+
+ // Check third argument
+ if type(typ)<>10 then
+ error(msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"),"sum",3))
+ end
+
+ if size(typ,"*")<>1 then
+ error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"sum",3))
+ end
+
+ if and(typ <> ["native" "double"]) then
+ error(msprintf(_("%s: Wrong value for input argument #%d: ""%s"" or ""%s"" expected.\n"),"sum", 3, "native", "double"));
+ end
+
+ if typ == "native" then
+ if d <> "*" & type(d) == 10 then
+ pos = [1,2,find(dims>1,1)];
+ d=pos(find(d==["r","c","m"]))
+ end
+ // Case "m"
+ if type(d) == 1 & d > 2 then
+ a = a;
+ else
+ a = or(a, d)
+ end
+ else
+ a = sum(double(a), d)
+ end
+
+// if varargin($)=="native" then
+// if size(varargin)==3 & type(varargin(2))==1 & varargin(2)>2 then
+// r=varargin(1)
+// else
+// // call sum(a, d) with d = "native"
+// // or call(a, d, typ) with typ = "native"
+// if size(varargin) == 3 then
+// d = varargin(2);
+// // d must be a string or scalar -> check type
+// if and(type(d)<> [1, 10]) then
+// error(msprintf(_("%s: Wrong type for input argument #%d: A string or scalar expected.\n"),"sum",2))
+// end
+//
+// if size(d,"*")<>1 then
+// if type(d)==10 then
+// error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"sum",2))
+// else
+// error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"sum",2))
+// end
+// end
+//
+// // If d is a string, d = "m", "c", "r" or "*"
+// // Else d is an integer > 0
+// if type(d)==10 then
+// d=find(d==["m","*","r","c"])
+// if d==[] then
+// error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+// "sum",2,"""*"",""r"",""c"",""m"",1:"+string(ndims(varargin(1)))))
+// end
+// d=d-2
+// else
+// if d<0 then
+// error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+// "cumprod",2,"""*"",""r"",""c"",""m"",1:"+string(ndims(varargin(1)))))
+// end
+// end
+//
+// dims=size(varargin(1));
+//
+// if d==-1 then //'m'
+// d=find(dims>1,1)
+// if d==[] then d=0,end
+// end
+//
+// // If d = 0, error in or function
+// if d == 0 then
+// d = "*"
+// end
+//
+// varargin(2) = d;
+// end
+// r=or(varargin(1:$-1))
+// end
+// else
+// // converts boolean to double
+// varargin(1)=bool2s(varargin(1))
+//
+// // call sum(a, d, typ)
+// if argn(2) == 3 then
+// // d must be a string or a scalar -> check type and size
+// d = varargin(2);
+// if and(type(d)<> [1, 10]) then
+// error(msprintf(_("%s: Wrong type for input argument #%d: A string or scalar expected.\n"),"sum",2))
+// end
+//
+// if size(d,"*")<>1 then
+// if type(d)==10 then
+// error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"sum",2))
+// else
+// error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"sum",2))
+// end
+// end
+//
+// // If d is a string, d = "m", "*", "r", "c"
+// // Else d is an integer > 0
+// if type(d)==10 then
+// if and(d <> ["m","*","r","c"]) then
+// error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+// "sum",2,"""*"",""r"",""c"",""m"",1:"+string(ndims(varargin(1)))))
+// end
+// else
+// if d < 0 then
+// error(msprintf(_("%s: Wrong value for input argument #%d: Must be in the set {%s}.\n"),..
+// "sum",2,"""*"",""r"",""c"",""m"",1:"+string(ndims(varargin(1)))))
+// end
+// end
+//
+// // typ must be a string and typ="double"
+// typ = varargin($)
+// if type(typ)<>10 then
+// error(msprintf(_("%s: Wrong type for input argument #%d: A string expected.\n"),"sum",3))
+// end
+//
+// if size(typ,"*")<>1 then
+// error(msprintf(_("%s: Wrong size for input argument #%d: A string expected.\n"),"sum",3))
+// end
+//
+// if typ <> "double" then
+// error(msprintf(_("%s: Wrong value for input argument #%d: ""%s"" or ""%s"" expected.\n"),"sum", 3, "native", "double"));
+// end
+// varargin($) = null()
+// end
+// r = sum(varargin(:))
+// end
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_x_b.bin b/modules/compatibility_functions/macros/%b_x_b.bin
new file mode 100755
index 000000000..a05e74ba4
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_x_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_x_b.sci b/modules/compatibility_functions/macros/%b_x_b.sci
new file mode 100755
index 000000000..7914b6c54
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_x_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_x_b(a,b)
+ r=bool2s(a).*bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%b_x_s.bin b/modules/compatibility_functions/macros/%b_x_s.bin
new file mode 100755
index 000000000..82bbae636
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_x_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%b_x_s.sci b/modules/compatibility_functions/macros/%b_x_s.sci
new file mode 100755
index 000000000..6791f54ba
--- /dev/null
+++ b/modules/compatibility_functions/macros/%b_x_s.sci
@@ -0,0 +1,14 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%b_x_s(a,b)
+ A=zeros(a)
+ A(a)=1
+ r=A.*b
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_a_s.bin b/modules/compatibility_functions/macros/%msp_a_s.bin
new file mode 100755
index 000000000..64929af99
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_a_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_a_s.sci b/modules/compatibility_functions/macros/%msp_a_s.sci
new file mode 100755
index 000000000..29959ef4a
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_a_s.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%msp_a_s(x,y)
+ r=full(sci_sparse(x))+y
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_abs.bin b/modules/compatibility_functions/macros/%msp_abs.bin
new file mode 100755
index 000000000..97cfd802c
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_abs.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_abs.sci b/modules/compatibility_functions/macros/%msp_abs.sci
new file mode 100755
index 000000000..0fe061b4d
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_abs.sci
@@ -0,0 +1,13 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_abs(x)
+ [ij,v,mn]=spget(x);
+ w=mtlb_sparse(sparse(ij,abs(v),mn));
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_e.bin b/modules/compatibility_functions/macros/%msp_e.bin
new file mode 100755
index 000000000..e0bc9e5e8
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_e.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_e.sci b/modules/compatibility_functions/macros/%msp_e.sci
new file mode 100755
index 000000000..1e3dd7759
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_e.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_e(varargin)
+ z=sci_sparse(varargin($));
+ if length(varargin)==2 then
+ w=mtlb_sparse(z(varargin(1)));
+ return
+ end
+ i=varargin(1);j=varargin(2);
+ w=mtlb_sparse(z(i,j));
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_find.bin b/modules/compatibility_functions/macros/%msp_find.bin
new file mode 100755
index 000000000..3236c7d53
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_find.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_find.sci b/modules/compatibility_functions/macros/%msp_find.sci
new file mode 100755
index 000000000..76629342b
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_find.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_find(x)
+ w=find(sci_sparse(x));
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_length.bin b/modules/compatibility_functions/macros/%msp_length.bin
new file mode 100755
index 000000000..3cd3c9d8a
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_length.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_length.sci b/modules/compatibility_functions/macros/%msp_length.sci
new file mode 100755
index 000000000..0f8b41ae9
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_length.sci
@@ -0,0 +1,13 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function l=%msp_length(x)
+ l=max(size(x))
+endfunction
+
diff --git a/modules/compatibility_functions/macros/%msp_m_s.bin b/modules/compatibility_functions/macros/%msp_m_s.bin
new file mode 100755
index 000000000..17b7d152b
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_m_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_m_s.sci b/modules/compatibility_functions/macros/%msp_m_s.sci
new file mode 100755
index 000000000..cfe8a0153
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_m_s.sci
@@ -0,0 +1,11 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+function w=%msp_m_s(x,s)
+ w=sci_sparse(x)*s;
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_maxi.bin b/modules/compatibility_functions/macros/%msp_maxi.bin
new file mode 100755
index 000000000..947e19d33
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_maxi.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_maxi.sci b/modules/compatibility_functions/macros/%msp_maxi.sci
new file mode 100755
index 000000000..f3bfe20f2
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_maxi.sci
@@ -0,0 +1,13 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_maxi(x)
+ [ij,v,mn]=spget(x);
+ w=max(v);
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_nnz.bin b/modules/compatibility_functions/macros/%msp_nnz.bin
new file mode 100755
index 000000000..b70fefcce
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_nnz.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_nnz.sci b/modules/compatibility_functions/macros/%msp_nnz.sci
new file mode 100755
index 000000000..ce1a32c05
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_nnz.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_nnz(x,s)
+ w=nnz(sci_sparse(x));
+endfunction
diff --git a/modules/compatibility_functions/macros/%msp_sparse.bin b/modules/compatibility_functions/macros/%msp_sparse.bin
new file mode 100755
index 000000000..a45a1931a
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_sparse.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_sparse.sci b/modules/compatibility_functions/macros/%msp_sparse.sci
new file mode 100755
index 000000000..c149bea80
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_sparse.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_sparse(w)
+ w=w;
+endfunction \ No newline at end of file
diff --git a/modules/compatibility_functions/macros/%msp_t.bin b/modules/compatibility_functions/macros/%msp_t.bin
new file mode 100755
index 000000000..2be196ae3
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_t.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%msp_t.sci b/modules/compatibility_functions/macros/%msp_t.sci
new file mode 100755
index 000000000..2576086e9
--- /dev/null
+++ b/modules/compatibility_functions/macros/%msp_t.sci
@@ -0,0 +1,16 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%msp_t(x)
+ if isempty(x) then
+ d=size(x);w=mtlb_sparse(d(2),d(1));
+ else
+ w=mtlb_sparse(sci_sparse(x)');
+ end;
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_a_b.bin b/modules/compatibility_functions/macros/%s_a_b.bin
new file mode 100755
index 000000000..db5a67ba1
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_a_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_a_b.sci b/modules/compatibility_functions/macros/%s_a_b.sci
new file mode 100755
index 000000000..8b1f12ff3
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_a_b.sci
@@ -0,0 +1,13 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_a_b(a,b)
+ // Copyright INRIA
+ r=a+bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_a_msp.bin b/modules/compatibility_functions/macros/%s_a_msp.bin
new file mode 100755
index 000000000..50fdb5595
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_a_msp.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_a_msp.sci b/modules/compatibility_functions/macros/%s_a_msp.sci
new file mode 100755
index 000000000..2b16b4a27
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_a_msp.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_a_msp(x,y)
+ r=full(sci_sparse(x))+y
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_c_b.bin b/modules/compatibility_functions/macros/%s_c_b.bin
new file mode 100755
index 000000000..5f7551920
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_c_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_c_b.sci b/modules/compatibility_functions/macros/%s_c_b.sci
new file mode 100755
index 000000000..a630f5dff
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_c_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_c_b(s,b)
+ r=[s bool2s(b)]
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_d_b.bin b/modules/compatibility_functions/macros/%s_d_b.bin
new file mode 100755
index 000000000..c368ea272
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_d_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_d_b.sci b/modules/compatibility_functions/macros/%s_d_b.sci
new file mode 100755
index 000000000..72aeb17be
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_d_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_d_b(a,b)
+ r=a./bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_f_b.bin b/modules/compatibility_functions/macros/%s_f_b.bin
new file mode 100755
index 000000000..eaec5b5e4
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_f_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_f_b.sci b/modules/compatibility_functions/macros/%s_f_b.sci
new file mode 100755
index 000000000..24cfafe55
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_f_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_f_b(s,b)
+ r=[s;bool2s(b)]
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_l_b.bin b/modules/compatibility_functions/macros/%s_l_b.bin
new file mode 100755
index 000000000..4a3235e88
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_l_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_l_b.sci b/modules/compatibility_functions/macros/%s_l_b.sci
new file mode 100755
index 000000000..9c99f63ef
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_l_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_l_b(a,b)
+ r=a\bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_m_b.bin b/modules/compatibility_functions/macros/%s_m_b.bin
new file mode 100755
index 000000000..e08935d24
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_m_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_m_b.sci b/modules/compatibility_functions/macros/%s_m_b.sci
new file mode 100755
index 000000000..6cadf9cb7
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_m_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_m_b(a,b)
+ r=a*bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_m_msp.bin b/modules/compatibility_functions/macros/%s_m_msp.bin
new file mode 100755
index 000000000..51d7e7531
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_m_msp.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_m_msp.sci b/modules/compatibility_functions/macros/%s_m_msp.sci
new file mode 100755
index 000000000..048050e4e
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_m_msp.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function w=%s_m_msp(s,x)
+ w=s*sci_sparse(x);
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_p_b.bin b/modules/compatibility_functions/macros/%s_p_b.bin
new file mode 100755
index 000000000..636ae5467
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_p_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_p_b.sci b/modules/compatibility_functions/macros/%s_p_b.sci
new file mode 100755
index 000000000..8d25e7452
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_p_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_p_b(a,b)
+ r=a^bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_r_b.bin b/modules/compatibility_functions/macros/%s_r_b.bin
new file mode 100755
index 000000000..4f762e7f4
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_r_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_r_b.sci b/modules/compatibility_functions/macros/%s_r_b.sci
new file mode 100755
index 000000000..8182ad14c
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_r_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_r_b(a,b)
+ r=a/bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_s_b.bin b/modules/compatibility_functions/macros/%s_s_b.bin
new file mode 100755
index 000000000..d0c79f4e5
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_s_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_s_b.sci b/modules/compatibility_functions/macros/%s_s_b.sci
new file mode 100755
index 000000000..b87570182
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_s_b.sci
@@ -0,0 +1,12 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_s_b(a,b)
+ r=a-bool2s(b)
+endfunction
diff --git a/modules/compatibility_functions/macros/%s_x_b.bin b/modules/compatibility_functions/macros/%s_x_b.bin
new file mode 100755
index 000000000..1d55878a4
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_x_b.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/%s_x_b.sci b/modules/compatibility_functions/macros/%s_x_b.sci
new file mode 100755
index 000000000..a20385c20
--- /dev/null
+++ b/modules/compatibility_functions/macros/%s_x_b.sci
@@ -0,0 +1,14 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=%s_x_b(a,b)
+ B=zeros(b)
+ B(b)=1
+ r=a.*B
+endfunction
diff --git a/modules/compatibility_functions/macros/buildmacros.bat b/modules/compatibility_functions/macros/buildmacros.bat
new file mode 100755
index 000000000..4ababffe1
--- /dev/null
+++ b/modules/compatibility_functions/macros/buildmacros.bat
@@ -0,0 +1,6 @@
+rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+rem Copyright (C) 2007 - INRIA - Vincent COUVERT
+rem
+rem This file is distributed under the same license as the Scilab package.
+
+@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit; \ No newline at end of file
diff --git a/modules/compatibility_functions/macros/buildmacros.sce b/modules/compatibility_functions/macros/buildmacros.sce
new file mode 100755
index 000000000..9e5a5b045
--- /dev/null
+++ b/modules/compatibility_functions/macros/buildmacros.sce
@@ -0,0 +1,17 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2005 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+//------------------------------------
+// Vincent COUVERT INRIA 2007
+//------------------------------------
+if (isdef("genlib") == %f) then
+ exec(SCI+"/modules/functions/scripts/buildmacros/loadgenlib.sce");
+end
+//------------------------------------
+genlib("compatibility_functilib","SCI/modules/compatibility_functions/macros",%f,%t);
+//------------------------------------
diff --git a/modules/compatibility_functions/macros/char.bin b/modules/compatibility_functions/macros/char.bin
new file mode 100755
index 000000000..94dc47382
--- /dev/null
+++ b/modules/compatibility_functions/macros/char.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/char.sci b/modules/compatibility_functions/macros/char.sci
new file mode 100755
index 000000000..a28821d5a
--- /dev/null
+++ b/modules/compatibility_functions/macros/char.sci
@@ -0,0 +1,143 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=char(varargin)
+ // Case : One input argument
+ // Input : a cell of characters arrays
+ // Output : vector (column) of strings,
+ // This function returns a vector in which the rows are the components of the cell characters arrays
+ //
+ // Input : an array of ascii codes
+ // Output :a characters array corresponding into ascii codes
+ // If dims input =[n1,n2,n3,n4,....],then returned a value has the dims=[n1,n3,n4,...],
+ // returned value have same size as input value instead of second dims !
+ //
+ // Case : more than one input argument : y=char(st1,st2,st3,....)
+ // Inputs must be string : st1,st2,st3,...
+ // Outputs : vector (column) of strings
+ // This function returns a vector in which the rows are st1, st2,st3,...,
+ // the length of all strings sti is completed by blanks,in order to have the same length for each sti.
+
+ rhs=argn(2)
+ y=[]
+ // One input argument
+ if rhs==1 then
+ if typeof(varargin(1))=="ce" then // input argument is a cell of characters arrays
+ c=varargin(1)
+ lst=c.entries
+ if size(c)==1 then // cell contains one element
+ if typeof(lst)=="hypermat" then // cell elements are characters arrays
+ if type(lst.entries)==10 then
+ t=emptystr(size(lst,1),1)
+ lst=matrix(lst,[size(lst,1),size(lst,"*")/size(lst,1)])
+ for j=1:size(lst,2)
+ t=t+lst(:,j)
+ end
+ y=[y;t]
+ else
+ error(msprintf(gettext("%s: Wrong type for input argument: Cell elements must be character arrays.\n"),"char"));
+ end
+ elseif type(lst)==10 then // cell elements are a string matrix
+ t=emptystr(size(lst,1),1)
+ for k=1:size(lst,2)
+ t=t+lst(:,k)
+ end
+ y=[y,t]
+ else
+ error(msprintf(gettext("%s: Wrong type for input argument: Cell elements must be character arrays.\n"),"char"));
+ end
+ else // cell contains more than one element
+ for i=1:size(lst)
+ if typeof(lst(i))=="hypermat" then
+ if type(lst(i).entries)==10 then
+ ctemp=lst(i)
+ t=emptystr(size(ctemp,1),1)
+ ctemp=matrix(ctemp,[size(ctemp,1),size(ctemp,"*")/size(ctemp,1)])
+ for j=1:size(ctemp,2)
+ t=t+ctemp(:,j)
+ end
+ y=[y;t]
+ else
+ error(msprintf(gettext("%s: Wrong type for input argument: Cell elements must be character arrays.\n"),"char"));
+ end
+ elseif type(lst(i))==10 then
+ t=emptystr(size(lst(i),1),1)
+ for k=1:size(lst(i),2)
+ t=t+lst(i)(:,k)
+ end
+ y=[y;t]
+ else
+ error(msprintf(gettext("%s: Wrong type for input argument: Cell elements must be character arrays.\n"),"char"));
+ end
+ end
+ end
+ // Add blank at the length of strings
+ bl=" "
+ maxstr=max(length(y))
+ for i=1:size(y,"*")
+ nb_bl=maxstr-length(y(i))
+ if nb_bl>0 then
+ y(i)=y(i)+part(bl,ones(1,nb_bl))
+ end
+ end
+ elseif type(varargin(1))==1|type(varargin(1))==8 then // Input is a matrix of integers (or reals)
+ y=asciimat(varargin(1))
+ elseif type(varargin(1))==10 then // Input is a matrix of strings
+ for i=1:size(varargin(1),1)
+ y(i)=strcat(varargin(1)(i,:))
+ end
+ elseif typeof(varargin(1))=="hypermat" then // Input is a hypermatrix of strings
+ if type(varargin(1).entries)==10 then
+ y=varargin(1)
+ elseif type(varargin(1).entries)==1|type(varargin(1).entries)==8 then // Input is a hypermatrix of integers (or reals)
+ y=asciimat(varargin(1))
+ else
+ error(msprintf(gettext("%s: This feature has not been implemented.\n"),"char"));
+ end
+ else
+ error(msprintf(gettext("%s: Wrong type for input argument: Cell expected.\n"),"char"));
+ end
+ // More than one input argument
+ elseif rhs > 1 then
+ for i=1:size(varargin)
+ if typeof(varargin(i))=="hypermat" then // Input sti is a hypermatrix of strings
+ lst=varargin(i)
+ if type(lst.entries)==10 then
+ t=emptystr(size(lst,1),1)
+ lst=matrix(lst,[size(lst,1),size(lst,"*")/size(lst,1)])
+ for j=1:size(lst,2)
+ t=t+lst(:,j)
+ end
+ y=[y;t]
+ else
+ error(msprintf(gettext("%s: Wrong type for input arguments: String expected.\n"),"char"));
+ end
+ elseif type(varargin(i))==10 then // Input sti is a matrix of strings
+ lst=varargin(i)
+ t=emptystr(size(lst,1),1)
+ for k=1:size(lst,2)
+ t=t+lst(:,k)
+ end
+ y=[y;t]
+ else
+ error(msprintf(gettext("%s: Wrong type for input arguments: String expected.\n"),"char"));
+ end
+ end
+ // Add blanks at the length of strings
+ bl=" "
+ maxstr=max(length(y))
+ for i=1:size(y,"*")
+ nb_bl=maxstr-length(y(i))
+ if nb_bl>0 then
+ y(i)=y(i)+part(bl,ones(1,nb_bl))
+ end
+ end
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/cleanmacros.bat b/modules/compatibility_functions/macros/cleanmacros.bat
new file mode 100755
index 000000000..d598081d7
--- /dev/null
+++ b/modules/compatibility_functions/macros/cleanmacros.bat
@@ -0,0 +1,8 @@
+rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+rem Copyright (C) 2007 - INRIA - Vincent COUVERT
+rem
+rem This file is distributed under the same license as the Scilab package.
+
+@del *.bin 2>NUL
+@del lib 2>NUL
+@del names 2>NUL \ No newline at end of file
diff --git a/modules/compatibility_functions/macros/enlarge_shape.bin b/modules/compatibility_functions/macros/enlarge_shape.bin
new file mode 100755
index 000000000..d3fc2cc3a
--- /dev/null
+++ b/modules/compatibility_functions/macros/enlarge_shape.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/enlarge_shape.sci b/modules/compatibility_functions/macros/enlarge_shape.sci
new file mode 100755
index 000000000..c9208d078
--- /dev/null
+++ b/modules/compatibility_functions/macros/enlarge_shape.sci
@@ -0,0 +1,42 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2001 - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function v1=enlarge_shape(dims,dims1,v)
+ //Utility function for cell insertion
+ //dims : vector of old dimensions
+ //dims1 : vector of new dimensions
+ //v : list of entries
+ //v1 : new list of entries
+ //
+ // undefined elements are set to []
+ // and(dims1>=dims) must be true
+ ki=find(dims1>dims)
+ if ki==nd then // the last dimension -> add empty entries at the end
+ for k=prod(dims)+1:prod(dims1),v(k)=[];v1=v;end
+ else // enlarge and merge
+ v1=list();for k=1:prod(dims1),v1(k)=[],end
+ //merge compute the new index of M entries into enlarged cell
+ I1=[];
+ for k=size(dims1,"*"):-1:1
+ ik1=(1:dims(k))'
+ if ik1<>[] then
+ if dims1(k)>1 then
+ if size(I1,"*")>1 then
+ I1=(dims1(k)*I1).*.ones(ik1)+ones(I1).*.(ik1-1)
+ else
+ I1=dims1(k)*I1+ik1-1
+ end
+ else
+ I1=dims1(k)*I1+ik1-1
+ end
+ end
+ end
+ for iw=1:size(I1,"*"),v1(I1(iw)+1)=v(iw);end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/firstnonsingleton.bin b/modules/compatibility_functions/macros/firstnonsingleton.bin
new file mode 100755
index 000000000..833f3916a
--- /dev/null
+++ b/modules/compatibility_functions/macros/firstnonsingleton.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/firstnonsingleton.sci b/modules/compatibility_functions/macros/firstnonsingleton.sci
new file mode 100755
index 000000000..aec98a595
--- /dev/null
+++ b/modules/compatibility_functions/macros/firstnonsingleton.sci
@@ -0,0 +1,52 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function dim=firstnonsingleton(in,opt)
+ // opt="str" then return "r" or "c" if possible
+ // opt="num" then return numerical values
+ rhs=argn(2)
+ if rhs==1 then
+ opt="str"
+ end
+
+ if opt=="num" then
+ dim=1
+ else
+ dim="r"
+ end
+ sz=size(in)
+ for k=1:size(sz,"*")
+ if sz(k)==0 then
+ if opt=="num" then
+ dim=1
+ else
+ dim="r"
+ end
+ break
+ elseif sz(k)>1 then
+ if k==1 then
+ if opt=="num" then
+ dim=1
+ else
+ dim="r"
+ end
+ elseif k==2 then
+ if opt=="num" then
+ dim=2
+ else
+ dim="c"
+ end
+ else
+ dim=sz(k)
+ end
+ break
+ end
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/fseek_origin.bin b/modules/compatibility_functions/macros/fseek_origin.bin
new file mode 100755
index 000000000..e8b437152
--- /dev/null
+++ b/modules/compatibility_functions/macros/fseek_origin.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/fseek_origin.sci b/modules/compatibility_functions/macros/fseek_origin.sci
new file mode 100755
index 000000000..4a1073a47
--- /dev/null
+++ b/modules/compatibility_functions/macros/fseek_origin.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function flag=fseek_origin(origin)
+ select origin
+ case "bof" then
+ flag="set"
+ case "cof" then
+ flag="cur"
+ case "eof" then
+ flag="end"
+ case -1 then
+ flag="set"
+ case 0 then
+ flag="cur"
+ case 1 then
+ flag="end"
+ else
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: %s, %s, %s, ''%s'', ''%s'' or ''%s'' expected.\n"),"mseek", 1, "-1", "0", "1", "bof", "cof", "eof"));
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/lib b/modules/compatibility_functions/macros/lib
new file mode 100755
index 000000000..b907ab1df
--- /dev/null
+++ b/modules/compatibility_functions/macros/lib
Binary files differ
diff --git a/modules/compatibility_functions/macros/makecell.bin b/modules/compatibility_functions/macros/makecell.bin
new file mode 100755
index 000000000..049dbc58b
--- /dev/null
+++ b/modules/compatibility_functions/macros/makecell.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/makecell.sci b/modules/compatibility_functions/macros/makecell.sci
new file mode 100755
index 000000000..7c5a37bf1
--- /dev/null
+++ b/modules/compatibility_functions/macros/makecell.sci
@@ -0,0 +1,31 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function s=makecell(varargin)
+ // Equivalent for Matlab {}
+
+ if lstsize(varargin)==0 then
+ dims=[0 0]
+ s=mlist(["ce","dims","entries"],int32(dims),list())
+ return
+ end
+
+ dims=varargin(1)
+ if prod(dims)<>lstsize(varargin)-1 then
+ error(msprintf(gettext("%s: Wrong input arguments: Dimensions given as first argument do not match specified cell contents.\n"),"makecell"));
+ end
+
+ if prod(dims)==1 then
+ s=mlist(["ce","dims","entries"],int32(dims),varargin(2))
+ else
+ listentries=varargin
+ listentries(1)=null()
+ s=mlist(["ce","dims","entries"],int32(dims($:-1:1)),listentries)'
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mstr2sci.bin b/modules/compatibility_functions/macros/mstr2sci.bin
new file mode 100755
index 000000000..9d37cc4c9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mstr2sci.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mstr2sci.sci b/modules/compatibility_functions/macros/mstr2sci.sci
new file mode 100755
index 000000000..3252ba298
--- /dev/null
+++ b/modules/compatibility_functions/macros/mstr2sci.sci
@@ -0,0 +1,37 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mstr2sci(x)
+ // Conversion of a Matlab format string into a Scilab string
+ // In Matlab : 'string' has size [1 6]
+ // In Scilab : 'string' has size [1 1]
+ // This function solves this problem by converting a string into a character matrix
+ // Ex : 'string' is converted into ['s' 't' 'r' 'i' 'n' 'g']
+
+ if type(x)==17 then
+ error(msprintf(gettext("%s: This feature has not been implemented: Support for hypermatrices.\n"),"mstr2sci"));
+ return
+ end
+ if type(x)<>10 then
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: Matrix of strings expected.\n"),"mstr2sci", 1));
+ return
+ end
+ nr=size(x,1);
+ nc=max(length(x));
+ y=[]
+ for k=1:nr
+ x(k,:)=strcat(x(k,:));
+ nc=max(length(x(k,:)));
+ tmp = ascii(x(k,:));
+ for l=1:nc
+ y(k,l)=ascii(tmp(l));
+ end
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb.bin b/modules/compatibility_functions/macros/mtlb.bin
new file mode 100755
index 000000000..56999ef56
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb.sci b/modules/compatibility_functions/macros/mtlb.sci
new file mode 100755
index 000000000..9a85a6aef
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb.sci
@@ -0,0 +1,16 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=mtlb(a)
+ if type(a)==13|type(a)==11 then
+ x=a()
+ else
+ x=a
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_0.bin b/modules/compatibility_functions/macros/mtlb_0.bin
new file mode 100755
index 000000000..c69cabbd5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_0.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_0.sci b/modules/compatibility_functions/macros/mtlb_0.sci
new file mode 100755
index 000000000..f48777e61
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_0.sci
@@ -0,0 +1,25 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_0(a)
+ // Emulation function for Matlab dot-transposition
+
+ if type(a)==10 then
+ tmp=asciimat(a).'
+ y=[]
+ for k=1:size(tmp,1)
+ y(k)=strcat(ascii(tmp(k,:)))
+ end
+ elseif or(type(a)==[4,6]) then
+ y=bool2s(a).'
+ else
+ y=a.'
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_a.bin b/modules/compatibility_functions/macros/mtlb_a.bin
new file mode 100755
index 000000000..9b95cb649
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_a.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_a.sci b/modules/compatibility_functions/macros/mtlb_a.sci
new file mode 100755
index 000000000..770306481
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_a.sci
@@ -0,0 +1,19 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_a(a,b)
+ // Emulation function for Matlab addition
+
+ if a==[] | b==[] then
+ y=[];
+ else
+ y=a+b;
+ end
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_all.bin b/modules/compatibility_functions/macros/mtlb_all.bin
new file mode 100755
index 000000000..43500fc54
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_all.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_all.sci b/modules/compatibility_functions/macros/mtlb_all.sci
new file mode 100755
index 000000000..9d8efd442
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_all.sci
@@ -0,0 +1,45 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_all(a,dim)
+ // Emulation function for all() Matlab function
+
+ rhs=argn(2)
+
+ if type(a)==4 then a=bool2s(a);end
+
+ // B=all(A)
+ if rhs==1 then
+ if ~isreal(a) then
+ a=abs(a)
+ end
+ if size(a,1)==1|size(a,2)==1 then
+ r=and(a)
+ elseif size(a,1)==0|size(a,2)==0 then
+ r=and(a)
+ else
+ r=and(a,1)
+ end
+ // B=all(A,dim)
+ else
+ // Because Matlab tolerate dim to be an non-existent dimension of a
+ if dim>size(size(a),"*") then
+ if isempty(a) then
+ r=[]
+ else
+ r=a<>0
+ end
+ else
+ if ~isreal(a) then
+ a=abs(a)
+ end
+ r=and(a,dim);
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_any.bin b/modules/compatibility_functions/macros/mtlb_any.bin
new file mode 100755
index 000000000..74c7b7720
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_any.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_any.sci b/modules/compatibility_functions/macros/mtlb_any.sci
new file mode 100755
index 000000000..d6f4b8a8e
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_any.sci
@@ -0,0 +1,39 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_any(a,dim)
+ // Emulation function for any() Matlab function
+
+ rhs=argn(2)
+
+ if type(a)==4 then a=bool2s(a);end
+
+ // B=any(A)
+ if rhs==1 then
+ if size(a,1)==1|size(a,2)==1 then
+ r=or(a)
+ elseif size(a,1)==0|size(a,2)==0 then
+ r=or(a)
+ else
+ r=or(a,1)
+ end
+ // B=any(A,dim)
+ else
+ // Because Matlab tolerate dim to be an non-existent dimension of a
+ if dim>size(size(a),"*") then
+ if isempty(a) then
+ r=[]
+ else
+ r=a<>0
+ end
+ else
+ r=or(a,dim);
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_axes.bin b/modules/compatibility_functions/macros/mtlb_axes.bin
new file mode 100755
index 000000000..ce38b0e85
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_axes.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_axes.sci b/modules/compatibility_functions/macros/mtlb_axes.sci
new file mode 100755
index 000000000..8ccea1bf6
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_axes.sci
@@ -0,0 +1,37 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function h=mtlb_axes(varargin)
+ global AXES_T
+ if AXES_T==[] then AXES_T=list([]),end
+ win=xget("window")
+ k=find(AXES_T(1)==win)
+ if k==[] then
+ AXES_T(1)=[AXES_T(1);win]
+ AXES_T($+1)=[]
+ k=size(AXES_T(1),1)+1
+ else
+ k=k+1
+ end
+ if size(varargin)==0 then
+ rect=[0 0 1 1]
+ xsetech([0 0 1 1])
+ AXES_T(k)=[AXES_T(k);rect];h=size(AXES_T(k),1)
+ elseif varargin(1)=="position"
+ rect=matrix(varargin(2),1,-1)
+ xsetech(rect)
+ AXES_T(k)=[AXES_T(k);rect];h=size(AXES_T(k),1)
+ elseif type(varargin(1))==1 then
+ xsetech(AXES_T(k)(varargin(1),:))
+ else
+ error(msprintf(gettext("%s: This feature has not been implemented.\n"),"mtlb_axes"));
+ end
+
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_axis.bin b/modules/compatibility_functions/macros/mtlb_axis.bin
new file mode 100755
index 000000000..8fd49c7cd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_axis.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_axis.sci b/modules/compatibility_functions/macros/mtlb_axis.sci
new file mode 100755
index 000000000..aba2f5317
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_axis.sci
@@ -0,0 +1,152 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function varargout=mtlb_axis(varargin)
+ // Emulation function for Matlab axis()
+
+ varargout(1)=list()
+ listvar=varargin
+ if size(listvar)==0
+ a=gca();
+ set(gca(),"axes_visible","on")
+ varargout(1)=matrix(a.data_bounds,1,-1);
+ return
+ elseif type(listvar(1))<>9 then
+ a=gca();
+ rhs=lstsize(listvar)
+ else
+ a=listvar(1)
+ listvar(1)=null()
+ rhs=lstsize(listvar)
+ listvar=listvar
+ end
+
+ if rhs>0 then
+ for krhs=1:rhs
+ if type(listvar(krhs))==1 then
+ if size(listvar(krhs),1)>1 & size(listvar(krhs),2)>1 then
+ error(msprintf(gettext("%s: Wrong size for ''%s'': Vector expected.\n"),"mtlb_axis","data_bounds"));
+ end
+ listvar(krhs) = matrix(listvar(krhs),1,-1);
+
+ // axis([xmin xmax ymin ymax zmin zmax])
+ if size(listvar(krhs),2)==4 then
+ set(gca(),"data_bounds",matrix(listvar(krhs),2,-1))
+ set(gca(),"view","2d")
+ set(gca(),"axes_visible","on")
+ elseif size(listvar(krhs),2)==6
+ set(gca(),"data_bounds",matrix(listvar(krhs),2,-1))
+ set(gca(),"view","3d")
+ set(gca(),"axes_visible","on")
+ // axis([xmin xmax ymin ymax zmin zmax cmin cmax])
+ elseif size(listvar(krhs),2)==8 then
+ error(msprintf(gettext("%s: This feature has not been implemented: %s.\n"),"mtlb_axis", "data_bounds=[xmin xmax ymin ymax zmin zmax cmin cmax]"));
+ // Unknown column number for listvar(krhs)
+ else
+ error(msprintf(gettext("%s: Wrong value for affectation to ''%s''.\n"),"mtlb_axis", "data_bounds"));
+ end
+
+ elseif type(listvar(krhs))==10 then
+
+ // axis auto
+ if listvar(krhs)=="auto" then
+ a.auto_scale="on"
+
+ // axis manual
+ elseif listvar(krhs)=="manual" then
+ a.auto_scale="off"
+
+ // axis tight
+ elseif listvar(krhs)=="tight" then
+ a.tight_limits="on"
+
+ // axis fill
+ elseif listvar(krhs)=="fill" then
+ error(msprintf(gettext("%s: This feature has not been implemented: %s.\n"),"mtlb_axis", "axis fill"));
+
+ // axis ij
+ elseif listvar(krhs)=="ij" then
+ a.rotation_angles=[180 270]
+
+ // axis xy
+ elseif listvar(krhs)=="xy" then
+ a.rotation_angles=[0 270]
+
+ // axis equal
+ elseif listvar(krhs)=="equal" then
+ a.isoview="on"
+
+ // axis image
+ elseif listvar(krhs)=="image" then
+ error(msprintf(gettext("%s: This feature has not been implemented: %s.\n"),"mtlb_axis","axis image"));
+
+ // axis square
+ elseif listvar(krhs)=="square" then
+ if a.view=="2d" then
+ warning(msprintf(gettext("%s: ''%s'' only used in 3d mode."),"mtlb_axis","cube_scaling"));
+ end
+ a.cube_scaling="on"
+
+ // axis vis3d
+ elseif listvar(krhs)=="vis3d" then
+ a.view="3d"
+
+ // axis normal
+ elseif listvar(krhs)=="normal" then
+ error(msprintf(gettext("%s: This feature has not been implemented: %s.\n"),"mtlb_axis","axis normal"));
+
+ // axis on
+ elseif listvar(krhs)=="on" then
+ a.axes_visible="on"
+
+ // axis off
+ elseif listvar(krhs)=="off" then
+ a.axes_visible="off"
+
+ // [mode,visibility,direction] = axis('state')
+ elseif listvar(krhs)=="state" then
+ if a.auto_scale=="on" then
+ varargout(1)="auto"
+ else
+ varargout(1)="manual"
+ end
+ varargout(2)=a.axes_visible
+ if a.rotation_angles==[0 180] then
+ varargout(3)="xy"
+ else
+ varargout(3)="ij"
+ end
+ // Unknown character string
+ else
+ error(msprintf(gettext("%s: This feature has not been implemented: %s.\n"),"mtlb_axis","axis "+listvar(krhs)));
+ end
+
+ // axis(axes_handles,...)
+ elseif type(listvar(krhs))==9 then
+ // krhs must be one
+ for khandle=1:lstsize(listvar(krhs))
+ arglist=list()
+ for kvararg=1:lstsize(listvar)-1
+ arglist($+1)=listvar(kvararg+1)
+ end
+ arglist($+1)=listvar(krhs)(khandle)
+ mtlb_axis(arglist)
+ end
+ // Wrong type for listvar(krhs)
+ else
+ error(msprintf(gettext("%s: This feature has not been implemented: Argument of type %d.\n"),"mtlb_axis",type(listvar(krhs))));
+ end
+ varargout(1)=matrix(a.data_bounds,1,-1);
+ end
+
+ // v = axis
+ else
+ varargout(1)=matrix(a.data_bounds,1,-1);
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_beta.bin b/modules/compatibility_functions/macros/mtlb_beta.bin
new file mode 100755
index 000000000..5cf43a962
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_beta.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_beta.sci b/modules/compatibility_functions/macros/mtlb_beta.sci
new file mode 100755
index 000000000..a2281843c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_beta.sci
@@ -0,0 +1,31 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [Y]=mtlb_beta(A,B)
+ // Emulation function for Matlab beta()
+
+ if (size(A,"*")==0 & size(B,"*")==0) | (size(A,"*")==0 & type(B)==1) | (size(B,"*")==0 & type(A)==1) then
+ Y=[]
+ elseif size(A,"*")==1 & size(B,"*")<>1 then
+ tmp=A
+ A=B
+ A(:)=tmp
+ Y=beta(A,B)
+ elseif size(A,"*")<>1 & size(B,"*")==1 then
+ tmp=B
+ B=A
+ B(:)=tmp
+ Y=beta(A,B)
+ else
+ Y=beta(A,B)
+ end
+
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_box.bin b/modules/compatibility_functions/macros/mtlb_box.bin
new file mode 100755
index 000000000..bff457d04
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_box.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_box.sci b/modules/compatibility_functions/macros/mtlb_box.sci
new file mode 100755
index 000000000..4ad5bbcbd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_box.sci
@@ -0,0 +1,39 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function []=mtlb_box(axes_handle,val)
+ // Emulation function for Matlab box()
+
+ rhs=argn(2)
+
+ a=gca();
+
+ if rhs<=0 then // box toggle
+ if a.box=="on" then
+ a.box="off"
+ else
+ a.box="on"
+ end
+ elseif rhs==1 then
+ if type(axes_handle)==10 then // box on/off
+ a.box=convstr(axes_handle,"l")
+ else // box(axes_handle)
+ if axes_handle.box=="on" then
+ axes_handle.box="off"
+ else
+ axes_handle.box="on"
+ end
+ end
+ elseif rhs==2 then // box(axes_handle,...)
+ axes_handle.box=convstr(val,"l")
+ else
+ error(msprintf(gettext("%s: This feature has not been implemented.\n"),"mtlb_box"));
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_choices.bin b/modules/compatibility_functions/macros/mtlb_choices.bin
new file mode 100755
index 000000000..a383ec46f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_choices.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_choices.sci b/modules/compatibility_functions/macros/mtlb_choices.sci
new file mode 100755
index 000000000..926aed02b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_choices.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_choices(nam,header,labels,callbacks,inter)
+
+ while %t
+ num=x_choose(labels,header,gettext("Close"))
+ if num==0 then break,end
+ execstr(callbacks(num))
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_close.bin b/modules/compatibility_functions/macros/mtlb_close.bin
new file mode 100755
index 000000000..493906935
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_close.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_close.sci b/modules/compatibility_functions/macros/mtlb_close.sci
new file mode 100755
index 000000000..9c6015964
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_close.sci
@@ -0,0 +1,55 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [status]=mtlb_close(h)
+ // Emulation function for Matlab close()
+
+ rhs=argn(2)
+
+ warning(msprintf(gettext("%s: ''%s'' ignored.\n"),"mtlb_close", "status"));
+ status=1
+
+ // close
+ if rhs<=0 then
+ if type(gcf())==9 then
+ delete(gcf())
+ else
+ close()
+ end
+ // close(h) - close('all') - close(name)
+ elseif rhs==1 then
+ if type(h)==9 then
+ delete(h)
+ elseif type(h)==1 then
+ close(h)
+ elseif type(h)==10 then
+ if h=="all" then
+ xdel(winsid())
+ else // close(name)
+ cf_save=gcf()
+
+ allwin=winsid()
+ for k=1:size(allwin,"*")
+ if get(scf(allwin(k)),"figure_name")==h then
+ delete(gcf())
+ break
+ end
+ end
+
+ scf(cf_save)
+ end
+ else // Unknown type for h
+ error(msprintf(gettext("%s: This feature has not been implemented.\n"),"mtlb_close"));
+ end
+ else // close('all','hidden')
+ warning(msprintf(gettext("%s: All windows deleted.\n"),"mtlb_close"));
+ xdel(winsid())
+ end
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_colordef.bin b/modules/compatibility_functions/macros/mtlb_colordef.bin
new file mode 100755
index 000000000..cf7e9e140
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_colordef.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_colordef.sci b/modules/compatibility_functions/macros/mtlb_colordef.sci
new file mode 100755
index 000000000..d3635a26f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_colordef.sci
@@ -0,0 +1,50 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function varargout=mtlb_colordef(varargin)
+ // Emulation function for Matlab colordef()
+
+ lhs=argn(1);
+
+ if lstsize(varargin)==1 then
+ color_option=varargin(1)
+ fig=[]
+
+ f=gcf()
+ if or(color_option==["black","none"]) then
+ f.background=-1
+ else
+ f.background=-2
+ end
+ if lhs==1 then
+ varargout(1)=f
+ end
+ else
+ color_option=varargin(2)
+ fig=varargin(1)
+
+ if type(fig)==10 then //'new'
+ fig=scf(max(winsid())+1);
+ end
+
+ if or(color_option==["black","none"]) then
+ fig.background=-1
+ else
+ fig.background=-2
+ end
+ if lhs==1 then
+ varargout(1)=fig
+ end
+
+ end
+
+
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_cond.bin b/modules/compatibility_functions/macros/mtlb_cond.bin
new file mode 100755
index 000000000..349c7c7d7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cond.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_cond.sci b/modules/compatibility_functions/macros/mtlb_cond.sci
new file mode 100755
index 000000000..62c989f62
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cond.sci
@@ -0,0 +1,38 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function c=mtlb_cond(A,flag)
+ // Emulation function for cond() Matlab function
+
+ if A == [] then c = 0, return, end
+ if size(A,1) <> size(A,2) & flag <> 2 then
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: Square matrix expected.\n"),"mtlb_cond", 1));
+ end
+
+ if flag == 1
+ c = norm(A,1)*norm(inv(A),1);
+ elseif flag == 2
+ if size(A,1) == size(A,2) then
+ c = cond(A);
+ else //case rectangular matrix
+ s = svd(A)
+ if s($) == 0 then
+ c = %inf;
+ else
+ c = s(1)/s($);
+ end
+ end
+ elseif flag == "fro"
+ c = norm(A,"fro")*norm(inv(A),"fro");
+ elseif flag == "inf"
+ c = norm(A,"inf")*norm(inv(A),"inf");
+ else
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: %s, %s,''%s'' or ''%s'' expected.\n"),"mtlb_cond",2,"1","2","fro","inf"));
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_cov.bin b/modules/compatibility_functions/macros/mtlb_cov.bin
new file mode 100755
index 000000000..a56e81add
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cov.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_cov.sci b/modules/compatibility_functions/macros/mtlb_cov.sci
new file mode 100755
index 000000000..a5b9bee3e
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cov.sci
@@ -0,0 +1,67 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function Y=mtlb_cov(A,B,C)
+ // Emulation function for Matlab cov()
+
+ [lhs,rhs]=argn()
+ if rhs==1
+ if size(A,1)==1 & size(A,2)==1
+ Y = mvvacov(A)
+ elseif size(A,1)==1 & size(A,2)>1
+ N = size(A,2)
+ Y = (N/(N-1))*mvvacov(A')
+ elseif size(A,1)>1
+ N = size(A,1)
+ Y = (N/(N-1))*mvvacov(A)
+ end
+ elseif rhs==2
+ if prod(size(B,"*"))==1 & and(B==1)
+ if size(A,1)==1 & size(A,2)==1
+ Y = mvvacov(A)
+ elseif size(A,1)==1 & size(A,2)>1
+ Y = mvvacov(A')
+ elseif size(A,1)>1
+ Y = mvvacov(A)
+ end
+ elseif prod(size(B,"*"))==1 & and(B==0)
+ if size(A,1)==1 & size(A,2)==1
+ Y = mvvacov(A)
+ elseif size(A,1)==1 & size(A,2)>1
+ N = size(A,2)
+ Y = (N/(N-1))*mvvacov(A')
+ elseif size(A,1)>1
+ N = size(A,1)
+ Y = (N/(N-1))*mvvacov(A)
+ end
+ elseif prod(size(B,"*"))==1
+ B = matrix(B,-1,1)
+ A = matrix(A,-1,1)
+ Y = mvvacov([A,B])
+ elseif prod(size(B,"*"))>1
+ N = prod(size(B,"*"))
+ B = matrix(B,-1,1)
+ A = matrix(A,-1,1)
+ Y = (N/N-1)*mvvacov([A,B])
+ end
+ elseif rhs==3
+ B = matrix(B,-1,1)
+ A = matrix(A,-1,1)
+ if C==1
+ Y = mvvacov([A,B])
+ elseif C==0
+ N = prod(size(B,"*"))
+ if N<>1
+ Y = (N/(N-1))*mvvacov([A,B])
+ else
+ Y = mvvacov([A,B])
+ end
+ end
+ end
+endfunction \ No newline at end of file
diff --git a/modules/compatibility_functions/macros/mtlb_cumprod.bin b/modules/compatibility_functions/macros/mtlb_cumprod.bin
new file mode 100755
index 000000000..d37ce7350
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cumprod.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_cumprod.sci b/modules/compatibility_functions/macros/mtlb_cumprod.sci
new file mode 100755
index 000000000..9074cc6ac
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cumprod.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function B=mtlb_cumprod(A,dim)
+ // Emulation function for Matlab cumprod()
+
+ [lhs,rhs]=argn()
+
+ if rhs==1 then
+ if size(a,1)==1|size(a,2)==1 then
+ r=cumprod(a)
+ else
+ r=cumprod(a,firstnonsingleton(A))
+ end
+ else
+ if dim<=size(size(A),"*") then
+ B=cumprod(A,dim)
+ else
+ B=A
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_cumsum.bin b/modules/compatibility_functions/macros/mtlb_cumsum.bin
new file mode 100755
index 000000000..6d90acd8a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cumsum.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_cumsum.sci b/modules/compatibility_functions/macros/mtlb_cumsum.sci
new file mode 100755
index 000000000..277d3329e
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_cumsum.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function B=mtlb_cumsum(A,dim)
+ // Emulation function for Matlab cumsum()
+
+ [lhs,rhs]=argn()
+
+ if rhs==1 then
+ if size(a,1)==1|size(a,2)==1 then
+ r=cumsum(a)
+ else
+ r=cumsum(a,firstnonsingleton(A))
+ end
+ else
+ if dim<=size(size(A),"*") then
+ B=cumsum(A,dim)
+ else
+ B=A
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_dec2hex.bin b/modules/compatibility_functions/macros/mtlb_dec2hex.bin
new file mode 100755
index 000000000..a7c083589
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_dec2hex.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_dec2hex.sci b/modules/compatibility_functions/macros/mtlb_dec2hex.sci
new file mode 100755
index 000000000..8930e9b29
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_dec2hex.sci
@@ -0,0 +1,30 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [str]=mtlb_dec2hex(D,N)
+ // Emulation function for Matlab dec2hex()
+
+ rhs=argn(2)
+
+ str=matrix(dec2hex(real(D)),-1,1)
+
+ if isempty(str) then
+ str=""
+ end
+
+ if rhs==2 then
+ for k=1:size(str,1)
+ if str(k)<>"" then
+ str(k)=part("0",ones(1,N-length(str(k))))+str(k)
+ end
+ end
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_delete.bin b/modules/compatibility_functions/macros/mtlb_delete.bin
new file mode 100755
index 000000000..e275fbf8b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_delete.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_delete.sci b/modules/compatibility_functions/macros/mtlb_delete.sci
new file mode 100755
index 000000000..cad170ed7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_delete.sci
@@ -0,0 +1,23 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function []=mtlb_delete(y)
+ // Emulation function for Matlab delete()
+
+ if type(y)==10 then
+ mdelete(y);
+ elseif type(y)==9 then
+ delete(y);
+ else
+ error(msprintf(gettext("%s: This feature has not been implemented.\n"),"mtlb_delete"));
+ end
+
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_diag.bin b/modules/compatibility_functions/macros/mtlb_diag.bin
new file mode 100755
index 000000000..34e6b2056
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_diag.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_diag.sci b/modules/compatibility_functions/macros/mtlb_diag.sci
new file mode 100755
index 000000000..1f6aae9e7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_diag.sci
@@ -0,0 +1,48 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_diag(x,dim)
+ // Emulation function for diag() Matlab function
+
+
+ rhs=argn(2)
+
+ // B = diag(A)
+ if rhs==1 then
+ if type(x)==10 then
+ x=mstr2sci(x);
+ tmp=diag(x)
+ tmp(find(tmp==" "))=ascii(0)
+ y=[]
+ for k=1:size(tmp,1)
+ y=[y;strcat(tmp(k,:))]
+ end
+ elseif or(type(x)==[4,6]) then
+ y=diag(bool2s(x))
+ else
+ y=diag(x)
+ end
+ // B = diag(A,k)
+ else
+ if type(x)==10 then
+ x=asciimat(x);
+ x=diag(x,dim)
+ y=[]
+ for k=1:size(x,1)
+ tmp=mstr2sci(ascii(x(k,:)))
+ tmp(find(tmp==ascii(0)))=ascii(0)
+ y=[y;strcat(tmp)]
+ end
+ elseif or(type(x)==[4,6]) then
+ y=diag(bool2s(x),dim)
+ else
+ y=diag(x,dim)
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_diff.bin b/modules/compatibility_functions/macros/mtlb_diff.bin
new file mode 100755
index 000000000..68ad3a33b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_diff.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_diff.sci b/modules/compatibility_functions/macros/mtlb_diff.sci
new file mode 100755
index 000000000..401af5480
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_diff.sci
@@ -0,0 +1,46 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_diff(x,N,dim)
+ // Emulation function for Matlab diff()
+
+ [lhs,rhs]=argn()
+ if rhs==1 then N=1,end
+ if rhs<=2 then
+ if length(size(x))>2 then
+ dim=firstnonsingleton(x)
+ elseif size(x,1)==1 | size(x,2)==1 then
+ dim=0
+ else
+ dim="r"
+ end
+
+ end
+
+ if dim==0 then
+ y=diff(x,N)
+ else
+ if N>=size(x,"*") then
+ y=[]
+ return
+ else
+ for k=1:N
+ x=diff(x,1,dim)
+ if size(x,dim)==1 then
+ dim=firstnonsingleton(x)
+ end
+ end
+ end
+ if x==[] then
+ y=0
+ else
+ y=x
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_dir.bin b/modules/compatibility_functions/macros/mtlb_dir.bin
new file mode 100755
index 000000000..19e33d30f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_dir.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_dir.sci b/modules/compatibility_functions/macros/mtlb_dir.sci
new file mode 100755
index 000000000..8d1cc80ae
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_dir.sci
@@ -0,0 +1,71 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [L]=mtlb_dir(path)
+ // Emulation function for dir() Matlab function
+ // See SCI/modules/fileio/macros/dir.sci for details
+
+ // opt=='disp' -> result not affected to a variable
+ // opt=='var' -> result affected to a variable
+
+ rhs=argn(2)
+
+ mask = int32(61440)
+ dirtype = 16384
+ basepath=""
+
+ if rhs==1 then
+ files=listfiles(path)
+ basepath=path
+ else
+ files=listfiles()
+ end
+
+ n=size(files,"*")
+ if n<>0 then
+ files=gsort(files,"g","i")
+ end
+
+ lfiles=list()
+ ldate=list()
+ lbytes=list()
+ lisdir=list()
+ for k=1:n
+ lfiles(k)=files(k)
+ [x,ierr]=fileinfo(basepath+"/"+files(k))
+ if ( (x == []) & (ierr== -1) ) then [x,ierr]=fileinfo(files(k)),end
+ if x<>[] then
+ w=getdate(x(6))
+ month=[gettext("Jan"),..
+ gettext("Feb"),..
+ gettext("Mar"),..
+ gettext("Apr"),..
+ gettext("May"),..
+ gettext("Jun"),..
+ gettext("Jul"),..
+ gettext("Aug"),..
+ gettext("Sep"),..
+ gettext("Oct"),..
+ gettext("Nov"),..
+ gettext("Dec")];
+
+ ldate(k)=string(w(6))+"-"+month(w(2))+"-"+string(w(1))+" "+string(w(7))+":"+string(w(8))+":"+string(w(9))
+ lbytes(k)=x(1);
+ lisdir(k)=double(int32(x(2)) & mask) == dirtype
+ end
+ end
+ if n==1 then
+ lfiles=lfiles(1);
+ ldate=ldate(1);
+ lbytes=lbytes(1);
+ lisdir=lisdir(1);
+ end
+ L=mlist(["st","dims","name","date","bytes","isdir"],int32([n 1]),lfiles,ldate,lbytes,lisdir)
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_double.bin b/modules/compatibility_functions/macros/mtlb_double.bin
new file mode 100755
index 000000000..db04f18f8
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_double.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_double.sci b/modules/compatibility_functions/macros/mtlb_double.sci
new file mode 100755
index 000000000..0e4f54e93
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_double.sci
@@ -0,0 +1,23 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=mtlb_double(y)
+
+ if type(y)==10 then
+ x=asciimat(y)
+ elseif type(y)==4 then
+ x=bool2s(y)
+ elseif type(y)==8 then
+ x=double(y)
+ else
+ x=y
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_e.bin b/modules/compatibility_functions/macros/mtlb_e.bin
new file mode 100755
index 000000000..366b23e90
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_e.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_e.sci b/modules/compatibility_functions/macros/mtlb_e.sci
new file mode 100755
index 000000000..d90075a7b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_e.sci
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_e(a,i)
+ if type(a)==10 then
+ a=strcat(a);
+ if i==$ then
+ r=part(a,length(a))
+ else
+ r=part(a,i)
+ end
+ else
+ r=a(i)
+ if size(i,2)>1 then //index is a row vector
+ if min(size(a))>1 then // a is'nt a vector
+ r=matrix(r,1,size(r,"*")) //return a row vector
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_echo.bin b/modules/compatibility_functions/macros/mtlb_echo.bin
new file mode 100755
index 000000000..a6d3af323
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_echo.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_echo.sci b/modules/compatibility_functions/macros/mtlb_echo.sci
new file mode 100755
index 000000000..b0acf6525
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_echo.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_echo(arg1,arg2)
+ // Emulation function for Matlab echo()
+
+ rhs=argn(2);
+
+ if rhs<=0 then
+ mode(abs(mode()-1))
+ elseif rhs==1 then
+ if arg1=="on" then
+ mode(1);
+ elseif arg1=="off" then
+ mode(0);
+ else
+ error(msprintf(gettext("%s: Not yet implemented.\n"),"mtlb_echo"));
+ end
+ else
+ error(msprintf(gettext("%s: Not yet implemented.\n"),"mtlb_echo"));
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_error.bin b/modules/compatibility_functions/macros/mtlb_error.bin
new file mode 100755
index 000000000..464f3a743
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_error.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_error.sci b/modules/compatibility_functions/macros/mtlb_error.sci
new file mode 100755
index 000000000..30d759341
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_error.sci
@@ -0,0 +1,27 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_error(varargin)
+
+ if argn(2)==1 then
+ m=varargin(1)
+ else
+ F=varargin(1)
+ //check if it is an identifier or a message
+ //if strindex(F,'%')==[] then //not a format
+ if size(tokens(F,":"),"*")>1 then
+ // an identifier, it is ignored
+ m=msprintf(varargin(2:$))
+ else
+ m=msprintf(varargin(:))
+ end
+ //end
+ end
+ error(m)
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_eval.bin b/modules/compatibility_functions/macros/mtlb_eval.bin
new file mode 100755
index 000000000..ce6ac56b9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_eval.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_eval.sci b/modules/compatibility_functions/macros/mtlb_eval.sci
new file mode 100755
index 000000000..07e7d6f77
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_eval.sci
@@ -0,0 +1,111 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_eval(%s1,%s2)
+ // Emulation function for Matlab eval()
+
+ [lhs,rhs]=argn()
+
+ %prot=funcprot();
+ funcprot(0)
+
+ // Init all variables useful to launch mfile2sci()
+ deff("r=isanmfile(s)","r=%f");
+ res_path=[];
+ logfile=-1;
+ batch=%t;
+ fnam="%fun";
+ dquote="''";
+ lcount=1;
+ level=[0,0];
+ sciexp=0;
+ load("SCI/modules/m2sci/macros/kernel/lib");
+ sciparam();
+
+ // Scilab variable types
+ Double=1;
+ Boolean=4; // Boolean type can also be 6
+ Sparse=5;
+ Int=8;
+ Handle=9;
+ String=10;
+ Cell=17;
+ Struct=16;
+ Void=0;
+ Unknown=-1; // Unknown type or dimension
+ SupToOne=-2; // Dimension >1
+ NotNull=-3; // Dimension >0
+ Complex=1 //"Complex"
+ Real=0 //"Real"
+ Units=["pixels","centimeters","points","inches","normalized"]
+
+ margin=" "
+ verbose_mode = 0;
+ logfile=file("open",res_path+"m2sci_fun.log","unknown")
+ varslist=m2sci_init()
+
+ // Define a function which contains expression/instruction to eval and convert it
+ deff("%fun()",%s1)
+ mtlbtree=macr2tree(%fun);
+ [scitree,%txt]=mtlbtree2sci(mtlbtree,%T)
+ //%txt=tree2code(scitree)
+ %txt(find(part(%txt,1:2)=="//"))=[]
+ %txt(1)=[];
+ %txt($)=[];
+
+ %r=0
+ %nold=size(who("get"),"*")
+ %r=execstr(%txt,"errcatch")
+
+ if %r<>0&rhs==2 then
+ deff("%fun()",%s2)
+ mtlbtree=macr2tree(%fun);
+ [scitree,varslist]=mtlbtree2sci(mtlbtree,varslist)
+ %txt=tree2code(scitree)
+ %txt(find(part(%txt,1:2)=="//"))=[]
+ %txt(1)=[];
+ %txt($)=[];
+ disp(%txt)
+
+ %nold=size(who("get"),"*")
+ %r=execstr(%txt,"errcatch")
+ else
+ %nold=%nold+1
+ end
+
+ file("close", logfile);
+
+ nams=who("get");
+ if size(nams,"*")<=%nold then
+ r=0
+ return
+ end
+ nams=nams(1:$-%nold)
+ %r=funcprot(%prot);
+
+ if nams=="ans" then
+ r=ans
+ else
+ r=[];
+ execstr("["+strcat(nams,",")+"]"+"=resume"+"("+strcat(nams,",")+")")
+ end
+
+endfunction
+function [varslist]=m2sci_init()
+ varslist=list()
+ varslist($+1)=M2scivar("%i","i",Infer(list(1,1),Type(1,Complex)))
+ varslist($+1)=M2scivar("%i","j",Infer(list(1,1),Type(1,Complex)))
+ varslist($+1)=M2scivar("%nan","NaN",Infer(list(1,1),Type(1,Real)))
+ varslist($+1)=M2scivar("%nan","nan",Infer(list(1,1),Type(1,Real)))
+ varslist($+1)=M2scivar("%inf","Inf",Infer(list(1,1),Type(1,Real)))
+ varslist($+1)=M2scivar("%inf","inf",Infer(list(1,1),Type(1,Real)))
+ varslist($+1)=M2scivar("$","end",Infer(list(1,1),Type(1,Real)))
+ varslist($+1)=M2scivar("%pi","pi",Infer(list(1,1),Type(1,Real)))
+ varslist($+1)=M2scivar("%eps","eps",Infer(list(1,1),Type(1,Real)))
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_exist.bin b/modules/compatibility_functions/macros/mtlb_exist.bin
new file mode 100755
index 000000000..5eabe7de3
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_exist.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_exist.sci b/modules/compatibility_functions/macros/mtlb_exist.sci
new file mode 100755
index 000000000..af6223779
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_exist.sci
@@ -0,0 +1,48 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_exist(nam,wh)
+ // Emulation function for exist() Matlab function
+
+ [lhs,rhs]=argn(0)
+ fptr=funptr(nam)
+ r=0
+ if rhs==1 then
+ if fptr<>0 then
+ fptr=int(fptr/1000)
+ if fptr<=500 then
+ r=5
+ else
+ r=3
+ end
+ elseif exists(nam)==1 then
+ if type(nam)==11|type(nam)==13 then
+ r=2
+ else
+ r=1
+ end
+ end
+ else
+ select wh
+ case "var" then
+ if exists(nam)==1 then r=1,end
+ case "builtin" then
+ if fptr<>0 then
+ fptr=int(fptr/1000)
+ if fptr<=500 then
+ r=5
+ else
+ r=3
+ end
+ end
+ case "file" then
+ case "dir" then
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_eye.bin b/modules/compatibility_functions/macros/mtlb_eye.bin
new file mode 100755
index 000000000..bb78c3e10
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_eye.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_eye.sci b/modules/compatibility_functions/macros/mtlb_eye.sci
new file mode 100755
index 000000000..9dee649db
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_eye.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_eye(a)
+ // Emulation function for eye() Matlab function
+
+ if and(size(a)==[1 1]) then
+ r=eye(a,a)
+ else
+ r=eye(a(1),a(2))
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_false.bin b/modules/compatibility_functions/macros/mtlb_false.bin
new file mode 100755
index 000000000..e221b4316
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_false.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_false.sci b/modules/compatibility_functions/macros/mtlb_false.sci
new file mode 100755
index 000000000..bbf868628
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_false.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_false(a)
+ // Emulation function for false() Matlab function
+
+ if and(size(a)==[1 1]) then
+ r=zeros(a,a)
+ else
+ tmp=list()
+ for k=1:size(a,"*")
+ tmp(k)=a(k)
+ end
+ r=zeros(tmp(1:$))
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_fft.bin b/modules/compatibility_functions/macros/mtlb_fft.bin
new file mode 100755
index 000000000..8273cdeee
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fft.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fft.sci b/modules/compatibility_functions/macros/mtlb_fft.sci
new file mode 100755
index 000000000..b1e9038c9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fft.sci
@@ -0,0 +1,79 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_fft(x,n,job)
+ // Translation function for fft() Matlab function
+
+ [lhs,rhs]=argn(0)
+ if size(x,"*")==0 then
+ r=[]
+ return
+ end
+ if rhs<2 then n=[],end
+ if rhs==3 then //row or column-wise fft
+ select job
+ case 1 then //row-wise
+ if n<>[] then //pad or truncate
+ s=size(x,1)
+ if s>n then //truncated fft
+ x=x(1:n,:)
+ elseif s<n then //padd with zeros
+ x(n,:)=0
+ end
+ end
+ r=[]
+ for xk=x
+ r=[r fft(xk,-1)]
+ end
+ case 2 then //column-wise
+ if n<>[] then //pad or truncate
+ s=size(x,2)
+ if s>n then //truncated fft
+ x=x(:,1:n)
+ elseif s<n then //padd with zeros
+ x(:,n)=0
+ end
+ end
+ r=[]
+ for k=1:size(x,1)
+ r=[r;fft(x(k,:),-1)]
+ end
+ end
+ else
+ if min(size(x))==1 then //fft of a vector
+ if n<>[] then //pad or truncate
+ s=size(x,"*")
+ if s>n then //truncated fft
+ x=x(1:n)
+ elseif s<n then //padd with zeros
+ x(n)=0
+ end
+ r=fft(x,-1)
+ if s==1 then
+ r=r.'
+ end
+ else
+ r=fft(x,-1)
+ end
+ else //row-wise fft
+ if n<>[] then //pad or truncate
+ s=size(x,1)
+ if s>n then //truncated fft
+ x=x(1:n,:)
+ elseif s<n then //padd with zeros
+ x(n,:)=0
+ end
+ end
+ r=[]
+ for xk=x
+ r=[r fft(xk,-1)]
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_fftshift.bin b/modules/compatibility_functions/macros/mtlb_fftshift.bin
new file mode 100755
index 000000000..907fb5f5a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fftshift.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fftshift.sci b/modules/compatibility_functions/macros/mtlb_fftshift.sci
new file mode 100755
index 000000000..2777b791c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fftshift.sci
@@ -0,0 +1,42 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_fftshift(x,dim)
+ // Emulation function for fftshift() Matlab function
+
+ rhs=argn(2)
+
+ // Y = fftshift(X)
+ if rhs==1 then
+ if type(x)==10 then
+ tmp=fftshift(mstr2sci(x))
+ y=[]
+ for k=1:size(tmp,1)
+ y=[y;strcat(tmp(k,:))]
+ end
+ else
+ y=fftshift(x)
+ end
+ // Y = fftshift(X,dim)
+ else
+ if dim<=size(size(x),"*") then
+ if type(x)==10 then
+ tmp=fftshift(mstr2sci(x),dim)
+ y=[]
+ for k=1:size(tmp,1)
+ y=[y;strcat(tmp(k,:))]
+ end
+ else
+ y=fftshift(x,dim)
+ end
+ else
+ y=x
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_filter.bin b/modules/compatibility_functions/macros/mtlb_filter.bin
new file mode 100755
index 000000000..1c205f2b9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_filter.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_filter.sci b/modules/compatibility_functions/macros/mtlb_filter.sci
new file mode 100755
index 000000000..2ecb778c7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_filter.sci
@@ -0,0 +1,36 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [y,zf] = mtlb_filter(b,a,x,zi)
+ [lhs,rhs]=argn()
+ [m,n]=size(x)
+ x=matrix(x,1,m*n)
+ a=poly(a($:-1:1),"z","c")
+ b=poly(b($:-1:1),"z","c")
+ z=poly(0,"z")
+ da = degree(a)
+ db = degree(b)
+ if (da-db) > 0 then b=b*z^(da-db); end
+ if (db-da) > 0 then a=a*z^(db-da); end
+ if lhs==1 then
+ if rhs==4 then
+ y=rtitr(b,a,x,zi)
+ else
+ y=rtitr(b,a,x);
+ end
+ else
+ sl=tf2ss(rlist(b,a,[]))
+ if rhs==4 then
+ [y,zf]=flts(x,sl,zi)
+ else
+ [y,zf]=flts(x,sl)
+ end
+ end
+ y=matrix(y,m,n)
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_find.bin b/modules/compatibility_functions/macros/mtlb_find.bin
new file mode 100755
index 000000000..d8eea74ee
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_find.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_find.sci b/modules/compatibility_functions/macros/mtlb_find.sci
new file mode 100755
index 000000000..8735bd765
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_find.sci
@@ -0,0 +1,50 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [i,j,v]=mtlb_find(b)
+ // Translation function for find() Matlab function
+
+ [lhs,rhs]=argn(0)
+
+ // Because find does not work on complex values
+ // And isreal does not word with Booleans
+ c=b
+ if type(b)<>4 & type(b)<>6 then
+ if ~isreal(b) then
+ c=abs(b)
+ end
+ end
+
+ // One output arg
+ if lhs==1 then
+ i=find(c)
+ if size(b,1)<>1 then
+ i=i'
+ end
+ // Two output args
+ elseif lhs==2 then
+ [i,j]=find(c)
+ if size(b,1)<>1 then
+ i=i'
+ j=j'
+ end
+ // Three output args
+ else
+ [i,j]=find(c)
+ if i<>[] then
+ v = b(i+size(b,1)*(j-1))
+ else
+ v = []
+ end
+ if size(b,1)<>1 then
+ i=i'
+ j=j'
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_findstr.bin b/modules/compatibility_functions/macros/mtlb_findstr.bin
new file mode 100755
index 000000000..d7e73dedf
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_findstr.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_findstr.sci b/modules/compatibility_functions/macros/mtlb_findstr.sci
new file mode 100755
index 000000000..3b9c89592
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_findstr.sci
@@ -0,0 +1,17 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function s=mtlb_findstr(a,b)
+ if length(a)>length(b) then
+ s=strindex(a,b)
+ else
+ s=strindex(b,a)
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_fliplr.bin b/modules/compatibility_functions/macros/mtlb_fliplr.bin
new file mode 100755
index 000000000..7e89cef9f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fliplr.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fliplr.sci b/modules/compatibility_functions/macros/mtlb_fliplr.sci
new file mode 100755
index 000000000..b024e4896
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fliplr.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=mtlb_fliplr(y)
+ // Emulation function for fliplr() Matlab function
+
+ if type(y)==1 then
+ x=y(:,$:-1:1)
+ elseif type(y)==10 then
+ tmp = asciimat(y)
+ tmp=tmp(:,$:-1:1)
+ x=[];
+ for k=1:size(tmp,1)
+ x=[x;ascii(tmp(k,:))]
+ end
+ elseif type(y)==4 then
+ tmp = bool2s(y)
+ x=tmp(:,$:-1:1)
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_fopen.bin b/modules/compatibility_functions/macros/mtlb_fopen.bin
new file mode 100755
index 000000000..118716dc9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fopen.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fopen.sci b/modules/compatibility_functions/macros/mtlb_fopen.sci
new file mode 100755
index 000000000..0f55f3939
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fopen.sci
@@ -0,0 +1,24 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [fid,mess]=mtlb_fopen(filename,permission)
+ // Emulation function for fopen() Matlab function
+
+ [lhs,rhs]=argn()
+
+ [fid,err]=mopen(filename,permission,0)
+ if err<0 then
+ fid=-1
+ mess=msprintf(gettext("%s: Cannot open file ''%s''.\n"),"mtlb_fopen",filename);
+ else
+ mess=""
+ end
+
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_format.bin b/modules/compatibility_functions/macros/mtlb_format.bin
new file mode 100755
index 000000000..119243415
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_format.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_format.sci b/modules/compatibility_functions/macros/mtlb_format.sci
new file mode 100755
index 000000000..5c0fde21b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_format.sci
@@ -0,0 +1,69 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function []=mtlb_format(_type,prec)
+ // Emulation function for format() Matlab function
+
+ rhs1=rhs
+ if rhs==2 then
+ fp=sci2exp("e")
+ rhs=rhs-1
+ else
+ fp=sci2exp("v")
+ end
+
+ d=5;
+ hex=%f;
+ bank=%f;
+ compact=%f;
+ loose=%f,
+ ratf=%f;
+ symb=%f;
+ unk=%f
+
+ if rhs==1 then
+ select _type
+ case "''short''" then
+ d=5
+ case "''long''" then
+ d=15
+ case "''hex''" then
+ hex=%t
+ case "''+''" then
+ symb=%t
+ case "''bank''" then
+ bank=%t
+ case "''compact''" then
+ compact=%t
+ case "''loose''" then
+ loose=%t
+ case "''rat''" then
+ ratf=%t
+ else
+ unk=%t
+ end
+ else
+ d=5
+ end
+
+
+ if unk then
+ error(msprintf(gettext("%s: Unknown type.\n"),"mtlb_format"))
+ elseif ratf|loose|compact|bank|hex then
+ warning(msprintf(gettext("%s: Unknown type ''%s'': IGNORED.\n"),"mtlb_format",_type));
+ else
+ if rhs1==1 then
+ format(d+1)
+ elseif rhs1==2 then
+ format(fp,d+1)
+ else
+ format("v",6)
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_fprintf.bin b/modules/compatibility_functions/macros/mtlb_fprintf.bin
new file mode 100755
index 000000000..b32ec87d9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fprintf.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fprintf.sci b/modules/compatibility_functions/macros/mtlb_fprintf.sci
new file mode 100755
index 000000000..40afa83b4
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fprintf.sci
@@ -0,0 +1,124 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function count = mtlb_fprintf(varargin)
+ // Emulation function for fprintf() Matlab function
+
+ [lhs,rhs]=argn()
+
+ count=0
+ // No fid given: mtlb_fprintf(fmt,...)
+ // Output is the screen
+
+ if size(varargin)==1 & type(varargin(1))==10 then
+ mprintf("%s \n",varargin(1))
+ count=length(varargin(1))
+ elseif type(varargin(1))==10 then
+ fmt=varargin(1)
+ nfmt=size(strindex(fmt,"%"),"*")
+ nv=size(varargin)-1
+ if nv==1 then
+ a=varargin(2)
+ na=size(a,"*")
+
+ // If more values than formats
+ mult=max(na/nfmt,1)
+ fmt=strcat(fmt(ones(1,mult))) // duplicate format
+
+ l=list()
+ A=a
+ for k=1:size(a,"*")
+ l($+1)=A(k)
+ end
+ mprintf(fmt,l(:))
+ count=size(a,"*")
+ elseif nv==0 then
+ error(msprintf(gettext("%s: %s is not implemented.\n"),"mtlb_fprintf","mprintf("+fmt+")"));
+ else
+ sz=[]
+ for k=1:nv
+ sz=[sz size(varargin(k+1),1)]
+ end
+ // Size of args is verified because Scilab mprintf function
+ // does not work if args have more than one row
+ if and(sz==1) then // All args have only one row
+ mult=max(nv/nfmt,1)
+ fmt=strcat(fmt(ones(1,mult))) // duplicate format
+ mprintf(fmt,varargin(2:$))
+ count=size(sz,"*")
+ else
+ error(msprintf(gettext("%s: %s Scilab function does not work with more than one row variables.\n"),"mtlb_fprintf","mprintf"))
+ end
+ end
+ // mtlb_fprintf(fid,fmt,...)
+ else
+ fid=varargin(1)
+ fmt=varargin(2)
+
+ // count % in fmt
+ nfmt=size(strindex(fmt,"%"),"*")
+ nv=size(varargin)-2
+ if nv==1 then
+ a=varargin(3)
+ na=size(a,"*")
+
+ mult=max(na/nfmt,1)
+
+ fmt=strcat(fmt(ones(1,mult))) // duplicate format
+
+ l=list()
+ for k=1:size(a,"*")
+ l(k)=a(k)
+ end
+ if or(fid==[1 2]) then
+ mprintf(fmt,l(:))
+ count=size(a,"*")
+ else
+ mfprintf(fid,fmt,l(:))
+ count=size(a,"*")
+ end
+ elseif nv==0 & nfmt==0 & type(varargin(2))==10
+ mfprintf(fid,"%s",varargin(2))
+ count=length(varargin(2))
+ elseif nv==0 then
+ if or(fid==[1 2]) then
+ error(msprintf(gettext("%s: %s is not implemented.\n"),"mtlb_fprintf", "mprintf(format)"))
+ else
+ error(msprintf(gettext("%s: %s is not implemented.\n"),"mtlb_fprintf","mfprintf(fid,format)"))
+ end
+ else
+ sz=[]
+ for k=1:nv
+ sz=[sz size(varargin(k+2),1)]
+ end
+ if and(sz==1) then
+ mult=max(nv/nfmt,1)
+ fmt=strcat(fmt(ones(1,mult))) // duplicate format
+
+ if or(fid==[1 2]) then
+ mprintf(fmt,varargin(3:$))
+ count=size(sz,"*")
+ else
+ mfprintf(fid,fmt,varargin(3:$))
+ count=size(sz,"*")
+ end
+ else
+ if or(fid==[1 2]) then
+ error(msprintf(gettext("%s: %s Scilab function does not work with more than one row variables.\n"),"mtlb_fprintf", "mprintf"))
+ else
+ fprintfMat(fid,varargin(3:$),fmt)
+ for k=1:nv
+ count=count+size(varargin(k+2),"*")
+ end
+ end
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_fread.bin b/modules/compatibility_functions/macros/mtlb_fread.bin
new file mode 100755
index 000000000..c159385c8
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fread.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fread.sci b/modules/compatibility_functions/macros/mtlb_fread.sci
new file mode 100755
index 000000000..f315a983d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fread.sci
@@ -0,0 +1,76 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [a, count]=mtlb_fread(fid,sz,prec)
+ // Emulation function for fread() Matlab function
+
+ prectbl=["c" "char" "char"
+ "?" "schar" "signed char"
+ "s" "short" "short"
+ "i" "int" "int"
+ "l" "long" "long"
+ "f" "float" "float"
+ "d" "double" "double"
+ "uc" "uchar" "unsigned char"
+ "us" "ushort" "unsigned short"
+ "ui" "uint" "unsigned int"
+ "ul" "ulong" "unsigned long"
+ "c" "char" "char*1"
+ "f" "float32" "real*4"
+ "d" "float64" "real*8"
+ "c" "int8" "integer*1"
+ "s" "int16" "integer*2"
+ "i" "int32" "integer*4"
+ "l" "" "integer*8"
+ "?" "intN" ""
+ "?" "uintN" "" ]
+
+ [lhs,rhs]=argn(0)
+ select rhs
+ case 1 then
+ sz=%inf
+ prec="uchar"
+ case 2 then
+ prec="uchar"
+ end
+ [l,k]=find(prec==prectbl)
+ if l==[] then
+ error(msprintf(gettext("%s: The format ''%s'' is unknown.\n"), "mtlb_fread", prec))
+ end
+ Prec=prectbl(l(1),1)
+ if Prec=="?" then
+ error(msprintf(gettext("%s: The format ''%s'' is not yet handled.\n"), "mtlb_fread", prec))
+ end
+ if isinf(sz) then
+ a=[]
+ while %t
+ x=mget(1,Prec,fid)
+ if meof(fid)<>0 then
+ mclearerr(fid)
+ break
+ end
+ a=[a;x]
+ end
+ count=size(a,1)
+ else
+ a=mget(prod(sz),Prec,fid)
+
+ if meof(fid)<>0 then
+ mclearerr(fid)
+ error(msprintf(gettext("%s: End of file reached before all matrix is read.\n"), "mtlb_fread"))
+ end
+ if size(sz,"*")==1 then
+ a=a(:)
+ else
+ a=matrix(a,sz(1),sz(2))
+ end
+ count=size(a,"*")
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_fscanf.bin b/modules/compatibility_functions/macros/mtlb_fscanf.bin
new file mode 100755
index 000000000..27aec0800
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fscanf.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fscanf.sci b/modules/compatibility_functions/macros/mtlb_fscanf.sci
new file mode 100755
index 000000000..732345ef7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fscanf.sci
@@ -0,0 +1,100 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [a,nvarst] = mtlb_fscanf(fid,fmt,sz)
+ // Emulation function for fscanf() Matlab function
+
+ [lhs,rhs]=argn()
+
+ // If sz not given then read all file data
+ if rhs<3 then
+ sz=%inf
+ end
+
+ nmx=prod(sz)
+ nvars=0
+
+ // Replicate the format many times to emulate Matlab format reuse
+ nfmt=size(strindex(fmt,"%"),"*")
+ fmt=strcat(fmt(ones(1,20/nfmt)))
+
+ a=[];
+ typ=10;
+ nvt=0;
+ nvarst=0;
+
+ while %t do
+ // 20 values are read
+ lvars=mfscanf(fid,fmt);
+
+ if lvars==[] then // End of file
+ break
+ else
+ nvars=size(lvars,2)
+ nvarst=nvarst+nvars
+ nv=min(nvars,nmx)
+ if nv<>0 then
+ if typ==10 then
+ for k=1:nv
+ typ=min(typ,type(lvars(k)))
+ end
+ end
+ if typ==1&type(a)==10 then
+ a=ascii(a)'
+ end
+ if typ==1 then
+ for k=1:nv
+ if type(lvars(k))==1 then
+ a=[a;lvars(k)]
+ else
+ a=[a;ascii(lvars(k))']
+ end
+ end
+ else
+ for k=1:nv
+ a=[a;lvars(k)]
+ end
+
+ end
+ end
+ nvt=nvt+nv
+ end
+ end
+
+ nv=nvt
+ if typ==1 then
+ if size(sz,"*")<>1 then
+ nv=size(a,"*")
+ n=ceil(nv/sz(1))
+ if n*sz(1)>nv then
+ a(n*sz(1))=0
+ end
+ a=matrix(a,sz(1),n),
+ end
+ else
+ if size(sz,"*")<>1 then
+ if sz(1)<=nv then
+ A=ascii(a)'
+ nv=size(A,"*")
+ n=ceil(nv/sz(1))
+ if n*sz(1)>nv then
+ A(nv+1:n*sz(1))=ascii(" ")
+ end
+ A=matrix(A,sz(1),n)
+ a=[]
+ for l=1:sz(1)
+ a=[a;ascii(A(l,:))]
+ end
+ end
+ else
+ a=strcat(a)
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_full.bin b/modules/compatibility_functions/macros/mtlb_full.bin
new file mode 100755
index 000000000..9c2d3c686
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_full.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_full.sci b/modules/compatibility_functions/macros/mtlb_full.sci
new file mode 100755
index 000000000..e87caddf1
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_full.sci
@@ -0,0 +1,27 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=mtlb_full(y)
+ // Emulation function for full() Matlab function
+
+ if type(y)==1 then
+ x=full(y)
+ elseif type(y)==10 then
+ tmp = asciimat(y)
+ tmp=full(tmp)
+ x=[];
+ for k=1:size(tmp,1)
+ x=[x;ascii(tmp(k,:))]
+ end
+ elseif type(y)==4 then
+ x=full(bool2s(y))
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_fwrite.bin b/modules/compatibility_functions/macros/mtlb_fwrite.bin
new file mode 100755
index 000000000..5c477de05
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fwrite.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_fwrite.sci b/modules/compatibility_functions/macros/mtlb_fwrite.sci
new file mode 100755
index 000000000..00108a13a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_fwrite.sci
@@ -0,0 +1,49 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function count=mtlb_fwrite(fid,a,prec)
+ // Emulation function for fwrite() Matlab function
+
+ prectbl=["c" "char" "char"
+ "?" "schar" "signed char"
+ "s" "short" "short"
+ "i" "int" "int"
+ "l" "long" "long"
+ "f" "float" "float"
+ "d" "double" "double"
+ "uc" "uchar" "unsigned char"
+ "us" "ushort" "unsigned short"
+ "ui" "uint" "unsigned int"
+ "ul" "ulong" "unsigned long"
+ "c" "char" "char*1"
+ "f" "float32" "real*4"
+ "d" "float64" "real*8"
+ "c" "int8" "integer*1"
+ "s" "int16" "integer*2"
+ "i" "int32" "integer*4"
+ "l" "" "integer*8"
+ "?" "intN" ""
+ "?" "uintN" "" ]
+
+ [lhs,rhs]=argn(0)
+ if rhs<3 then prec="uchar";end
+
+ [l,k]=find(prec==prectbl)
+ if l==[] then
+ error(msprintf(gettext("%s: The format ''%s'' is unknown.\n"),"mtlb_fwrite",prec));
+ end
+ Prec=prectbl(l,1)
+ if Prec=="?" then
+ error(msprintf(gettext("%s: The format ''%s'' is not yet handled.\n"),"mtlb_fwrite",prec));
+ end
+ mput(a,Prec,fid)
+ count=size(a,"*")
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_get.bin b/modules/compatibility_functions/macros/mtlb_get.bin
new file mode 100755
index 000000000..16d375d97
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_get.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_get.sci b/modules/compatibility_functions/macros/mtlb_get.sci
new file mode 100755
index 000000000..91bde0188
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_get.sci
@@ -0,0 +1,102 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function v=mtlb_get(H,property)
+
+ [lhs,rhs]=argn()
+ win=xget("window")
+ xset("window",H)
+ if rhs==1 then
+ else
+ v=[]
+ select convstr(property)
+ case "backingstore" then
+ case "color" then
+ case "colormap" then
+ v=xget("colormap")
+ case "currentaxes" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "currentcharacter" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "currentmenu" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "currentobject" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "currentpoint" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "fixedcolors" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "inverthardcopy" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "keypressfcn" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "menubar" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "mincolormap" then
+ v=xget("colormap")
+ v=size(v,1)
+ case "name" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "nextplot" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "numbertitle" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "paperunits" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "paperorientation" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "paperposition" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "papersize" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "papertype" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "pointer" then
+ v="arrow"
+ case "position" then
+ o=xget("wpos")
+ sz=xget("wdim")
+ v=[o(:);sz(:)]'
+ case "resize" then
+ v="on"
+ case "resizefcn" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "selectiontype" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "sharecolors" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "units" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "windowbuttondownfcn" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "windowbuttonmotionfcn" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "windowbuttonupfcn" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "buttondownfcn" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "children" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "clipping" then
+ v=xget("clipping")
+ if v(1)<>0 then v="on",else v="off",end
+ case "interruptible" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "parent" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "type" then
+ v="figure"
+ case "userdata" then
+ error(msprintf(gettext("%s: No equivalent for ''%s'' property.\n"), "mtlb_get", property));
+ case "visible" then
+ v="on"
+ end
+ end
+ xset("window",win)
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_grid.bin b/modules/compatibility_functions/macros/mtlb_grid.bin
new file mode 100755
index 000000000..9589ed3a6
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_grid.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_grid.sci b/modules/compatibility_functions/macros/mtlb_grid.sci
new file mode 100755
index 000000000..62884a5e2
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_grid.sci
@@ -0,0 +1,61 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_grid(arg1,arg2)
+ // Emulation function for Matlab grid
+
+ rhs=argn(2)
+ if rhs<=0 then // toggle
+ a=gca();
+ if and(a.grid==[-1 -1]) then
+ a.grid=[1 1]
+ else
+ a.grid=[-1 -1]
+ end
+ elseif rhs==1 then
+ if type(arg1)==9 then // toggle
+ if and(arg1.grid==[-1 -1]) then
+ arg1.grid=[1 1]
+ else
+ arg1.grid=[-1 -1]
+ end
+ else
+ a=gca();
+ if arg1=="on" then
+ a.grid=[1 1]
+ elseif arg1=="off" then
+ a.grid=[-1 -1]
+ elseif arg1=="minor" then
+ warning(msprintf(gettext("%s: No minor grid in Scilab.\n"), "mtlb_grid"));
+ if and(a.grid==[-1 -1]) then
+ a.grid=[1 1]
+ else
+ a.grid=[-1 -1]
+ end
+ else
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: ''%s'', ''%s'' or ''%s'' expected.\n"), "mtlb_grid", 1, "on", "off", "minor"));
+ end
+ end
+ elseif rhs==2 then
+ if arg2=="on" then
+ arg1.grid=[1 1]
+ elseif arg2=="off" then
+ arg1.grid=[-1 -1]
+ elseif arg2=="minor" then
+ warning(msprintf(gettext("%s: No minor grid in Scilab.\n"), "mtlb_grid"));
+ if and(arg1.grid==[-1 -1]) then
+ arg1.grid=[1 1]
+ else
+ arg1.grid=[-1 -1]
+ end
+ else
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: ''%s'', ''%s'' or ''%s'' expected.\n"), "mtlb_grid", 2, "on", "off", "minor"));
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_hold.bin b/modules/compatibility_functions/macros/mtlb_hold.bin
new file mode 100755
index 000000000..353c3683b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_hold.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_hold.sci b/modules/compatibility_functions/macros/mtlb_hold.sci
new file mode 100755
index 000000000..c54d55319
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_hold.sci
@@ -0,0 +1,30 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_hold(flag)
+ // Emulation function for Matlab hold()
+
+ rhs=argn(2)
+ if rhs<=0 then
+ a=gca();
+ if a.auto_clear=="off" then
+ a.auto_clear="on"
+ else
+ a.auto_clear="off"
+ end
+ else
+ if flag=="on" then
+ a=gca();a.auto_clear="off"
+ elseif flag=="off" then
+ a=gca();a.auto_clear="on"
+ else
+ error(msprintf(gettext("%s: Not yet implemented.\n"),"mtlb_hold"))
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_i.bin b/modules/compatibility_functions/macros/mtlb_i.bin
new file mode 100755
index 000000000..165f125b7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_i.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_i.sci b/modules/compatibility_functions/macros/mtlb_i.sci
new file mode 100755
index 000000000..7c60c21db
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_i.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function a=mtlb_i(a,i,b)
+ if size(a,1)==1 then
+ a(i)=matrix(b,1,size(b,"*"))
+ elseif size(a,2)==1 then
+ a(i)=matrix(b,size(b,"*"),1)
+ else
+ a(i)=b
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_ifft.bin b/modules/compatibility_functions/macros/mtlb_ifft.bin
new file mode 100755
index 000000000..6020ccfe5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_ifft.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_ifft.sci b/modules/compatibility_functions/macros/mtlb_ifft.sci
new file mode 100755
index 000000000..87eb3c095
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_ifft.sci
@@ -0,0 +1,81 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_ifft(x,n,job)
+ // Translation function for ifft() Matlab function
+ // Number of RHS arguments: 1 <= rhs <= 3
+ // Number of LHS arguments: lhs = 1
+
+ [lhs,rhs]=argn(0)
+ if size(x,"*")==0 then
+ r=[]
+ return
+ end
+ if rhs<2 then n=[],end
+ if rhs==3 then //row or column-wise fft
+ select job
+ case 1 then //row-wise
+ if n<>[] then //pad or truncate
+ s=size(x,1)
+ if s>n then //truncated fft
+ x=x(1:n,:)
+ elseif s<n then //padd with zeros
+ x(n,:)=0
+ end
+ end
+ r=[]
+ for xk=x
+ r=[r fft(xk,1)]
+ end
+ case 2 then //column-wise
+ if n<>[] then //pad or truncate
+ s=size(x,2)
+ if s>n then //truncated fft
+ x=x(:,1:n)
+ elseif s<n then //padd with zeros
+ x(:,n)=0
+ end
+ end
+ r=[]
+ for k=1:size(x,1)
+ r=[r;fft(x(k,:),1)]
+ end
+ end
+ else
+ if min(size(x))==1 then //fft of a vector
+ if n<>[] then //pad or truncate
+ s=size(x,"*")
+ if s>n then //truncated fft
+ x=x(1:n)
+ elseif s<n then //padd with zeros
+ x(n)=0
+ end
+ r=fft(x,1)
+ if s==1 then
+ r=r.'
+ end
+ else
+ r=fft(x,1)
+ end
+ else //row-wise fft
+ if n<>[] then //pad or truncate
+ s=size(x,1)
+ if s>n then //truncated fft
+ x=x(1:n,:)
+ elseif s<n then //padd with zeros
+ x(n,:)=0
+ end
+ end
+ r=[]
+ for xk=x
+ r=[r fft(xk,1)]
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_image.bin b/modules/compatibility_functions/macros/mtlb_image.bin
new file mode 100755
index 000000000..4d15f40aa
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_image.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_image.sci b/modules/compatibility_functions/macros/mtlb_image.sci
new file mode 100755
index 000000000..db26c6ff4
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_image.sci
@@ -0,0 +1,23 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2001 - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function h=mtlb_image(varargin)
+ h=xget("window")
+ //find first propertyname position
+ Rhs=size(varargin)
+ for k=1:Rhs
+ if type(varargin(k))==10 then
+ Rhs=k-1
+ break,
+ end
+ end
+ //Only C argument taken into account.
+ C=varargin(Rhs)
+ Matplot(C)
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_imp.bin b/modules/compatibility_functions/macros/mtlb_imp.bin
new file mode 100755
index 000000000..25aeba8b3
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_imp.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_imp.sci b/modules/compatibility_functions/macros/mtlb_imp.sci
new file mode 100755
index 000000000..11636318b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_imp.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_imp(a,b,c)
+ // Emulation function for Matlab colon
+
+ [lhs,rhs]=argn();
+
+ if rhs==2 then
+ if a==[] | b==[] then
+ y=[]
+ else
+ y=a:b
+ end
+ else
+ if a==[] | b==[] | c==[] then
+ y=[]
+ else
+ y=a:b:c
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_int16.bin b/modules/compatibility_functions/macros/mtlb_int16.bin
new file mode 100755
index 000000000..22c9b821c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_int16.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_int16.sci b/modules/compatibility_functions/macros/mtlb_int16.sci
new file mode 100755
index 000000000..4c8200b17
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_int16.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function i=mtlb_int16(x)
+ // Emulation function for Matlab int16()
+
+ if x==%inf then
+ i=32767
+ elseif x==-%inf then
+ i=-32768
+ elseif isnan(x) then
+ i=0
+ else
+ i=int16(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_int32.bin b/modules/compatibility_functions/macros/mtlb_int32.bin
new file mode 100755
index 000000000..786997703
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_int32.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_int32.sci b/modules/compatibility_functions/macros/mtlb_int32.sci
new file mode 100755
index 000000000..29fa09202
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_int32.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function i=mtlb_int32(x)
+ // Emulation function for Matlab int32()
+
+ if x==%inf then
+ i=2147483647
+ elseif x==-%inf then
+ i=-2147483648
+ elseif isnan(x) then
+ i=0
+ else
+ i=int32(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_int8.bin b/modules/compatibility_functions/macros/mtlb_int8.bin
new file mode 100755
index 000000000..1edf14cc2
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_int8.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_int8.sci b/modules/compatibility_functions/macros/mtlb_int8.sci
new file mode 100755
index 000000000..6d1f13660
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_int8.sci
@@ -0,0 +1,20 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function i=mtlb_int8(x)
+ // Emulation function for Matlab int8()
+
+ if x==%inf then
+ i=127
+ elseif x==-%inf then
+ i=-128
+ else
+ i=int8(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_is.bin b/modules/compatibility_functions/macros/mtlb_is.bin
new file mode 100755
index 000000000..a4729fe91
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_is.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_is.sci b/modules/compatibility_functions/macros/mtlb_is.sci
new file mode 100755
index 000000000..aa7603a7d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_is.sci
@@ -0,0 +1,56 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function str=mtlb_is(sto,sfrom,i,j)
+ //emulate the matlab syntax sto(i [,j])=sfrom for strings
+ [lhs,rhs]=argn()
+
+ [mto,nto]=size(sto)
+ // convert sto to a regular matrix
+ if type(sto)==10 then
+ if nto<>1 then error(msprintf(gettext("%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"),"mtlb_is",1)),end
+ if mto==1 then
+ lnto=length(sto)
+ sto=ascii(sto)
+ else
+ lnto=max(length(sto))
+ sto=matrix(ascii(part(sto,1:lnto)),lnto,mto)'
+ end
+ typeout=10
+ else
+ typeout=1
+ end
+
+ [mfrom,nfrom]=size(sfrom)
+ // convert sfrom to a regular matrix
+ if type(sfrom)==10 then
+ if nfrom<>1 then error(msprintf(gettext("%s: Wrong size for input argument #%d: Matlab vector of strings expected.\n"),"mtlb_is",2)),end
+ if mfrom==1 then
+ lnfrom=length(sfrom)
+ sfrom=ascii(sfrom)
+ else
+ lnfrom=max(length(sfrom))
+ sfrom=matrix(ascii(part(sfrom,1:lnfrom)),lnfrom,mfrom)'
+ end
+ end
+ //insert
+ if rhs==4 then
+ sto(i,j)=sfrom
+ else
+ sto(i)=sfrom
+ if sfrom==[] then sto=sto',end
+ end
+ if typeout==10 then
+ // convert back
+ str=[]
+ for k=1:size(sto,1)
+ str=[str;ascii(sto(k,:))]
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_isa.bin b/modules/compatibility_functions/macros/mtlb_isa.bin
new file mode 100755
index 000000000..6ee702e56
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isa.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_isa.sci b/modules/compatibility_functions/macros/mtlb_isa.sci
new file mode 100755
index 000000000..5f2530e0b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isa.sci
@@ -0,0 +1,47 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_isa(OBJ,class)
+ select class
+ case "logical"
+ r=type(OBJ)==4
+ case "char"
+ r=type(OBJ)==10
+ case "numeric"
+ r=or(type(OBJ)==[1,5,8])
+ case "int8"
+ r=typeof(OBJ)=="int8"
+ case "uint8"
+ r=typeof(OBJ)=="uint8"
+ case "int16"
+ r=typeof(OBJ)=="int16"
+ case "uint16"
+ r=typeof(OBJ)=="uint16"
+ case "int32"
+ r=typeof(OBJ)=="int32"
+ case "uint32"
+ r=typeof(OBJ)=="uint32"
+ case "single"
+ r=type(OBJ)==1
+ case "double"
+ r=type(OBJ)==1
+ case "cell"
+ r=typeof(OBJ)=="ce"
+ case "struct"
+ r=typeof(OBJ)=="st"
+ case "function_handle"
+ r=type(OBJ)==13
+ case "sparse"
+ r=type(OBJ)==5
+ case "lti"
+ r=typeof(OBJ)=="state-space"
+ else
+ error(msprintf(gettext("%s: Unhandled class ''%s''.\n"),"mtlb_isa",class));
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_isfield.bin b/modules/compatibility_functions/macros/mtlb_isfield.bin
new file mode 100755
index 000000000..43c90f7c7
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isfield.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_isfield.sci b/modules/compatibility_functions/macros/mtlb_isfield.sci
new file mode 100755
index 000000000..af7bc499a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isfield.sci
@@ -0,0 +1,20 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [tf]=mtlb_isfield(st,f)
+ // Emulation function for dir() Matlab function
+
+ if typeof(st)<>"st" then
+ tf=%f;
+ return
+ end
+
+ allf=getfield(1,st);
+ tf=or(allf(3:$)==f);
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_isletter.bin b/modules/compatibility_functions/macros/mtlb_isletter.bin
new file mode 100755
index 000000000..956adada0
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isletter.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_isletter.sci b/modules/compatibility_functions/macros/mtlb_isletter.sci
new file mode 100755
index 000000000..c5e228f2d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isletter.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function tf=mtlb_isletter(A)
+ // Translation function for isletter() Matlab function
+
+ if type(A)==10 then
+ tf = (asciimat(A)>=65&asciimat(A)<=90)|(asciimat(A)>=97&asciimat(A)<=122)
+ else
+ tf = zeros(A)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_isspace.bin b/modules/compatibility_functions/macros/mtlb_isspace.bin
new file mode 100755
index 000000000..aeba6131b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isspace.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_isspace.sci b/modules/compatibility_functions/macros/mtlb_isspace.sci
new file mode 100755
index 000000000..75b6f999a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_isspace.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_isspace(x)
+ // Emulation function for isspace() Matlab function
+
+ if type(x)==10 then
+ y=asciimat(x)==32
+ else
+ y=zeros(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_l.bin b/modules/compatibility_functions/macros/mtlb_l.bin
new file mode 100755
index 000000000..4ba2cbbbc
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_l.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_l.sci b/modules/compatibility_functions/macros/mtlb_l.sci
new file mode 100755
index 000000000..b03b86387
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_l.sci
@@ -0,0 +1,29 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_l(a,b)
+ // Emulation function for Matlab left division
+
+ if type(a)==10 then
+ a=asciimat(a)
+ end
+ if type(b)==10 then
+ b=asciimat(b)
+ end
+
+ if or(type(a)==[4,6]) then
+ a=bool2s(a)
+ end
+ if or(type(b)==[4,6]) then
+ b=bool2s(b)
+ end
+
+ y=a\b
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_legendre.bin b/modules/compatibility_functions/macros/mtlb_legendre.bin
new file mode 100755
index 000000000..ecefece46
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_legendre.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_legendre.sci b/modules/compatibility_functions/macros/mtlb_legendre.sci
new file mode 100755
index 000000000..ff0b3a2dd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_legendre.sci
@@ -0,0 +1,54 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_legendre(n,x,flag)
+ // Emulation function for legendre() Matlab function
+
+ rhs=argn(2)
+ if ndims(n) <> 2 | size(n,"*") <> 1 | floor(n)-n <> 0 | n<0 then
+ error(msprintf(gettext("%s: Wrong value for input argument #%d: A positive integer value expected.\n"),"mtlb_legendre",1));
+ end
+
+ m = 0:n;
+ xtemp = matrix(x,1,-1);
+ xone=find(xtemp==1);
+ xminusone=find(xtemp==-1);
+ xtemp(xone)=nearfloat("pred",1);
+ xtemp(xminusone)=nearfloat("succ",-1);
+ y = legendre(n,m,xtemp);
+
+ if (rhs == 2) then
+ y = legendre(n,m,xtemp);
+ elseif rhs == 3 then
+ if flag == "norm" then
+ y = legendre(n,m,xtemp,"norm");
+ elseif flag == "sch" then
+ y = legendre(n,m,xtemp);
+ if n == 0
+ y = ones(y);
+ else
+ for j = 1:size(x,"*")
+ for i = 1:n+1
+ if modulo(i,n+1) <> 1 then
+ y((j-1)*(n+1)+i) = (-1)^m(i)*sqrt(2*prod(1:(n-m(i)))/prod(1:(n+m(i))))*y((j-1)*(n+1)+i);
+ end
+ end
+ end
+ end
+ end
+ end
+
+ if n==0 then
+ y = matrix(y,size(x));
+ elseif ndims(x)>2 | (ndims(x) == 2 & size(x,1)>1 & size(x,2)>1) then
+ y = matrix(y,[n+1 size(x)]);
+ else
+ y = matrix(y,[n+1 size(x,"*")]);
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_linspace.bin b/modules/compatibility_functions/macros/mtlb_linspace.bin
new file mode 100755
index 000000000..0d61c97ba
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_linspace.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_linspace.sci b/modules/compatibility_functions/macros/mtlb_linspace.sci
new file mode 100755
index 000000000..dbce79f64
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_linspace.sci
@@ -0,0 +1,51 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_linspace(a,b,n)
+ // Emulation function for linspace() Matlab function
+
+ str=%F
+ if type(a)==10 then
+ a=asciimat(a)
+ str=%T
+ end
+ if type(b)==10 then
+ b=asciimat(b)
+ str=%T
+ end
+
+ if or(type(a)==[4,6]) then
+ a=bool2s(a)
+ end
+ if or(type(b)==[4,6]) then
+ b=bool2s(b)
+ end
+
+ [lhs,rhs]=argn(0)
+
+ if rhs==2 then
+ if str then
+ y=ascii(linspace(a,b))
+ else
+ y=linspace(a,b)
+ end
+ else
+ if type(n)==10 then
+ n=asciimat(n)
+ end
+ if or(type(n)==[4,6]) then
+ n=bool2s(n)
+ end
+ if str then
+ y=ascii(linspace(a,b,n))
+ else
+ y=linspace(a,b,n)
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_logic.bin b/modules/compatibility_functions/macros/mtlb_logic.bin
new file mode 100755
index 000000000..a3802e7d4
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_logic.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_logic.sci b/modules/compatibility_functions/macros/mtlb_logic.sci
new file mode 100755
index 000000000..d749a1941
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_logic.sci
@@ -0,0 +1,48 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_logic(a,op,b)
+ // Emulation function for Matlab logical operators
+
+ // Because isreal function does not work with Boolean values
+ if or(type(a)==[4,6]) then
+ a=bool2s(a)
+ end
+ if or(type(b)==[4,6]) then
+ b=bool2s(b)
+ end
+
+ // Because <, >, <=, and >= operators do not work with complex values
+ if or(op==["<",">","<=",">="]) then
+ if ~isreal(a) then
+ a=real(a)
+ end
+ if ~isreal(b) then
+ b=real(b)
+ end
+ end
+
+ if a==[] | b==[] then
+ y=[]
+ else
+ if op=="==" then
+ y=a==b
+ elseif op=="<" then
+ y=a<b
+ elseif op==">" then
+ y=a>b
+ elseif op=="<=" then
+ y=a<=b
+ elseif op==">=" then
+ y=a>=b
+ else
+ y=a~=b
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_logical.bin b/modules/compatibility_functions/macros/mtlb_logical.bin
new file mode 100755
index 000000000..a66441fcc
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_logical.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_logical.sci b/modules/compatibility_functions/macros/mtlb_logical.sci
new file mode 100755
index 000000000..9c17177d5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_logical.sci
@@ -0,0 +1,23 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function K=mtlb_logical(A)
+ // Emulation function for Matlab logical()
+
+ if isempty(A) then
+ K=[]
+ elseif or(type(A)==[4,6]) then
+ K=A
+ else
+ if type(A)==10 then
+ A=mstr2sci(A)
+ end
+ K=A<>0
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_loglog.bin b/modules/compatibility_functions/macros/mtlb_loglog.bin
new file mode 100755
index 000000000..b2597951a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_loglog.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_loglog.sci b/modules/compatibility_functions/macros/mtlb_loglog.sci
new file mode 100755
index 000000000..ffbdbadca
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_loglog.sci
@@ -0,0 +1,15 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_loglog(varargin)
+ global mtlb_log_mod
+ mtlb_log_mod="ll"
+ mtlb_plot(varargin(:))
+ mtlb_log_mod=[]
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_lower.bin b/modules/compatibility_functions/macros/mtlb_lower.bin
new file mode 100755
index 000000000..6d999eb38
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_lower.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_lower.sci b/modules/compatibility_functions/macros/mtlb_lower.sci
new file mode 100755
index 000000000..24a8a6e9c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_lower.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=mtlb_lower(y)
+ // Emulation function for lower() Matlab function
+
+ if type(y)==10 then
+ x=convstr(y,"l");
+ else
+ x=y
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_max.bin b/modules/compatibility_functions/macros/mtlb_max.bin
new file mode 100755
index 000000000..6ef61ec65
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_max.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_max.sci b/modules/compatibility_functions/macros/mtlb_max.sci
new file mode 100755
index 000000000..0b46bcf25
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_max.sci
@@ -0,0 +1,155 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+// Copyright (C) 2012 - Scilab Enterprises - Adeline CARNIS
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [r,k]=mtlb_max(a,b,c)
+ // Emulation function for max() Matlab function
+
+ [lhs,rhs]=argn(0);
+
+ if rhs==2 then
+ if type(b)==10 then
+ rhs=1
+ end
+ end
+
+ if rhs==1 then //max(A)
+ // One output arg
+ if lhs==1 then
+ if ~isreal(a,0) then
+ if size(a,1)==1|size(a,2)==1 then
+ [r,k]=max(abs(a))
+ r=a(k)
+ else
+ [r,k]=max(abs(a),"r")
+ r=[]
+ for l=1:size(a,2)
+ r=[r,a(k(l),l)]
+ end
+ end
+ else
+ if size(a,1)==1|size(a,2)==1 then
+ r=max(a)
+ else
+ r=max(a,"r")
+ end
+ end
+ else
+ if ~isreal(a,0) then
+ if size(a,1)==1|size(a,2)==1 then
+ [r,k]=max(abs(a))
+ r=a(k)
+ else
+ [r,k]=max(abs(a),"r")
+ r=[]
+ for l=1:size(a,2)
+ r=[r,a(k(l),l)]
+ end
+ end
+ else
+ if size(a,1)==1|size(a,2)==1 then
+ [r,k]=max(a)
+ else
+ [r,k]=max(a,"r")
+ end
+ end
+ end
+ // max(A,B) A and B have the same size
+ elseif rhs==2 then
+ // Only one output arg is possible...
+ if lhs > 1 then
+ error(msprintf(gettext("%s: Wrong number of output argument(s): %d expected.\n"),"mtlb_max", 1));
+ end
+
+ // Special case if A==[] and B==[]
+ if isempty(a) & isempty(b) then
+ r=[]
+ return
+ end
+
+ if ~isreal(a)|~isreal(b) then
+ if ~isreal(a,0) & isreal(b,0) then
+ [r,k]=max(abs(a),b)
+ for m=1:size(a,1)
+ for n=1:size(a,2)
+ if k(m,n)==1 then
+ r(m,n)=a(m,n)
+ end
+ end
+ end
+ elseif isreal(a,0)&~isreal(b,0) then
+ [r,k]=max(a,abs(b))
+ for m=1:size(a,1)
+ for n=1:size(a,2)
+ if k(m,n)==2 then
+ r(m,n)=b(m,n)
+ end
+ end
+ end
+ else
+ [r,k]=max(abs(a),abs(b))
+ for m=1:size(a,1)
+ for n=1:size(a,2)
+ if k(m,n)==1 then
+ r(m,n)=a(m,n)
+ else
+ r(m,n)=b(m,n)
+ end
+ end
+ end
+ end
+ else
+ r = max(a,b)
+ end
+ // max(a,[],num) with num>2 or num is a variable name
+ elseif rhs==3 then
+ //If num>number of dims of a
+ if c>size(size(a),2) then
+ r=a
+ k=ones(size(a,1),size(a,2))
+ else
+ if c==1 then
+ c="r"
+ else
+ c="c"
+ end
+ if isreal(a) then
+ // a is a complex value
+ [r,k]=max(a,c)
+ else
+ [r,k]=max(abs(a),c)
+ // Replace values in r by original values of a
+ if find(size(k)<>1)==[] then //Scalar
+ r=a(k)
+ elseif size(k,1)==1 then // Row Vector
+ r=[]
+ for l=1:size(k,"*")
+ r=[r,a(k(l),l)]
+ end
+ elseif size(k,2)==1 then // Column Vector
+ r=[]
+ for l=1:size(k,"*")
+ r=[r;a(l,k(l))]
+ end
+ else
+ r=[]
+ for m=1:size(k,1)
+ tmp=[]
+ for n=1:size(k,2)
+ tmp=[tmp,a(k(m,n),n)];
+ end
+ r=[r;tmp]
+ end
+ end
+ end
+ end
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_mean.bin b/modules/compatibility_functions/macros/mtlb_mean.bin
new file mode 100755
index 000000000..d6866fc42
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_mean.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_mean.sci b/modules/compatibility_functions/macros/mtlb_mean.sci
new file mode 100755
index 000000000..d62cbf094
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_mean.sci
@@ -0,0 +1,16 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function m = mtlb_mean(x) ;
+ if or(size(x)==1) then
+ m=mean(x)
+ else
+ m=mean(x,"r")
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_median.bin b/modules/compatibility_functions/macros/mtlb_median.bin
new file mode 100755
index 000000000..81bd9161c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_median.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_median.sci b/modules/compatibility_functions/macros/mtlb_median.sci
new file mode 100755
index 000000000..6aa1701a9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_median.sci
@@ -0,0 +1,16 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_median(a)
+ if or(size(a)==1) then
+ r=median(a)
+ else
+ r=median(a,"r")
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_mesh.bin b/modules/compatibility_functions/macros/mtlb_mesh.bin
new file mode 100755
index 000000000..0acc6cb22
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_mesh.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_mesh.sci b/modules/compatibility_functions/macros/mtlb_mesh.sci
new file mode 100755
index 000000000..493cf6f1f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_mesh.sci
@@ -0,0 +1,69 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_mesh(varargin)
+ //la couleur n'est pas traitee
+ nv=size(varargin)
+ select nv
+ case 1 then //mesh(Z)
+ Z=varargin(1)
+ [m,n]=size(Z)
+ plot3d(1:m,1:n,Z,45,35," ",[8,2,4])
+ case 2 then //mesh(Z,C) or //mesh(Z,view)
+ if min(size(varargin(2)))==1 then //mesh(Z,view)
+ Z=varargin(1)
+ view=varargin(2)
+ [m,n]=size(Z)
+ plot3d(1:m,1:n,Z,view(1),view(2)," ",[8,2,4])
+ else
+ Z=varargin(1)
+ [m,n]=size(Z)
+ plot3d(1:m,1:n,Z,45,35," ",[8,2,4])
+ end
+ case 3 then //mesh(X,Y,Z) or mesh(x,y,Z)
+ if min(size(varargin(1)))==1 then //mesh(x,y,Z)
+ plot3d(varargin([2 1 3]),45,35," ",[8,2,4])
+ else //mesh(X,Y,Z)
+ [X,Y,Z]=varargin(1:3)
+ [nr,nc]=size(Z)
+ indy=(ones(1,nc-1).*.[0;1;1;0]+(1:nc-1).*.[1;1;1;1]).*.ones(1,nr-1);
+ indx=ones(1,nc-1).*.(ones(1,nr-1).*.[0;0;1;1]+(1:nr-1).*.[1;1;1;1]);
+ [nrl,nrc]=size(indx)
+ indx=matrix(indx,nrl*nrc,1);
+ indy=matrix(indy,nrl*nrc,1);
+ indz=indx+(nr)*(indy-1*ones(indy));
+ Z=matrix(Z(indz),4,nrl*nrc/4);
+ X=matrix(X(indz),4,nrl*nrc/4);
+ Y=matrix(Y(indz),4,nrl*nrc/4);
+ plot3d(X,Y,Z,45,35," ",[8,2,4])
+ end
+ case 4 then //mesh(X,Y,Z,C) or mesh(x,y,Z,C) or mesh(X,Y,Z,view) or mesh(x,y,Z,view)
+ if min(size(varargin(4)))==1 then //mesh(..,view)
+ view=varargin(4)
+ else
+ view=[45,35]
+ end
+ if min(size(varargin(1)))==1 then //mesh(x,y,Z,..)
+ plot3d(varargin([2 1 3]),view(1),view(2)," ",[8,2,4])
+ else //mesh(X,Y,Z,..)
+ [X,Y,Z]=varargin(1:3)
+ [nr,nc]=size(Z)
+ indy=(ones(1,nc-1).*.[0;1;1;0]+(1:nc-1).*.[1;1;1;1]).*.ones(1,nr-1);
+ indx=ones(1,nc-1).*.(ones(1,nr-1).*.[0;0;1;1]+(1:nr-1).*.[1;1;1;1]);
+ [nrl,nrc]=size(indx)
+ indx=matrix(indx,nrl*nrc,1);
+ indy=matrix(indy,nrl*nrc,1);
+ indz=indx+(nr)*(indy-1*ones(indy));
+ Z=matrix(Z(indz),4,nrl*nrc/4);
+ X=matrix(X(indz),4,nrl*nrc/4);
+ Y=matrix(Y(indz),4,nrl*nrc/4);
+ plot3d(X,Y,Z,view(1),view(2)," ",[8,2,4])
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_meshdom.bin b/modules/compatibility_functions/macros/mtlb_meshdom.bin
new file mode 100755
index 000000000..9ee445b6e
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_meshdom.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_meshdom.sci b/modules/compatibility_functions/macros/mtlb_meshdom.sci
new file mode 100755
index 000000000..27d174b27
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_meshdom.sci
@@ -0,0 +1,16 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [X,Y]=mtlb_meshdom(x,y)
+ [lhs,rhs]=argn()
+ x=matrix(x,1,-1);
+ y=matrix(y,-1,1);
+ X=ones(y)*x
+ Y=y($:-1:1)*ones(x)
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_min.bin b/modules/compatibility_functions/macros/mtlb_min.bin
new file mode 100755
index 000000000..8ae9928c8
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_min.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_min.sci b/modules/compatibility_functions/macros/mtlb_min.sci
new file mode 100755
index 000000000..6266ef241
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_min.sci
@@ -0,0 +1,157 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+// Copyright (C) 2012 - Scilab Enterprises - Adeline CARNIS
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [r,k]=mtlb_min(a,b,c)
+ // Copyright INRIA
+ // Emulation function for min() Matlab function
+ // V.C.
+
+ [lhs,rhs]=argn(0);
+
+ if rhs==2 then
+ if type(b)==10 then
+ rhs=1
+ end
+ end
+
+ if rhs==1 then //min(A)
+ // One output arg
+ if lhs==1 then
+ if ~isreal(a,0) then
+ if size(a,1)==1|size(a,2)==1 then
+ [r,k]=min(abs(a))
+ r=a(k)
+ else
+ [r,k]=min(abs(a),"r")
+ r=[]
+ for l=1:size(a,2)
+ r=[r,a(k(l),l)]
+ end
+ end
+ else
+ if size(a,1)==1|size(a,2)==1 then
+ r=min(a)
+ else
+ r=min(a,"r")
+ end
+ end
+ else
+ if ~isreal(a,0) then
+ if size(a,1)==1|size(a,2)==1 then
+ [r,k]=min(abs(a))
+ r=a(k)
+ else
+ [r,k]=min(abs(a),"r")
+ r=[]
+ for l=1:size(a,2)
+ r=[r,a(k(l),l)]
+ end
+ end
+ else
+ if size(a,1)==1|size(a,2)==1 then
+ [r,k]=min(a)
+ else
+ [r,k]=min(a,"r")
+ end
+ end
+ end
+ // min(A,B) A and B have the same size
+ elseif rhs==2 then
+ // Only one output arg is possible...
+ if lhs > 1 then
+ error(msprintf(gettext("%s: Wrong number of output argument(s): %d expected.\n"),"mtlb_min", 1));
+ end
+
+ // Special case if A==[] and B==[]
+ if isempty(a) | isempty(b) then
+ r=[]
+ return
+ end
+
+ if ~isreal(a)|~isreal(b) then
+ if ~isreal(a,0)&isreal(b,0) then
+ [r,k]=min(abs(a),b)
+ for m=1:size(a,1)
+ for n=1:size(a,2)
+ if k(m,n)==1 then
+ r(m,n)=a(m,n)
+ end
+ end
+ end
+ elseif isreal(a,0)&~isreal(b,0) then
+ [r,k]=min(a,abs(b))
+ for m=1:size(a,1)
+ for n=1:size(a,2)
+ if k(m,n)==2 then
+ r(m,n)=b(m,n)
+ end
+ end
+ end
+ else
+ [r,k]=min(abs(a),abs(b))
+ for m=1:size(a,1)
+ for n=1:size(a,2)
+ if k(m,n)==1 then
+ r(m,n)=a(m,n)
+ else
+ r(m,n)=b(m,n)
+ end
+ end
+ end
+ end
+ else
+ r = min(a,b)
+ end
+ // min(a,[],num) with num>2 or num is a variable name
+ elseif rhs==3 then
+ //If num>number of dims of a
+ if c>size(size(a),2) then
+ r=a
+ k=ones(size(a,1),size(a,2))
+ else
+ if c==1 then
+ c="r"
+ else
+ c="c"
+ end
+ if isreal(a) then
+ // a is a complex value
+ [r,k]=min(a,c)
+ else
+ [r,k]=min(abs(a),c)
+ // Replace values in r by original values of a
+ if find(size(k)<>1)==[] then //Scalar
+ r=a(k)
+ elseif size(k,1)==1 then // Row Vector
+ r=[]
+ for l=1:size(k,"*")
+ r=[r,a(k(l),l)]
+ end
+ elseif size(k,2)==1 then // Column Vector
+ r=[]
+ for l=1:size(k,"*")
+ r=[r;a(l,k(l))]
+ end
+ else
+ r=[]
+ for m=1:size(k,1)
+ tmp=[]
+ for n=1:size(k,2)
+ tmp=[tmp,a(k(m,n),n)];
+ end
+ r=[r;tmp]
+ end
+ end
+ end
+ end
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_more.bin b/modules/compatibility_functions/macros/mtlb_more.bin
new file mode 100755
index 000000000..c9a0d1dc9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_more.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_more.sci b/modules/compatibility_functions/macros/mtlb_more.sci
new file mode 100755
index 000000000..edcc38b62
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_more.sci
@@ -0,0 +1,20 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function []=mtlb_more(in)
+ // Emulation function for more() Matlab function
+
+ if in=="''off''" then
+ lines(0)
+ elseif in=="''on''" then
+ lines(60)
+ else
+ lines(n)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_num2str.bin b/modules/compatibility_functions/macros/mtlb_num2str.bin
new file mode 100755
index 000000000..8c59ea520
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_num2str.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_num2str.sci b/modules/compatibility_functions/macros/mtlb_num2str.sci
new file mode 100755
index 000000000..4ba38c27f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_num2str.sci
@@ -0,0 +1,31 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [str] = mtlb_num2str(x, f)
+ // Emulation function for Matlab num2str()
+
+ rhs = argn(2);
+
+ if rhs == 1 then // num2str(x)
+ if isempty(x) then
+ str = "";
+ else
+ str = string(x);
+ end
+ else
+ if type(f) == 10 & (size(f, "*") == 1) then
+ str = msprintf(f, x);
+ else
+ error(msprintf(gettext("%s: Not yet implemented.\n"), "mtlb_num2str"));
+ end
+ end
+
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_ones.bin b/modules/compatibility_functions/macros/mtlb_ones.bin
new file mode 100755
index 000000000..8bc44afc0
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_ones.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_ones.sci b/modules/compatibility_functions/macros/mtlb_ones.sci
new file mode 100755
index 000000000..73185dcb8
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_ones.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_ones(a)
+ // Emulation function for ones() Matlab function
+
+ if and(size(a)==[1 1]) then
+ r=ones(a,a)
+ else
+ tmp=list()
+ for k=1:size(a,"*")
+ tmp(k)=a(k)
+ end
+ r=ones(tmp(1:$))
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_pcolor.bin b/modules/compatibility_functions/macros/mtlb_pcolor.bin
new file mode 100755
index 000000000..13ab94b5d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_pcolor.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_pcolor.sci b/modules/compatibility_functions/macros/mtlb_pcolor.sci
new file mode 100755
index 000000000..d6f8168c2
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_pcolor.sci
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Serge STEER
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function h=mtlb_pcolor(varargin)
+ h=xget("window")
+ //find first propertyname position
+ Rhs=size(varargin)
+ for k=1:Rhs
+ if type(varargin(k))==10 then
+ Rhs=k-1
+ break,
+ end
+ end
+ C=varargin(Rhs)'
+ if Rhs==3 then
+ grayplot(varargin(1:2),C)
+ else
+ grayplot(1:size(C,1),1:size(C,2),C)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_plot.bin b/modules/compatibility_functions/macros/mtlb_plot.bin
new file mode 100755
index 000000000..15ab7f75c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_plot.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_plot.sci b/modules/compatibility_functions/macros/mtlb_plot.sci
new file mode 100755
index 000000000..edc2d77d8
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_plot.sci
@@ -0,0 +1,243 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function h=mtlb_plot(varargin)
+ // Emulation function for Matlab plot()
+
+ // Default for Matlab graphics
+ mtlbColorOrder=[..
+ 0 0 1 ;..
+ 0 0.5 0 ;..
+ 1 0 0 ;..
+ 0 0.75 0.75;..
+ 0.75 0 0.75;..
+ 0.75 0.75 0 ;..
+ 0.25 0.25 0.25].*255;
+
+ // red green blue cyan magenta yellow black white
+ mtlbcolors=["r" ,"g" ,"b" ,"c" ,"m" ,"y" ,"k" ,"w" ]
+ scicolors= ["red","green","blue","cyan","magenta","yellow","black","white"]
+
+ mtlbmarkers=["+","o","*",".","x","s","d","^","v",">","<","p","h"]
+ scimarkers= [ 1 , 9 , 3 , 0 , 2 , -1, 5 , 6 , 7 , -1, -1, -1, -1]
+
+ mtlblinestyles=["-","--",":","-."]
+ scilinestyles= [ 1 , 2 , -1, 5 ]
+
+ // plot(axes_handle,...)
+ if type(varargin(1))==9 then
+ set("current_axes",varargin(1))
+ varargin(1)=null()
+ end
+
+
+ mtlbColor=mtlbColorOrder(1,:)
+ colorIndex=1
+
+ // plot(Y)
+ if lstsize(varargin)==1 then
+ mtlb_plotY(varargin(1))
+ elseif lstsize(varargin)==2 then
+
+ // plot(Y,Linespec)
+ if type(varargin(2))==10 then
+ mtlb_plotY(varargin(1))
+ curh=gce()
+ curh=curh.children(1)
+ mstyl=linespec2sci(varargin(2),curh)
+ if ~isempty(mstyl) then
+ mtlb_plotY(varargin(1))
+ a=gca()
+ markplot=a.children(1)
+ markplot.children(1).mark_mode="on"
+ markplot.children(1).mark_style=mstyl
+ end
+ if colorIndex<>7 then
+ colorIndex=colorIndex+1;
+ else
+ colorIndex=1;
+ end
+ mtlbColor=mtlbColorOrder(colorIndex,:);
+ // plot(X,Y)
+ else
+ mtlb_plotXY(varargin(1),varargin(2))
+ if colorIndex<>7 then
+ colorIndex=colorIndex+1;
+ else
+ colorIndex=1;
+ end
+ mtlbColor=mtlbColorOrder(colorIndex,:);
+ end
+ // plot(X,Y,Linespec)
+ elseif lstsize(varargin)==3 & type(varargin(3))==10 then
+ mtlb_plotXY(varargin(1),varargin(2))
+ curh=gce()
+ curh=curh.children(1)
+ mstyl=linespec2sci(varargin(3),curh)
+ if ~isempty(mstyl) then
+ mtlb_plotXY(varargin(1),varargin(2))
+ a=gca()
+ markplot=a.children(1)
+ markplot.children(1).mark_mode="on"
+ markplot.children(1).mark_style=mstyl
+ end
+ if colorIndex<>7 then
+ colorIndex=colorIndex+1;
+ else
+ colorIndex=1;
+ end
+ mtlbColor=mtlbColorOrder(colorIndex,:);
+ else
+ k=1
+ while k<=lstsize(varargin)
+ if k<lstsize(varargin) & type(varargin(k))<>10 then
+ mtlb_plotXY(varargin(k),varargin(k+1))
+ set(gca(),"auto_clear","off")
+ X=varargin(k)
+ Y=varargin(k+1)
+ lineplot=gce()
+ markplot=lineplot
+ k=k+2
+ if colorIndex<>7 then
+ colorIndex=colorIndex+1;
+ else
+ colorIndex=1;
+ end
+ mtlbColor=mtlbColorOrder(colorIndex,:);
+ elseif k<=lstsize(varargin) & type(varargin(k))==10 then
+ opt=varargin(k)
+ opt=convstr(opt,"l")
+ if ~isempty(strindex("linestyle",opt)) then
+ curh=lineplot.children(1)
+ linespec2sci(varargin(k+1),curh)
+ k=k+2
+ elseif ~isempty(strindex("linewidth",opt)) then
+ lineplot.children(1).thickness=varargin(k+1)
+ k=k+2
+ elseif ~isempty(strindex("marker",opt)) then
+ curh=markplot.children(1)
+ linespec2sci(varargin(k+1),curh)
+ k=k+2
+ elseif ~isempty(strindex("markeredgecolor",opt)) then
+ warning(msprintf(gettext("%s: ''%s'' option ignored.\n"),"mtlb_plot","MarkerEdgeColor"));
+ k=k+2
+ elseif ~isempty(strindex("markerfacecolor",opt)) then
+ curh=markplot.children(1)
+ linespec2sci(varargin(k+1),curh)
+ k=k+2
+ elseif ~isempty(strindex("markersize",opt)) then
+ scimarksize=[8 10 12 14 18 24]
+ markplot.children(1).mark_size=scimarksize(max(find(scimarksize<varargin(k+1))))
+ k=k+2
+ else
+ curh=lineplot.children(1)
+ mstyl=linespec2sci(varargin(k),curh)
+ if ~isempty(mstyl) then
+ mtlb_plotXY(X,Y)
+ a=gca()
+ markplot=a.children(1)
+ markplot.children(1).mark_mode="on"
+ markplot.children(1).mark_style=mstyl
+ end
+ k=k+1
+ end
+ end
+ end
+ end
+ a=gca()
+ a.auto_clear="on"
+ // Log axis ?
+ global mtlb_log_mod
+ if ~isempty(mtlb_log_mod)
+ a.log_flags = mtlb_log_mod;
+ end
+ h=a.children
+endfunction
+
+function mtlb_plotY(Y)
+ if norm(Y,1)==0 then
+ plot2d(Y)
+ else
+ plot2d(real(Y),imag(Y))
+ end
+ e=gce()
+ e.children(1).foreground=color(mtlbColor(1),mtlbColor(2),mtlbColor(3))
+ e.children(1).line_style=1
+endfunction
+
+function mtlb_plotXY(X,Y)
+ plot2d(X,Y)
+ e=gce()
+ e.children(1).foreground=color(mtlbColor(1),mtlbColor(2),mtlbColor(3))
+ e.children(1).line_style=1
+endfunction
+
+function mark=linespec2sci(linespec,cur_handle)
+ mtlbColor=mtlbColor;
+ linep=%F
+ // line style
+ ind=[]
+ for k=1:size(mtlblinestyles,"*")
+ found=strindex(linespec,mtlblinestyles(k))
+ if ~isempty(found) then
+ ind=k
+ linep=%T
+ end
+ end
+ styl=scilinestyles(ind)
+ if styl>=0 then
+ cur_handle.line_style=styl
+ elseif ~isempty(ind) then
+ warning(msprintf(gettext("%s: Unknown line style found in ''%s'' -> set to 6.\n"),"mtlb_plot",linespec));
+ cur_handle.line_style=6
+ end
+
+ // color
+ ind=[]
+ for k=1:size(mtlbcolors,"*")
+ found=strindex(linespec,mtlbcolors(k))
+ if ~isempty(found) then
+ ind=k
+ break
+ end
+ end
+ clr=scicolors(ind)
+ if ~isempty(clr) then
+ cur_handle.foreground=color(clr)
+ mtlbColor=name2rgb(clr)
+ elseif ~isempty(ind) then
+ warning(msprintf(gettext("%s: Unknown color found in ''%s'' -> set to black.\n"),"mtlb_plot",linespec));
+ cur_handle.foreground=color("black")
+ mtlbColor=name2rgb("black")
+ end
+
+ // marker
+ ind=[]
+ for k=1:size(mtlbmarkers,"*")
+ found=strindex(linespec,mtlbmarkers(k))
+ if ~isempty(found) then
+ ind=k
+ break
+ end
+ end
+ mark=scimarkers(ind)
+ if ~linep & mark>=0 & ~isempty(mark) then
+ cur_handle.mark_mode="on"
+ cur_handle.mark_style=mark
+ cur_handle.mark_size=1
+ elseif ~linep & mark>=0 & ~isempty(mark) then
+ cur_handle.mark_mode="on"
+ cur_handle.mark_style=4
+ cur_handle.mark_size=1
+ elseif ~isempty(ind) then
+ mark=4
+ end
+ mtlbColor=resume(mtlbColor)
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_prod.bin b/modules/compatibility_functions/macros/mtlb_prod.bin
new file mode 100755
index 000000000..4a8062d3f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_prod.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_prod.sci b/modules/compatibility_functions/macros/mtlb_prod.sci
new file mode 100755
index 000000000..5789182fa
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_prod.sci
@@ -0,0 +1,31 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_prod(a,dim)
+ // Emulation function for prod() Matlab function
+
+ rhs=argn(2)
+
+ if rhs==1 then
+ // Scalar, vector or empty matrix
+ if find(size(a)==1)<>[] | find(size(a)==0)<>[] then
+ r=prod(a)
+ else
+ r=prod(a,1)
+ end
+ else
+ if dim<=size(size(a),"*") then
+ r=prod(a,dim)
+ else
+ r=a
+ end
+ end
+endfunction
+
+
diff --git a/modules/compatibility_functions/macros/mtlb_qr.bin b/modules/compatibility_functions/macros/mtlb_qr.bin
new file mode 100755
index 000000000..6a9878ac9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_qr.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_qr.sci b/modules/compatibility_functions/macros/mtlb_qr.sci
new file mode 100755
index 000000000..022314d32
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_qr.sci
@@ -0,0 +1,29 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [Q,R,E]=mtlb_qr(A,B)
+ // Emulation function for qr() Matlab function
+
+ [lhs,rhs]=argn()
+
+ if lhs<>3 then
+ error(msprintf(gettext("%s: Wrong number of output argument(s): %d expected.\n"),"mtlb_qr",3));
+ end
+ if rhs<>2 then
+ error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"),"mtlb_qr",2));
+ end
+
+ [Q,R,E] = qr(A)
+ Q = Q(:,1:min(size(A,2),size(Q,2)))
+ if find(size(A)==1)<>[] then
+ R = R(1,1:size(A,2))
+ end
+ E = (1:size(R,2))*E
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_qz.bin b/modules/compatibility_functions/macros/mtlb_qz.bin
new file mode 100755
index 000000000..3575d73a4
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_qz.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_qz.sci b/modules/compatibility_functions/macros/mtlb_qz.sci
new file mode 100755
index 000000000..69f7412fc
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_qz.sci
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [AA, BB, Q, Z, V]=mtlb_qz(A,B)
+ [lhs,rhs]=argn(0)
+ [AA, BB, Q, Z]=gschur(A,B)
+ if lhs==5 then
+ n=size(A,1)
+ LA=diag(AA)
+ LB=diag(BB)
+ V=zeros(n,n)
+ for k=1:n
+ K=kernel(A*LB(k)-B*LA(k))
+ if size(K,2)<>1 then
+ error(msprintf(gettext("%s: pencil is not diagonalizable.\n"),"mtlb_qz"))
+ end
+ V(:,k)=K
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_rand.bin b/modules/compatibility_functions/macros/mtlb_rand.bin
new file mode 100755
index 000000000..47eba16ab
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_rand.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_rand.sci b/modules/compatibility_functions/macros/mtlb_rand.sci
new file mode 100755
index 000000000..1b4219605
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_rand.sci
@@ -0,0 +1,31 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r = mtlb_rand(a)
+ // Emulation function for rand() Matlab function
+
+ // Save current mode for random generator
+ randType = rand("info");
+ // Switch to uniform distribution
+ rand("uniform");
+
+ if and(size(a)==[1 1]) then
+ r = rand(a, a)
+ else
+ tmp = list()
+ for k=1:size(a,"*")
+ tmp(k) = a(k)
+ end
+ r = rand(tmp(1:$))
+ end
+
+ // Restore rand mode
+ rand(randType);
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_randn.bin b/modules/compatibility_functions/macros/mtlb_randn.bin
new file mode 100755
index 000000000..ed16a688d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_randn.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_randn.sci b/modules/compatibility_functions/macros/mtlb_randn.sci
new file mode 100755
index 000000000..5f94f276b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_randn.sci
@@ -0,0 +1,37 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_randn(a,opt)
+ // Emulation function for randn() Matlab function
+
+ [lhs,rhs]=argn()
+ if rhs==1 then
+ if and(size(a)==[1 1]) then
+ r=rand(a,a,"normal")
+ else
+ tmp=list()
+ for k=1:size(a,"*")
+ tmp(k)=a(k)
+ end
+ tmp($+1)="normal"
+ r=rand(tmp(1:$))
+ end
+ else
+ if and(size(a)==[1 1]) then
+ r=rand(a,a,"normal")
+ else
+ tmp=list()
+ for k=1:size(a,"*")
+ tmp(k)=a(k)
+ end
+ tmp($+1)="normal"
+ r=rand(tmp(1:$))
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_rcond.bin b/modules/compatibility_functions/macros/mtlb_rcond.bin
new file mode 100755
index 000000000..83f06f60b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_rcond.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_rcond.sci b/modules/compatibility_functions/macros/mtlb_rcond.sci
new file mode 100755
index 000000000..6c0d4a91d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_rcond.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function c=mtlb_rcond(a)
+ // Emulation function for rcond() Matlab function
+
+ if isempty(a) then
+ c=%inf
+ else
+ c=rcond(a)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_realmax.bin b/modules/compatibility_functions/macros/mtlb_realmax.bin
new file mode 100755
index 000000000..8317f184c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_realmax.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_realmax.sci b/modules/compatibility_functions/macros/mtlb_realmax.sci
new file mode 100755
index 000000000..2dff434d3
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_realmax.sci
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function val=mtlb_realmax(prec)
+ // Emulation function for Matlab realmax()
+
+ rhs=argn(2);
+
+ if rhs<=0 then
+ val=number_properties("huge");
+ elseif rhs==1 then
+ if prec=="double" then
+ val=number_properties("huge");
+ else
+ error(msprintf(gettext("%s: Not yet implemented.\n"),"mtlb_realmax"));
+ end
+ else
+ error(msprintf(gettext("%s: Wrong number of input argument(s): %d to %d expected.\n"),"mtlb_realmax",0,1));
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_realmin.bin b/modules/compatibility_functions/macros/mtlb_realmin.bin
new file mode 100755
index 000000000..4e1a9d8a5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_realmin.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_realmin.sci b/modules/compatibility_functions/macros/mtlb_realmin.sci
new file mode 100755
index 000000000..9f34ade45
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_realmin.sci
@@ -0,0 +1,26 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function val=mtlb_realmin(prec)
+ // Emulation function for Matlab realmin()
+
+ rhs=argn(2);
+
+ if rhs<=0 then
+ val=number_properties("tiny");
+ elseif rhs==1 then
+ if prec=="double" then
+ val=number_properties("tiny");
+ else
+ error(msprintf(gettext("%s: Not yet implemented.\n"),"mtlb_realmin"));
+ end
+ else
+ error(msprintf(gettext("%s: Wrong number of input argument(s): %d to %d expected.\n"),"mtlb_realmin",0,1));
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_s.bin b/modules/compatibility_functions/macros/mtlb_s.bin
new file mode 100755
index 000000000..d65f73407
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_s.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_s.sci b/modules/compatibility_functions/macros/mtlb_s.sci
new file mode 100755
index 000000000..38db527fd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_s.sci
@@ -0,0 +1,19 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_s(a,b)
+ // Emulation function for Matlab subtraction
+
+ if a==[] | b==[] then
+ y=[];
+ else
+ y=a-b;
+ end
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_semilogx.bin b/modules/compatibility_functions/macros/mtlb_semilogx.bin
new file mode 100755
index 000000000..55719e682
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_semilogx.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_semilogx.sci b/modules/compatibility_functions/macros/mtlb_semilogx.sci
new file mode 100755
index 000000000..3bff310cc
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_semilogx.sci
@@ -0,0 +1,15 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_semilogx(varargin)
+ global mtlb_log_mod
+ mtlb_log_mod="ln"
+ mtlb_plot(varargin(:))
+ mtlb_log_mod=[]
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_semilogy.bin b/modules/compatibility_functions/macros/mtlb_semilogy.bin
new file mode 100755
index 000000000..0dafb4eb2
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_semilogy.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_semilogy.sci b/modules/compatibility_functions/macros/mtlb_semilogy.sci
new file mode 100755
index 000000000..694f4d79c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_semilogy.sci
@@ -0,0 +1,15 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_semilogy(varargin)
+ global mtlb_log_mod
+ mtlb_log_mod="nl"
+ mtlb_plot(varargin(:))
+ mtlb_log_mod=[]
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_setstr.bin b/modules/compatibility_functions/macros/mtlb_setstr.bin
new file mode 100755
index 000000000..961b56430
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_setstr.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_setstr.sci b/modules/compatibility_functions/macros/mtlb_setstr.sci
new file mode 100755
index 000000000..d31e9df42
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_setstr.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_setstr(x)
+ // Emulation function for setstr() Matlab function
+
+ if type(x)==10 then
+ y=x
+ else
+ if or(type(x)==[4,6]) then
+ x=bool2s(x)
+ end
+ y=[]
+ for k=1:size(x,1)
+ y=[y;ascii(x(k,:))]
+ end
+ // When x is an empty matrix
+ if isempty(y) then
+ y=""
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_size.bin b/modules/compatibility_functions/macros/mtlb_size.bin
new file mode 100755
index 000000000..d3ce7ba72
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_size.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_size.sci b/modules/compatibility_functions/macros/mtlb_size.sci
new file mode 100755
index 000000000..f220c52e5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_size.sci
@@ -0,0 +1,52 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function varargout=mtlb_size(X,dim)
+ // Emulation function for Matlab size()
+
+ varargout=list()
+
+ [lhs,rhs]=argn()
+
+ // d=size(X,dim)
+ if rhs==2 then
+ if dim<=size(size(X),2) then
+ varargout(1)=size(X,dim)
+ else
+ varargout(1)=1
+ end
+ // [d1,...,dn]=size(X)
+ else
+ // if n < size(size(X),2)
+ if lhs<size(size(X),2) then
+ // d1,...,dn-1
+ for k=1:lhs
+ varargout(k)=size(X,k)
+ end
+ // dn is equal to the product of remaining dimensions
+ last=1
+ for k=lhs+1:size(size(X),2)
+ last=last*size(X,k)
+ end
+ varargout(lhs)=last
+ else
+
+ for k=1:size(size(X),2)
+ varargout(k)=size(X,k)
+ end
+
+ // if n > size(size(X),2)
+ if lhs>size(size(X),2)
+ for k=size(size(X),2)+1:lhs
+ varargout(k)=1
+ end
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_sort.bin b/modules/compatibility_functions/macros/mtlb_sort.bin
new file mode 100755
index 000000000..18f47c9dd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sort.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_sort.sci b/modules/compatibility_functions/macros/mtlb_sort.sci
new file mode 100755
index 000000000..76db5402b
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sort.sci
@@ -0,0 +1,192 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [Y,I]=mtlb_sort(x,dim,txt)
+ // Emulation function for sort() Matlab function
+
+ [lhs,rhs]=argn(0);
+
+ if rhs==1 then
+ if lhs==1 then
+ if type(x)==10 then
+ x=mstr2sci(x)
+ if find(size(x)==1)==[] then
+ tmp=gsort(x,"r","i");
+ else
+ tmp=gsort(x,"g","i");
+ end
+ Y=[]
+ for k=1:size(tmp,1)
+ Y=[Y;strcat(tmp(k,:))];
+ end
+ elseif or(type(x)==[4,6]) then
+ if find(size(x)==1)==[] then
+ Y=gsort(bool2s(x),"r","i");
+ else
+ Y=gsort(bool2s(x),"g","i");
+ end
+ else
+ if find(size(x)==1)==[] then
+ Y=gsort(x,"r","i");
+ else
+ Y=gsort(x,"g","i");
+ end
+ end
+ // lhs==2
+ else
+ if type(x)==10 then
+ x=mstr2sci(x)
+ if find(size(x)==1)==[] then
+ [tmp,I]=gsort(x,"r","i");
+ else
+ [tmp,I]=gsort(x,"g","i");
+ end
+
+ // Compute Y
+ Y=[]
+ for k=1:size(tmp,1)
+ Y=[Y;strcat(tmp(k,:))];
+ end
+
+ // Reorder I
+ for k=1:size(Y,1)
+ m=1
+ tmp2=[]
+ tmpI=I(k,:)
+ while m<=length(Y(k))
+ if part(Y(k),m)==part(Y(k),m+1) then
+ if tmp2==[] then
+ tmp2=tmpI(m)
+ end
+ tmp2=[tmp2,tmpI(m+1)]
+ else
+ if tmp2<>[] then
+ tmpI=[tmpI(1:m-size(tmp2,"*")),gsort(tmp2,"c","i"),tmpI(m+1:size(tmpI,"*"))]
+ end
+ tmp2=[]
+ end
+ m=m+1
+ end
+ I(k,:)=tmpI
+ end
+
+ elseif or(type(x)==[4,6]) then
+ if find(size(x)==1)==[] then
+ [Y,I]=gsort(bool2s(x),"r","i");
+ else
+ [Y,I]=gsort(bool2s(x),"g","i");
+ end
+ else
+ if find(size(x)==1)==[] then
+ [Y,I]=gsort(x,"r","i");
+ else
+ [Y,I]=gsort(x,"g","i");
+ end
+ end
+ end
+ // rhs==2
+ elseif rhs==2
+ if dim==1 then
+ dim="r"
+ else
+ dim="c"
+ end
+
+ if type(x)==10 then
+ x=mstr2sci(x)
+ [tmp,I]=gsort(x,dim,"i");
+
+ // Compute Y
+ Y=[]
+ for k=1:size(tmp,1)
+ Y=[Y;strcat(tmp(k,:))];
+ end
+
+ // Reorder I
+ for k=1:size(Y,1)
+ m=1
+ tmp2=[]
+ tmpI=I(k,:)
+ while m<=length(Y(k))
+ if part(Y(k),m)==part(Y(k),m+1) then
+ if tmp2==[] then
+ tmp2=tmpI(m)
+ end
+ tmp2=[tmp2,tmpI(m+1)]
+ else
+ if tmp2<>[] then
+ tmpI=[tmpI(1:m-size(tmp2,"*")),gsort(tmp2,"c","i"),tmpI(m+1:size(tmpI,"*"))]
+ end
+ tmp2=[]
+ end
+ m=m+1
+ end
+ I(k,:)=tmpI
+ end
+
+ elseif or(type(x)==[4,6]) then
+ [Y,I]=gsort(bool2s(x),dim,"i");
+ else
+ [Y,I]=gsort(x,dim,"i");
+ end
+
+ elseif rhs==3
+
+ if dim==1 then
+ dim="r"
+ elseif dim==2
+ dim="c"
+ end
+
+ if txt=="ascend"
+ txt="i"
+ elseif txt=="descend"
+ txt="d"
+ end
+
+ if type(x)==10 then
+ x=mstr2sci(x)
+ [tmp,I]=gsort(x,dim,txt);
+
+ // Compute Y
+ Y=[]
+ for k=1:size(tmp,1)
+ Y=[Y;strcat(tmp(k,:))];
+ end
+
+ // Reorder I
+ for k=1:size(Y,1)
+ m=1
+ tmp2=[]
+ tmpI=I(k,:)
+ while m<=length(Y(k))
+ if part(Y(k),m)==part(Y(k),m+1) then
+ if tmp2==[] then
+ tmp2=tmpI(m)
+ end
+ tmp2=[tmp2,tmpI(m+1)]
+ else
+ if tmp2<>[] then
+ tmpI=[tmpI(1:m-size(tmp2,"*")),gsort(tmp2,"c",txt),tmpI(m+1:size(tmpI,"*"))]
+ end
+ tmp2=[]
+ end
+ m=m+1
+ end
+ I(k,:)=tmpI
+ end
+
+ elseif or(type(x)==[4,6]) then
+ [Y,I]=gsort(bool2s(x),dim,txt);
+ else
+ [Y,I]=gsort(x,dim,txt);
+ end
+ end
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_sortrows.bin b/modules/compatibility_functions/macros/mtlb_sortrows.bin
new file mode 100755
index 000000000..e8cef7ff6
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sortrows.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_sortrows.sci b/modules/compatibility_functions/macros/mtlb_sortrows.sci
new file mode 100755
index 000000000..f668229ab
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sortrows.sci
@@ -0,0 +1,73 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2004-2006 - INRIA - Farid BELAHCENE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function varargout=mtlb_sortrows(varargin)
+ // Emulation function for sortrows() Matlab function
+
+ [lhs,rhs]=argn()
+
+ if rhs==1 then
+ if type(varargin(1))==1 | type(varargin(1))==8 | type(varargin(1))==10 then
+ [var1,index]=gsort(varargin(1),"lr","i")
+ elseif type(varargin(1))==4 then
+ [var1,index]=gsort(bool2s(varargin(1)),"lr","i")
+ end
+ varargout(1)=var1
+ elseif rhs==2 then
+ A=varargin(1)
+ cls=varargin(2)
+ indexlist=list((1:size(A,1))');
+
+ if size(cls,2)>1 then
+ error(msprintf(gettext("%s: Wrong type for input argument #%d: Column vector expected.\n"),"mtlb_sortrows",2))
+ end
+
+ if type(A)==10 then
+ B=asciimat(A)
+ elseif type(A)==4
+ B=bool2s(A)
+ elseif type(A)==1
+ B=A
+ end
+
+ for i=size(cls,1):-1:1
+ if cls(i)>0
+ [M,indextemp]=gsort(B(:,cls(i)),"lr","i")
+ else
+ [M,indextemp]=gsort(B(:,abs(cls(i))),"lr","d")
+ end
+ for j=1:size(indextemp,1)
+ Btemp(j,:)=B(indextemp(j),:)
+ end
+ B=Btemp
+ indexlist($+1)=indextemp
+ end
+
+ index=indexlist($)
+ if size(indexlist)>2 then
+ indextemp=zeros(size(A,1),1)
+ for i=size(indexlist)-1:-1:1
+ indexlist1=indexlist(i)
+ indextemp=indexlist1(index)
+ index=indextemp
+ end
+ end
+
+ if type(A)==10 then
+ varargout(1)=asciimat(B)
+ else
+ varargout(1)=B
+ end
+ end
+
+ if lhs==2 then
+ varargout($+1)=index
+ end
+
+endfunction \ No newline at end of file
diff --git a/modules/compatibility_functions/macros/mtlb_sprintf.bin b/modules/compatibility_functions/macros/mtlb_sprintf.bin
new file mode 100755
index 000000000..ab0634496
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sprintf.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_sprintf.sci b/modules/compatibility_functions/macros/mtlb_sprintf.sci
new file mode 100755
index 000000000..ca77487c9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sprintf.sci
@@ -0,0 +1,55 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [s,errmsg] = mtlb_sprintf(fmt,varargin)
+ [lhs,rhs]=argn()
+ count=0
+ //count % in fmt
+ nfmt=size(strindex(fmt,"%"),"*")
+ //number of format arguments
+ nv=size(varargin)
+ if nv==1 then
+ a=varargin(1)
+ na=size(a,"*")
+ mult=max(na/nfmt,1)
+ s="";
+ for k=1:mult,loc=a(1+(k-1)*nfmt:1+k*nfmt-1);
+ l=list()
+ for j=1:size(loc,"*"); l(j)=loc(j);end
+ s=s+msprintf(fmt,l(:));
+ end
+ elseif nv==0 then
+ s=msprintf(fmt)
+ else
+ sz=[]
+ for k=1:nv
+ sz=[sz size(varargin(k),1)]
+ end
+ if and(sz==1) then
+ mult=max(nv/nfmt,1)
+ fmt=strcat(fmt(ones(1,mult))) // duplicate format
+ s=msprintf(fmt,varargin(:))
+ else
+ error(msprintf(gettext("%s: This particular case is not implemented.\n"), "mtlb_printf"))
+ end
+ end
+ K=strindex(s,"\n")
+ if K<>[] then
+ w=s
+ s=[]
+ //if K(1)<>1 then K=[-1 K],end
+ K=[-1 K]
+ for k=2:size(K,"*")
+ s=[s;part(w,K(k-1)+2:K(k)-1)]
+ end
+ if K($)<>length(w)-1 then
+ s=[s;part(w,K($)+2:length(w))]
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_sscanf.bin b/modules/compatibility_functions/macros/mtlb_sscanf.bin
new file mode 100755
index 000000000..539064282
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sscanf.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_sscanf.sci b/modules/compatibility_functions/macros/mtlb_sscanf.sci
new file mode 100755
index 000000000..d2eb72c7c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sscanf.sci
@@ -0,0 +1,71 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function [a,nvars,errmsg,nextindex] = mtlb_sscanf(s,fmt,sz)
+ [lhs,rhs]=argn()
+ if lhs==4 then error(msprintf(gettext("%s: ''%s'' not implemented.\n"),"mtlb_sscanf","nextindex")),end
+ if rhs<3 then sz=%inf,end
+ nmx=prod(sz)
+ nvars=0
+
+ errmsg=""
+ //replicate the format many times to emulate Matlab format reuse
+ fmt=strcat(fmt(ones(1,50)))
+
+ lvars=msscanf(s,fmt);
+ if lvars==-1 then
+ a=""
+ return
+ errmsg=msprintf(gettext("%s: End of string reached before data has been read.\n"),"mtlb_sscanf");
+ else
+ nvars=size(lvars)
+ nv=min(nvars,nmx)
+ if nv==0 then
+ a=[]
+ else
+ typ=10
+ a=[]
+ for k=1:nv,typ=min(typ,type(lvars(k))),end
+ if typ==1 then
+ for k=1:nv
+ if type(lvars(k))==1 then
+ a=[a;lvars(k)]
+ else
+ a=[a;ascii(lvars(k))']
+ end
+ end
+ if size(sz,"*")<>1 then
+ nv=size(a,"*")
+ n=ceil(nv/sz(1))
+ if n*sz(1)>nv then a(n*sz(1))=0;end
+ a=matrix(a,sz(1),n),
+ end
+ else
+ for k=1:nv
+ a=[a;lvars(k)]
+ end
+ if size(sz,"*")<>1 then
+ if sz(1)<=nv then
+ A=ascii(a)'
+ nv=size(A,"*")
+ n=ceil(nv/sz(1))
+ if n*sz(1)>nv then A(nv+1:n*sz(1))=ascii(" ");end
+ A=matrix(A,sz(1),n)
+ a=[]
+ for l=1:sz(1)
+ a=[a;ascii(A(l,:))]
+ end
+ end
+ else
+ a=strcat(a)
+ end
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_std.bin b/modules/compatibility_functions/macros/mtlb_std.bin
new file mode 100755
index 000000000..29f1cd737
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_std.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_std.sci b/modules/compatibility_functions/macros/mtlb_std.sci
new file mode 100755
index 000000000..c73c6ea04
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_std.sci
@@ -0,0 +1,28 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function m = mtlb_std(x, flag, dim)
+
+ [lhs, rhs] = argn();
+
+ if rhs < 2 then
+ flag = 0;
+ elseif rhs < 3 then
+ dim = "*";
+ end
+
+ m = stdev(x, dim);
+ n = size(x, dim);
+
+ if flag == 1 then
+ m = m*sqrt(1-1/n);
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_strcmp.bin b/modules/compatibility_functions/macros/mtlb_strcmp.bin
new file mode 100755
index 000000000..d9a1d67a2
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strcmp.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_strcmp.sci b/modules/compatibility_functions/macros/mtlb_strcmp.sci
new file mode 100755
index 000000000..140ba37dd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strcmp.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_strcmp(A,B)
+ // Emulation function for strcmp() Matlab function
+
+ if type(A)==10 & type(B)==10 then
+ y=A==B
+ else
+ y=%F
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_strcmpi.bin b/modules/compatibility_functions/macros/mtlb_strcmpi.bin
new file mode 100755
index 000000000..71aef62e5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strcmpi.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_strcmpi.sci b/modules/compatibility_functions/macros/mtlb_strcmpi.sci
new file mode 100755
index 000000000..6a9b2d9b4
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strcmpi.sci
@@ -0,0 +1,20 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_strcmpi(A,B)
+ // Copyright INRIA
+ // Emulation function for strcmpi() Matlab function
+ // V.C.
+
+ if type(A)==10 & type(B)==10 then
+ y=convstr(A)==convstr(B)
+ else
+ y=%F
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_strfind.bin b/modules/compatibility_functions/macros/mtlb_strfind.bin
new file mode 100755
index 000000000..360e35554
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strfind.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_strfind.sci b/modules/compatibility_functions/macros/mtlb_strfind.sci
new file mode 100755
index 000000000..5e4b0aa92
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strfind.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_strfind(A,B)
+ // Emulation function for strfind() Matlab function
+
+ if type(A)==10 & type(B)==10 then
+ y=strindex(A,B)
+ else
+ if A==B then
+ y=1
+ else
+ y=[]
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_strrep.bin b/modules/compatibility_functions/macros/mtlb_strrep.bin
new file mode 100755
index 000000000..0c9457d92
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strrep.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_strrep.sci b/modules/compatibility_functions/macros/mtlb_strrep.sci
new file mode 100755
index 000000000..76300d939
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_strrep.sci
@@ -0,0 +1,21 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_strrep(s1,s2,s3)
+ // Emulation function for strrep() Matlab function
+
+ if type(s1)==10 & type(s2)==10 & type(s3)==10 then
+ y=strsubst(s1,s2,s3)
+ elseif type(s1)==10 | type(s2)==10 | type(s3)==10 then
+ y=s1
+ else
+ y=matrix(s1,1,-1)
+ y(y==s2)=s3
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_subplot.bin b/modules/compatibility_functions/macros/mtlb_subplot.bin
new file mode 100755
index 000000000..197b04e7c
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_subplot.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_subplot.sci b/modules/compatibility_functions/macros/mtlb_subplot.sci
new file mode 100755
index 000000000..857394e6f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_subplot.sci
@@ -0,0 +1,21 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function mtlb_subplot(m,n,p)
+ // Copyright INRIA
+ [lhs,rhs]=argn(0)
+ if rhs==1 then
+ p=modulo(m,10)
+ n=modulo((m-p)/10,10)
+ m=(m-p-10*n)/100
+ end
+ j=int((p-1)/n)
+ i=p-1-n*j
+ xsetech([i/n,j/m,1/n,1/m])
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_sum.bin b/modules/compatibility_functions/macros/mtlb_sum.bin
new file mode 100755
index 000000000..1f5933460
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sum.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_sum.sci b/modules/compatibility_functions/macros/mtlb_sum.sci
new file mode 100755
index 000000000..40a0f10ab
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_sum.sci
@@ -0,0 +1,30 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_sum(a,dim)
+ // Emulation function for sum() Matlab function
+
+ rhs=argn(2)
+
+ if rhs==1 then
+ // Scalar, vector or empty matrix
+ if find(size(a)==1)<>[] | find(size(a)==0)<>[] then
+ r=sum(a)
+ else
+ r=sum(a,1)
+ end
+ else
+ if dim<=size(size(a),"*") then
+ r=sum(a,dim)
+ else
+ r=a
+ end
+ end
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_t.bin b/modules/compatibility_functions/macros/mtlb_t.bin
new file mode 100755
index 000000000..fbc2cf0e1
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_t.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_t.sci b/modules/compatibility_functions/macros/mtlb_t.sci
new file mode 100755
index 000000000..be0d78631
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_t.sci
@@ -0,0 +1,23 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_t(a)
+ // Emulation function for Matlab transposition
+
+ if type(a)==10 then
+ tmp=mstr2sci(a)'
+ y=[]
+ for k=1:size(tmp,1)
+ y(k)=strcat(tmp(k,:))
+ end
+ else
+ y=a'
+ end
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_toeplitz.bin b/modules/compatibility_functions/macros/mtlb_toeplitz.bin
new file mode 100755
index 000000000..a878d9c57
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_toeplitz.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_toeplitz.sci b/modules/compatibility_functions/macros/mtlb_toeplitz.sci
new file mode 100755
index 000000000..f42bc0eb9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_toeplitz.sci
@@ -0,0 +1,39 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function z=mtlb_toeplitz(x,y)
+ // Emulation function for Matlab toeplitz()
+
+ if argn(2)==1 then
+ if isreal(x) then
+ if find(size(x)==1)==[] then
+ tmp=toeplitz(x);
+ s=size(x)
+ z=tmp(1:s($),:)
+ else
+ z=toeplitz(x);
+ end
+ return
+ end
+ y=x
+ x=conj(x)
+ x(1)=conj(x(1))
+ end
+ if x(1)<>y(1) then
+ y(1)=x(1)
+ end
+ if find(size(x)==1)==[] then
+ tmp=toeplitz(x,y);
+ s=size(x)
+ z=tmp(1:s($),:)
+ else
+ z=toeplitz(x,y);
+ end
+
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_tril.bin b/modules/compatibility_functions/macros/mtlb_tril.bin
new file mode 100755
index 000000000..1cbd20f33
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_tril.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_tril.sci b/modules/compatibility_functions/macros/mtlb_tril.sci
new file mode 100755
index 000000000..dd9814206
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_tril.sci
@@ -0,0 +1,47 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_tril(x,k)
+ // Emulation function for tril() Matlab function
+
+ rhs=argn(2);
+ if rhs==2 then
+ if type(x)==10 then
+ x=asciimat(x);
+ tmp=tril(x,k);
+ y=[]
+ for l=1:size(tmp,1)
+ tmp1=mstr2sci(ascii(tmp(l,:)));
+ tmp1(find(tmp1==ascii(0)))=ascii(0)
+ tmp1=strcat(tmp1);
+ y=[y;tmp1]
+ end
+ elseif type(x)==4 then
+ y=tril(bool2s(x),k)
+ else
+ y=tril(x,k);
+ end
+ else
+ if type(x)==10 then
+ x=asciimat(x);
+ tmp=tril(x);
+ y=[]
+ for l=1:size(tmp,1)
+ tmp1=mstr2sci(ascii(tmp(l,:)));
+ tmp1(find(tmp1==ascii(0)))=ascii(0)
+ tmp1=strcat(tmp1);
+ y=[y;tmp1]
+ end
+ elseif type(x)==4 then
+ y=tril(bool2s(x))
+ else
+ y=tril(x);
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_triu.bin b/modules/compatibility_functions/macros/mtlb_triu.bin
new file mode 100755
index 000000000..32bc6b366
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_triu.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_triu.sci b/modules/compatibility_functions/macros/mtlb_triu.sci
new file mode 100755
index 000000000..1493d8d2e
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_triu.sci
@@ -0,0 +1,47 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function y=mtlb_triu(x,k)
+ // Emulation function for triu() Matlab function
+
+ rhs=argn(2);
+ if rhs==2 then
+ if type(x)==10 then
+ x=asciimat(x);
+ tmp=triu(x,k);
+ y=[]
+ for l=1:size(tmp,1)
+ tmp1=mstr2sci(ascii(tmp(l,:)));
+ tmp1(find(tmp1==ascii(0)))=ascii(0)
+ tmp1=strcat(tmp1);
+ y=[y;tmp1]
+ end
+ elseif type(x)==4 then
+ y=triu(bool2s(x),k)
+ else
+ y=triu(x,k);
+ end
+ else
+ if type(x)==10 then
+ x=asciimat(x);
+ tmp=triu(x);
+ y=[]
+ for l=1:size(tmp,1)
+ tmp1=mstr2sci(ascii(tmp(l,:)));
+ tmp1(find(tmp1==ascii(0)))=ascii(0)
+ tmp1=strcat(tmp1);
+ y=[y;tmp1]
+ end
+ elseif type(x)==4 then
+ y=triu(bool2s(x))
+ else
+ y=triu(x);
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_true.bin b/modules/compatibility_functions/macros/mtlb_true.bin
new file mode 100755
index 000000000..d90b972b5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_true.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_true.sci b/modules/compatibility_functions/macros/mtlb_true.sci
new file mode 100755
index 000000000..915ea454f
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_true.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_true(a)
+ // Emulation function for true() Matlab function
+
+ if and(size(a)==[1 1]) then
+ r=ones(a,a)
+ else
+ tmp=list()
+ for k=1:size(a,"*")
+ tmp(k)=a(k)
+ end
+ r=ones(tmp(1:$))
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_type.bin b/modules/compatibility_functions/macros/mtlb_type.bin
new file mode 100755
index 000000000..ece5d62ac
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_type.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_type.sci b/modules/compatibility_functions/macros/mtlb_type.sci
new file mode 100755
index 000000000..6f1cd7db0
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_type.sci
@@ -0,0 +1,34 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function []=mtlb_type(filename)
+ // Emulation function for type() Matlab function
+ [x,ierr]=fileinfo(filename)
+ if ierr==0 then // File exists
+ disp(mgetl(mopen(filename,"r")))
+ else
+ if type(evstr(filename))==13 then // Compiled function
+ disp(fun2string(evstr(filename)))
+ elseif strindex(filename,".")==[] then // File without extension
+ Mfilename=filename+".m"
+ [x,ierr]=fileinfo(Mfilename)
+ if ierr==0 then // filename.m exists
+ disp(mgetl(mopen(Mfilename,"r")))
+ else
+ SCIfilename=filename+".sci"
+ [x,ierr]=fileinfo(SCIfilename)
+ if ierr==0 then // filename.sci exists
+ disp(mgetl(mopen(SCIfilename,"r")))
+ else
+ disp(msprintf(gettext("%s: Could not open neither ''%s'' nor ''%s'' nor ''%s''.\n"),"mtlb_type",filename,Mfilename,SCIfilename));
+ end
+ end
+ end
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_uint16.bin b/modules/compatibility_functions/macros/mtlb_uint16.bin
new file mode 100755
index 000000000..9969ec05e
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_uint16.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_uint16.sci b/modules/compatibility_functions/macros/mtlb_uint16.sci
new file mode 100755
index 000000000..e76043c3a
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_uint16.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function i=mtlb_uint16(x)
+ // Emulation function for Matlab uint16()
+
+ if x==%inf then
+ i=65535
+ else
+ i=uint16(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_uint32.bin b/modules/compatibility_functions/macros/mtlb_uint32.bin
new file mode 100755
index 000000000..faf3540fd
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_uint32.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_uint32.sci b/modules/compatibility_functions/macros/mtlb_uint32.sci
new file mode 100755
index 000000000..3101cbb86
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_uint32.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function i=mtlb_uint32(x)
+ // Emulation function for Matlab uint32()
+
+ if x==%inf then
+ i=4294967295
+ else
+ i=uint32(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_uint8.bin b/modules/compatibility_functions/macros/mtlb_uint8.bin
new file mode 100755
index 000000000..5f494c592
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_uint8.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_uint8.sci b/modules/compatibility_functions/macros/mtlb_uint8.sci
new file mode 100755
index 000000000..cc9b30c44
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_uint8.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function i=mtlb_uint8(x)
+ // Emulation function for Matlab uint8()
+
+ if x==%inf then
+ i=255
+ else
+ i=uint8(x)
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_upper.bin b/modules/compatibility_functions/macros/mtlb_upper.bin
new file mode 100755
index 000000000..75fd0bd04
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_upper.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_upper.sci b/modules/compatibility_functions/macros/mtlb_upper.sci
new file mode 100755
index 000000000..9185e8b1d
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_upper.sci
@@ -0,0 +1,18 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=mtlb_upper(y)
+ // Emulation function for upper() Matlab function
+
+ if type(y)==10 then
+ x=convstr(y,"u");
+ else
+ x=y
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/mtlb_var.bin b/modules/compatibility_functions/macros/mtlb_var.bin
new file mode 100755
index 000000000..dcea305a9
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_var.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_var.sci b/modules/compatibility_functions/macros/mtlb_var.sci
new file mode 100755
index 000000000..e53ab29a5
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_var.sci
@@ -0,0 +1,68 @@
+
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Michael Baudin
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+//
+
+function [s] = mtlb_var (x,w,dim)
+ //
+ // mtlb_var --
+ // This function computes the variance of the values of a vector or
+ // matrix x.
+ // It provides the same service as Octave and Matlab.
+ // Arguments
+ // x may be a real or a complex vector or matrix.
+ // s is a real scalar or real vector.
+ // If x is a vector, s = mtlb_var(x) is the variance of x.
+ // If x is a matrix, s = mtlb_var(x) is a row vector containing the variance of each column of x.
+ // w : type of normalization to use. Valid values are, depending on the number of columns m of x :
+ // w = 0 : normalizes with m-1, provides the best unbiased estimator of the variance [default].
+ // w = 1: normalizes with m, this provides the second moment around the mean.
+ // dim : the dimension along which the variance is computed (default is 1, i.e. column by column)
+ // If dim is 2, the variance is computed row by row.
+ //
+
+ if x==[] then s=%nan, return, end
+ [lhs,rhs]=argn(0)
+ if rhs==0 then
+ error(msprintf(gettext("%s: Wrong number of input arguments: %d to %d expected.\n"),"mtlb_var",1,2))
+ end
+ [m n]=size(x);
+
+ if rhs == 1 then
+ w = 0;
+ end
+ if rhs<=2 then
+ dim=1;
+ end
+ if dim==1 then
+ if w==0 then
+ if m==1 then
+ error(msprintf(gettext("%s: The normalization m - 1 factor is zero.\n"),"mtlb_var"))
+ end
+ end
+ end
+ if dim==2 then
+ if w==1 then
+ if n==1 then
+ error(msprintf(gettext("%s: The normalization n - 1 factor is zero.\n"),"mtlb_var"))
+ end
+ end
+ end
+
+ query = warning("query");
+ warning("off")
+ if rhs == 1 | w == 0 then
+ s = variance(x,dim);
+ else
+ s = variance(x,dim,mean(x, dim));
+ end
+ warning(query)
+
+endfunction
+
diff --git a/modules/compatibility_functions/macros/mtlb_zeros.bin b/modules/compatibility_functions/macros/mtlb_zeros.bin
new file mode 100755
index 000000000..2223345de
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_zeros.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/mtlb_zeros.sci b/modules/compatibility_functions/macros/mtlb_zeros.sci
new file mode 100755
index 000000000..63ba6fe75
--- /dev/null
+++ b/modules/compatibility_functions/macros/mtlb_zeros.sci
@@ -0,0 +1,22 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2002-2004 - INRIA - Vincent COUVERT
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function r=mtlb_zeros(a)
+ // Emulation function for zeros() Matlab function
+
+ if and(size(a)==[1 1]) then
+ r=zeros(a,a)
+ else
+ tmp=list()
+ for k=1:size(a,"*")
+ tmp(k)=a(k)
+ end
+ r=zeros(tmp(1:$))
+ end
+endfunction
diff --git a/modules/compatibility_functions/macros/names b/modules/compatibility_functions/macros/names
new file mode 100755
index 000000000..377bfdd4c
--- /dev/null
+++ b/modules/compatibility_functions/macros/names
@@ -0,0 +1,160 @@
+%b_a_b
+%b_a_s
+%b_c_s
+%b_cumprod
+%b_cumsum
+%b_d_s
+%b_f_s
+%b_l_b
+%b_l_s
+%b_m_b
+%b_m_s
+%b_p_s
+%b_prod
+%b_r_b
+%b_r_s
+%b_s_b
+%b_s_s
+%b_sum
+%b_x_b
+%b_x_s
+%msp_a_s
+%msp_abs
+%msp_e
+%msp_find
+%msp_length
+%msp_m_s
+%msp_maxi
+%msp_nnz
+%msp_sparse
+%msp_t
+%s_a_b
+%s_a_msp
+%s_c_b
+%s_d_b
+%s_f_b
+%s_l_b
+%s_m_b
+%s_m_msp
+%s_p_b
+%s_r_b
+%s_s_b
+%s_x_b
+char
+enlarge_shape
+firstnonsingleton
+fseek_origin
+makecell
+mstr2sci
+mtlb
+mtlb_0
+mtlb_a
+mtlb_all
+mtlb_any
+mtlb_axes
+mtlb_axis
+mtlb_beta
+mtlb_box
+mtlb_choices
+mtlb_close
+mtlb_colordef
+mtlb_cond
+mtlb_cov
+mtlb_cumprod
+mtlb_cumsum
+mtlb_dec2hex
+mtlb_delete
+mtlb_diag
+mtlb_diff
+mtlb_dir
+mtlb_double
+mtlb_e
+mtlb_echo
+mtlb_error
+mtlb_eval
+mtlb_exist
+mtlb_eye
+mtlb_false
+mtlb_fft
+mtlb_fftshift
+mtlb_filter
+mtlb_find
+mtlb_findstr
+mtlb_fliplr
+mtlb_fopen
+mtlb_format
+mtlb_fprintf
+mtlb_fread
+mtlb_fscanf
+mtlb_full
+mtlb_fwrite
+mtlb_get
+mtlb_grid
+mtlb_hold
+mtlb_i
+mtlb_ifft
+mtlb_image
+mtlb_imp
+mtlb_int16
+mtlb_int32
+mtlb_int8
+mtlb_is
+mtlb_isa
+mtlb_isfield
+mtlb_isletter
+mtlb_isspace
+mtlb_l
+mtlb_legendre
+mtlb_linspace
+mtlb_logic
+mtlb_logical
+mtlb_loglog
+mtlb_lower
+mtlb_max
+mtlb_mean
+mtlb_median
+mtlb_mesh
+mtlb_meshdom
+mtlb_min
+mtlb_more
+mtlb_num2str
+mtlb_ones
+mtlb_pcolor
+mtlb_plot
+mtlb_prod
+mtlb_qr
+mtlb_qz
+mtlb_rand
+mtlb_randn
+mtlb_rcond
+mtlb_realmax
+mtlb_realmin
+mtlb_s
+mtlb_semilogx
+mtlb_semilogy
+mtlb_setstr
+mtlb_size
+mtlb_sort
+mtlb_sortrows
+mtlb_sprintf
+mtlb_sscanf
+mtlb_std
+mtlb_strcmp
+mtlb_strcmpi
+mtlb_strfind
+mtlb_strrep
+mtlb_subplot
+mtlb_sum
+mtlb_t
+mtlb_toeplitz
+mtlb_tril
+mtlb_triu
+mtlb_true
+mtlb_type
+mtlb_uint16
+mtlb_uint32
+mtlb_uint8
+mtlb_upper
+mtlb_var
+mtlb_zeros
+sci_sparse
diff --git a/modules/compatibility_functions/macros/sci_sparse.bin b/modules/compatibility_functions/macros/sci_sparse.bin
new file mode 100755
index 000000000..84f95d91f
--- /dev/null
+++ b/modules/compatibility_functions/macros/sci_sparse.bin
Binary files differ
diff --git a/modules/compatibility_functions/macros/sci_sparse.sci b/modules/compatibility_functions/macros/sci_sparse.sci
new file mode 100755
index 000000000..45ae92e5a
--- /dev/null
+++ b/modules/compatibility_functions/macros/sci_sparse.sci
@@ -0,0 +1,14 @@
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ???? - INRIA - Scilab
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
+
+function x=sci_sparse(x)
+ //mtlb_sparse --> scilab sparse
+ [ij,v,mn]=spget(x);
+ x=sparse(ij,v,mn);
+endfunction
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1180.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_1180.dia.ref
new file mode 100755
index 000000000..d3bf537b7
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1180.dia.ref
@@ -0,0 +1,28 @@
+// <-- Non-regression test for bug 1180 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1180
+//
+// <-- Short Description -->
+// mtlb_filter lines
+//
+// b=b*z^(max(degree(a)-degree(b),0))
+// a=a*z^(max(degree(b)-degree(a),0))
+//
+// should be replaced by :
+//
+// da = degree(a)
+// db = degree(b)
+// if (da-db) > 0 then b=b*z^(da-db); end
+// if (db-da) > 0 then a=a*z^(db-da); end
+// Pierre MARECHAL - Scilab Project
+// Copyright INRIA
+// 1er juin 2005
+x = zeros(1:10);
+x(5) = 1;
+b = [ 0 1 0 ]
+ b =
+
+ 0. 1. 0.
+y = mtlb_filter(b,1,x);
+if y<>[0,0,0,0,0,1,0,0,0,0] then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1180.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_1180.tst
new file mode 100755
index 000000000..018a26f4a
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1180.tst
@@ -0,0 +1,31 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2005-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 1180 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1180
+//
+// <-- Short Description -->
+// mtlb_filter lines
+//
+// b=b*z^(max(degree(a)-degree(b),0))
+// a=a*z^(max(degree(b)-degree(a),0))
+//
+// should be replaced by :
+//
+// da = degree(a)
+// db = degree(b)
+// if (da-db) > 0 then b=b*z^(da-db); end
+// if (db-da) > 0 then a=a*z^(db-da); end
+
+x = zeros(1:10);
+x(5) = 1;
+b = [ 0 1 0 ]
+y = mtlb_filter(b,1,x);
+
+if y<>[0,0,0,0,0,1,0,0,0,0] then pause,end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1227.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_1227.dia.ref
new file mode 100755
index 000000000..fb462b28d
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1227.dia.ref
@@ -0,0 +1,27 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2005-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 1227 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1227
+//
+// <-- Short Description -->
+// -->a=1;savematfile('file','a')
+// WARNING:Option -v6 added
+// !--error 246
+// function not defined for given argument type(s)
+// Check arguments or define function %s_strindex
+// for overloading
+// at line 287 of function savematfile called by :
+// savematfile('totoo','a')
+// <-- ENGLISH IMPOSED -->
+a = 123456789;
+savematfile(TMPDIR+'/file_1232.mat','a');
+WARNING: Option -v7 added.
+clear a
+loadmatfile(TMPDIR+'/file_1232.mat','a');
+if a <> 123456789 then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1227.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_1227.tst
new file mode 100755
index 000000000..390f5185f
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1227.tst
@@ -0,0 +1,30 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2005-2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 1227 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1227
+//
+// <-- Short Description -->
+// -->a=1;savematfile('file','a')
+// WARNING:Option -v6 added
+// !--error 246
+// function not defined for given argument type(s)
+// Check arguments or define function %s_strindex
+// for overloading
+// at line 287 of function savematfile called by :
+// savematfile('totoo','a')
+
+// <-- ENGLISH IMPOSED -->
+
+a = 123456789;
+savematfile(TMPDIR+'/file_1232.mat','a');
+clear a
+loadmatfile(TMPDIR+'/file_1232.mat','a');
+
+if a <> 123456789 then pause,end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_133.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_133.dia.ref
new file mode 100755
index 000000000..51ec759f0
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_133.dia.ref
@@ -0,0 +1,16 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 133 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=133
+//
+// <-- Short Description -->
+// The man page for mtlb_fftshift...
+M = [1 2;3 4];
+// Check the result is the same as Matlab one
+if or(mtlb_fftshift(M)<>[4 3;2 1]) then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_133.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_133.tst
new file mode 100755
index 000000000..be57ab63b
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_133.tst
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 133 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=133
+//
+// <-- Short Description -->
+// The man page for mtlb_fftshift...
+
+M = [1 2;3 4];
+
+// Check the result is the same as Matlab one
+if or(mtlb_fftshift(M)<>[4 3;2 1]) then pause,end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1649.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_1649.dia.ref
new file mode 100755
index 000000000..258db13b9
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1649.dia.ref
@@ -0,0 +1,29 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 1649 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1649
+//
+// <-- Short Description -->
+// asciimat reshapes incorrectly its results
+// -->asciimat(z)
+// ans =
+//
+// 49. 53. 50. 54.
+// 51. 55. 52. 56.
+//
+//
+// instead of
+//
+// ans =
+//
+// 49. 50. 51. 52.
+// 53. 54. 55. 56.
+//
+z = ['1' '2' '3' '4'; '5' '6' '7' '8'];
+if or(asciimat(z)<>[49 50 51 52 ; 53 54 55 56]) then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1649.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_1649.tst
new file mode 100755
index 000000000..21a69afa8
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1649.tst
@@ -0,0 +1,33 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 1649 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1649
+//
+// <-- Short Description -->
+// asciimat reshapes incorrectly its results
+// -->asciimat(z)
+// ans =
+//
+// 49. 53. 50. 54.
+// 51. 55. 52. 56.
+//
+//
+// instead of
+//
+// ans =
+//
+// 49. 50. 51. 52.
+// 53. 54. 55. 56.
+//
+
+z = ['1' '2' '3' '4'; '5' '6' '7' '8'];
+
+if or(asciimat(z)<>[49 50 51 52 ; 53 54 55 56]) then pause;end
+
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1725.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_1725.dia.ref
new file mode 100755
index 000000000..a097d1783
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1725.dia.ref
@@ -0,0 +1,33 @@
+// <-- Non-regression test for bug 1725 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1725
+//
+// <-- Short Description -->
+// the function mtlb_axis returns an index error when called with an
+// argument of [ 1 500 -22.3 1.4] or any other argument.
+//
+// This was traced to varargout(1) not being set to a.data_bounds within
+// the code segment
+// if rhs>0 then
+//
+// statements
+//
+// else// v = axis
+// else
+// varargout(1)=a.data_bounds;
+// end
+// endfunction
+//
+// Changing this to
+// if rhs>0 then
+//
+// statements
+// varargout(1)=a.data_bounds;
+// ...
+// Copyright INRIA
+// Scilab Project - Farid Belahcene
+// Copyright INRIA 2005
+// Date : 09 janvier 2006
+a = mtlb_axis([ 1 500 -22.3 1.4]);
+if or(a <> [1 500 -22.3 1.4]) then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_1725.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_1725.tst
new file mode 100755
index 000000000..97a73d906
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_1725.tst
@@ -0,0 +1,37 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2005-2006 - INRIA - Farid Belahcene
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 1725 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=1725
+//
+// <-- Short Description -->
+// the function mtlb_axis returns an index error when called with an
+// argument of [ 1 500 -22.3 1.4] or any other argument.
+//
+// This was traced to varargout(1) not being set to a.data_bounds within
+// the code segment
+// if rhs>0 then
+//
+// statements
+//
+// else// v = axis
+// else
+// varargout(1)=a.data_bounds;
+// end
+// endfunction
+//
+// Changing this to
+// if rhs>0 then
+//
+// statements
+// varargout(1)=a.data_bounds;
+// ...
+
+a = mtlb_axis([ 1 500 -22.3 1.4]);
+if or(a <> [1 500 -22.3 1.4]) then pause,end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_3627.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_3627.dia.ref
new file mode 100755
index 000000000..8407c31af
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_3627.dia.ref
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Michael Baudin
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 3627 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3627
+//
+// <-- Short Description -->
+// Variance for complex data
+N=1000;
+x = grand(N,1,'nor',0,1) + %i*grand(N,1,'nor',0,1);
+computed = mtlb_var(x);
+expected = 2.0;
+if abs(computed-expected)>1. then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_3627.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_3627.tst
new file mode 100755
index 000000000..932b3d05a
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_3627.tst
@@ -0,0 +1,22 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Michael Baudin
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3627 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3627
+//
+// <-- Short Description -->
+// Variance for complex data
+
+
+N=1000;
+x = grand(N,1,'nor',0,1) + %i*grand(N,1,'nor',0,1);
+computed = mtlb_var(x);
+expected = 2.0;
+if abs(computed-expected)>1. then pause,end
+
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_4603.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_4603.dia.ref
new file mode 100755
index 000000000..7c4b4e1d7
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_4603.dia.ref
@@ -0,0 +1,22 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- ENGLISH IMPOSED -->
+//
+// <-- Non-regression test for bug 4603 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4603
+//
+// <-- Short Description -->
+// Unknown function lst2tree called by function mtlb_eval.
+ierr = execstr("mtlb_eval(""a=2"")", "errcatch");
+ Conversion of M-tree...
+ Conversion of M-tree: Done
+if ierr<>0 then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_4603.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_4603.tst
new file mode 100755
index 000000000..5f24f142e
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_4603.tst
@@ -0,0 +1,22 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- ENGLISH IMPOSED -->
+//
+// <-- Non-regression test for bug 4603 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4603
+//
+// <-- Short Description -->
+// Unknown function lst2tree called by function mtlb_eval.
+
+ierr = execstr("mtlb_eval(""a=2"")", "errcatch");
+
+if ierr<>0 then pause; end \ No newline at end of file
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_558.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_558.dia.ref
new file mode 100755
index 000000000..4eddbed70
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_558.dia.ref
@@ -0,0 +1,27 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 558 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=558
+//
+// <-- Short Description -->
+// mtlb_save reports an unnecessary warning. This is due to
+// line 57 of SCI/modules/compatibility_functions/macros/mtlb_save.sci:
+//
+// clear('rhs','lhs','kk','k','err','mtlb_thefile','or');
+//
+// the last 'or' looks superfluous to me.
+// 2009-01-09 mtlb_save is removed => savematfile
+fileName = TMPDIR+'/bug558.mat';
+x = 20;
+warning('off');
+savematfile(fileName,'x');
+warning('on');
+w=fileinfo(fileName);
+if ( (w == []) | (w(1) == 0) ) then bugmes();quit;end
+mdelete(fileName);
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_558.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_558.tst
new file mode 100755
index 000000000..c90e96bb6
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_558.tst
@@ -0,0 +1,30 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 558 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=558
+//
+// <-- Short Description -->
+// mtlb_save reports an unnecessary warning. This is due to
+// line 57 of SCI/modules/compatibility_functions/macros/mtlb_save.sci:
+//
+// clear('rhs','lhs','kk','k','err','mtlb_thefile','or');
+//
+// the last 'or' looks superfluous to me.
+
+// 2009-01-09 mtlb_save is removed => savematfile
+
+fileName = TMPDIR+'/bug558.mat';
+x = 20;
+warning('off');
+savematfile(fileName,'x');
+warning('on');
+w=fileinfo(fileName);
+if ( (w == []) | (w(1) == 0) ) then pause,end
+mdelete(fileName);
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_577.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_577.dia.ref
new file mode 100755
index 000000000..fdfa2c2ce
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_577.dia.ref
@@ -0,0 +1,24 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 577 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=577
+//
+// <-- Short Description -->
+// It can't save imaginary in MATLAB format (SCILAB 2.7.x and
+// cvs version)
+//
+// I can reproduce the bug with integers data type not with imaginary
+// 2009-01-09 mtlb_save is removed => savematfile
+my_mat_file = TMPDIR+"/bug_577.mat";
+x=rand(5,5,100)+%i;
+warning('off');
+ierr = execstr("savematfile(my_mat_file,""x"")","errcatch");
+warning('on');
+if ierr == 0 then bugmes();quit;end
+if lasterror()<>msprintf(gettext("%s: Mlists of type %s can not be written to Matlab binary files.\n"), "GetMlistVariable", "hm") then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_577.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_577.tst
new file mode 100755
index 000000000..54c874892
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_577.tst
@@ -0,0 +1,29 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 577 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=577
+//
+// <-- Short Description -->
+// It can't save imaginary in MATLAB format (SCILAB 2.7.x and
+// cvs version)
+//
+// I can reproduce the bug with integers data type not with imaginary
+
+// 2009-01-09 mtlb_save is removed => savematfile
+
+my_mat_file = TMPDIR+"/bug_577.mat";
+
+x=rand(5,5,100)+%i;
+warning('off');
+ierr = execstr("savematfile(my_mat_file,""x"")","errcatch");
+warning('on');
+
+if ierr == 0 then pause,end
+if lasterror()<>msprintf(gettext("%s: Mlists of type %s can not be written to Matlab binary files.\n"), "GetMlistVariable", "hm") then pause,end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_649.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_649.dia.ref
new file mode 100755
index 000000000..a5aa87c65
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_649.dia.ref
@@ -0,0 +1,21 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 649 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=649
+//
+// <-- Short Description -->
+// scilab crashes under windows, under linux, Scilab loops forever,
+// and it uses the whole CPU resource.
+// 2009-01-09 mtlb_save is removed => savematfile
+x = rand(5,5,100)+%i;
+warning('off');
+ierr = execstr('savematfile TMPDIR/bug_649.mat x','errcatch');
+warning('on');
+fields = getfield(1,x);
+if ierr<>999 | lasterror()<>msprintf(gettext("%s: Mlists of type %s can not be written to Matlab binary files.\n"), "GetMlistVariable", fields(1)) then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_649.mat b/modules/compatibility_functions/tests/nonreg_tests/bug_649.mat
new file mode 100755
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_649.mat
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_649.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_649.tst
new file mode 100755
index 000000000..75e49de78
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_649.tst
@@ -0,0 +1,24 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) ????-2008 - INRIA
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 649 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=649
+//
+// <-- Short Description -->
+// scilab crashes under windows, under linux, Scilab loops forever,
+// and it uses the whole CPU resource.
+
+// 2009-01-09 mtlb_save is removed => savematfile
+
+x = rand(5,5,100)+%i;
+warning('off');
+ierr = execstr('savematfile TMPDIR/bug_649.mat x','errcatch');
+warning('on');
+fields = getfield(1,x);
+if ierr<>999 | lasterror()<>msprintf(gettext("%s: Mlists of type %s can not be written to Matlab binary files.\n"), "GetMlistVariable", fields(1)) then pause, end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_7079.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_7079.dia.ref
new file mode 100755
index 000000000..09c15aa74
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_7079.dia.ref
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Pierre Lando <pierre.lando@scilab.org>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- TEST WITH GRAPHIC -->
+// <-- Non-regression test for bug 7079 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7079
+//
+// <-- Short Description -->
+// "mtlb_get" used a "h" global variable instead of the given "H" parameter.
+h=8;
+f=scf(0);
+f.color_map=jetcolormap(14);
+if size(mtlb_get(0, "colormap"), "*") <> 42 then bugmes();quit;end;
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_7079.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_7079.tst
new file mode 100755
index 000000000..5b1de16c0
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_7079.tst
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Pierre Lando <pierre.lando@scilab.org>
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- TEST WITH GRAPHIC -->
+
+// <-- Non-regression test for bug 7079 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7079
+//
+// <-- Short Description -->
+// "mtlb_get" used a "h" global variable instead of the given "H" parameter.
+
+
+h=8;
+f=scf(0);
+f.color_map=jetcolormap(14);
+if size(mtlb_get(0, "colormap"), "*") <> 42 then pause, end;
+
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_7231.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_7231.dia.ref
new file mode 100755
index 000000000..9d3cca973
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_7231.dia.ref
@@ -0,0 +1,21 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 7231 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7231
+//
+// <-- Short Description -->
+// mtlb_num2str did not manage second input argument
+if execstr("mtlb_num2str(2, ""%11.4f"")", "errcatch") <> 0 then bugmes();quit;end
+if execstr("mtlb_num2str(2, ""%11.4f"", 3)", "errcatch") <> 58 then bugmes();quit;end
+if execstr("mtlb_num2str(2, ""blabla"")", "errcatch") <> 999 then bugmes();quit;end
+if mtlb_num2str(2, "%11.4f") <> " 2.0000" then bugmes();quit;end
+if mtlb_num2str(2) <> "2" then bugmes();quit;end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_7231.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_7231.tst
new file mode 100755
index 000000000..f20e2aad0
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_7231.tst
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 7231 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7231
+//
+// <-- Short Description -->
+// mtlb_num2str did not manage second input argument
+
+if execstr("mtlb_num2str(2, ""%11.4f"")", "errcatch") <> 0 then pause, end
+if execstr("mtlb_num2str(2, ""%11.4f"", 3)", "errcatch") <> 58 then pause, end
+if execstr("mtlb_num2str(2, ""blabla"")", "errcatch") <> 999 then pause, end
+
+if mtlb_num2str(2, "%11.4f") <> " 2.0000" then pause, end
+if mtlb_num2str(2) <> "2" then pause, end
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_7763.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_7763.dia.ref
new file mode 100755
index 000000000..6479fd596
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_7763.dia.ref
@@ -0,0 +1,24 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - Scilab Enterprises - Adeline CARNIS
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- CLI SHELL MODE -->
+// <-- Non-regression test for bug 7763 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7763
+//
+// <-- Short Description -->
+// mtlb_max and mtlb_min cannot handle %i*0
+r = mtlb_max(1 + %i * 0, 0);
+assert_checkequal(r, complex(1));
+r = mtlb_min(1 + %i * 0, 0);
+assert_checkequal(r, 0);
+assert_checkfalse(execstr("[r,k] = mtlb_max(1 + %i * 0, 0)", "errcatch") == 0);
+refMsg = msprintf(_("%s: Wrong number of output argument(s): %d expected.\n"), "mtlb_max", 1);
+assert_checkerror("[r,k] = mtlb_max(1 + %i * 0, 0)", refMsg);
+assert_checkfalse(execstr("[r,k] = mtlb_min(1 + %i * 0, 0)", "errcatch") == 0);
+refMsg = msprintf(_("%s: Wrong number of output argument(s): %d expected.\n"), "mtlb_min", 1);
+assert_checkerror("[r,k] = mtlb_min(1 + %i * 0, 0)", refMsg);
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_7763.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_7763.tst
new file mode 100755
index 000000000..e433f634f
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_7763.tst
@@ -0,0 +1,36 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - Scilab Enterprises - Adeline CARNIS
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- CLI SHELL MODE -->
+
+// <-- Non-regression test for bug 7763 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7763
+//
+// <-- Short Description -->
+// mtlb_max and mtlb_min cannot handle %i*0
+
+r = mtlb_max(1 + %i * 0, 0);
+assert_checkequal(r, complex(1));
+
+r = mtlb_min(1 + %i * 0, 0);
+assert_checkequal(r, 0);
+
+assert_checkfalse(execstr("[r,k] = mtlb_max(1 + %i * 0, 0)", "errcatch") == 0);
+refMsg = msprintf(_("%s: Wrong number of output argument(s): %d expected.\n"), "mtlb_max", 1);
+assert_checkerror("[r,k] = mtlb_max(1 + %i * 0, 0)", refMsg);
+
+assert_checkfalse(execstr("[r,k] = mtlb_min(1 + %i * 0, 0)", "errcatch") == 0);
+refMsg = msprintf(_("%s: Wrong number of output argument(s): %d expected.\n"), "mtlb_min", 1);
+assert_checkerror("[r,k] = mtlb_min(1 + %i * 0, 0)", refMsg);
+
+
+
+
+
+
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_8337.dia.ref b/modules/compatibility_functions/tests/nonreg_tests/bug_8337.dia.ref
new file mode 100755
index 000000000..5d96d45c8
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_8337.dia.ref
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- CLI SHELL MODE -->
+// <-- Non-regression test for bug 8337 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8337
+//
+// <-- Short Description -->
+// mtlb_rand() was affected by the seed of rand(), whereas it follow the uniform rule,
+// as long as we don't have the 'rng' Matlab function to control the generation of random numbers.
+rand("normal");
+a = mtlb_rand(1000);
+assert_checktrue(and(a>=0 & a<=1));
+assert_checkequal(rand("info"), "normal");
diff --git a/modules/compatibility_functions/tests/nonreg_tests/bug_8337.tst b/modules/compatibility_functions/tests/nonreg_tests/bug_8337.tst
new file mode 100755
index 000000000..e6f3293ad
--- /dev/null
+++ b/modules/compatibility_functions/tests/nonreg_tests/bug_8337.tst
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- CLI SHELL MODE -->
+
+// <-- Non-regression test for bug 8337 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8337
+//
+// <-- Short Description -->
+// mtlb_rand() was affected by the seed of rand(), whereas it follow the uniform rule,
+// as long as we don't have the 'rng' Matlab function to control the generation of random numbers.
+
+rand("normal");
+a = mtlb_rand(1000);
+
+assert_checktrue(and(a>=0 & a<=1));
+assert_checkequal(rand("info"), "normal");
diff --git a/modules/compatibility_functions/tests/unit_tests/mtlb_std.dia.ref b/modules/compatibility_functions/tests/unit_tests/mtlb_std.dia.ref
new file mode 100755
index 000000000..6ccd03758
--- /dev/null
+++ b/modules/compatibility_functions/tests/unit_tests/mtlb_std.dia.ref
@@ -0,0 +1,15 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+X = [1 5 9; 7 15 22];
+assert_checkalmostequal(mtlb_std(X, 0), 7.547626558506);
+assert_checkalmostequal(mtlb_std(X, 1), 6.890008869531);
+assert_checkalmostequal(mtlb_std(X, 0, 1), [4.242640687119 7.071067811865 9.192388155425]);
+assert_checkalmostequal(mtlb_std(X, 0, 2), [4 ; 7.505553499465]);
+assert_checkalmostequal(mtlb_std(X, 1, 1), [3 5 6.5]);
+assert_checkalmostequal(mtlb_std(X, 1, 2), [3.265986323711 ; 6.128258770283]);
diff --git a/modules/compatibility_functions/tests/unit_tests/mtlb_std.tst b/modules/compatibility_functions/tests/unit_tests/mtlb_std.tst
new file mode 100755
index 000000000..1c9f4560a
--- /dev/null
+++ b/modules/compatibility_functions/tests/unit_tests/mtlb_std.tst
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+
+X = [1 5 9; 7 15 22];
+
+assert_checkalmostequal(mtlb_std(X, 0), 7.547626558506);
+assert_checkalmostequal(mtlb_std(X, 1), 6.890008869531);
+
+assert_checkalmostequal(mtlb_std(X, 0, 1), [4.242640687119 7.071067811865 9.192388155425]);
+assert_checkalmostequal(mtlb_std(X, 0, 2), [4 ; 7.505553499465]);
+
+assert_checkalmostequal(mtlb_std(X, 1, 1), [3 5 6.5]);
+assert_checkalmostequal(mtlb_std(X, 1, 2), [3.265986323711 ; 6.128258770283]);
diff --git a/modules/compatibility_functions/tests/unit_tests/mtlb_var.dia.ref b/modules/compatibility_functions/tests/unit_tests/mtlb_var.dia.ref
new file mode 100755
index 000000000..5b66322d8
--- /dev/null
+++ b/modules/compatibility_functions/tests/unit_tests/mtlb_var.dia.ref
@@ -0,0 +1,72 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Michael Baudin
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// Checks performed with Octave v3.0.3
+// With x as a row vector and 1 argument
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+computed = mtlb_var(x);
+expected = [0.16 0.09];
+assert_checkalmostequal(computed, expected, 1e-15);
+// Normalization with N-1
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+w = 0;
+computed = mtlb_var(x,w);
+expected = [0.16 0.09];
+assert_checkalmostequal(computed, expected, 1e-15);
+// Normalization with N
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+w = 1;
+computed = mtlb_var(x,w);
+expected = [0.32 0.18] / 3;
+assert_checkalmostequal(computed, expected, 1e-15);
+// With x as a complex row vector and 1 argument
+x = [ 0.9, 0.7;
+0.1, 0.1;
+0.5, 0.4 ];
+x = x + x * 2 * %i;
+computed = mtlb_var(x);
+expected = [0.8 0.45];
+assert_checkalmostequal(computed, expected, 1e-15);
+// With x as a complex row vector and variance along the dimension 2, i.e. row by row and w= 0
+x = [ 0.9, 0.7;
+0.1, 0.1;
+0.5, 0.4 ];
+x = x + x * 2 * %i;
+w = 0;
+dim = 2;
+computed = mtlb_var(x,w,dim);
+expected = [0.1
+0.
+0.025];
+assert_checkalmostequal(computed, expected, 1e-15);
+// With x as a complex row vector and variance along the dimension 2, i.e. row by row and w= 1
+x = [ 0.9, 0.7;
+0.1, 0.1;
+0.5, 0.4 ];
+x = x + x * 2 * %i;
+w = 1;
+dim = 2;
+computed = mtlb_var(x,w,dim);
+expected = [0.05
+0.
+0.0125];
+assert_checkalmostequal(computed, expected, 1e-15);
+// With x as a row vector and 1 argument
+x = [10 20 30 40 50 60 70 80 90];
+computed = mtlb_var(x,0,2);
+expected = 750;
+assert_checkequal(computed, expected);
+// With x as a column vector and 1 argument
+x = [10; 20; 30; 40; 50; 60; 70; 80; 90];
+computed = mtlb_var(x);
+expected = 750;
+assert_checkequal(computed, expected);
diff --git a/modules/compatibility_functions/tests/unit_tests/mtlb_var.tst b/modules/compatibility_functions/tests/unit_tests/mtlb_var.tst
new file mode 100755
index 000000000..c1ba94422
--- /dev/null
+++ b/modules/compatibility_functions/tests/unit_tests/mtlb_var.tst
@@ -0,0 +1,81 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Michael Baudin
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// Checks performed with Octave v3.0.3
+
+// With x as a row vector and 1 argument
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+computed = mtlb_var(x);
+expected = [0.16 0.09];
+assert_checkalmostequal(computed, expected, 1e-15);
+
+// Normalization with N-1
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+w = 0;
+computed = mtlb_var(x,w);
+expected = [0.16 0.09];
+assert_checkalmostequal(computed, expected, 1e-15);
+
+// Normalization with N
+x = [0.9 0.7
+ 0.1 0.1
+ 0.5 0.4];
+w = 1;
+computed = mtlb_var(x,w);
+expected = [0.32 0.18] / 3;
+assert_checkalmostequal(computed, expected, 1e-15);
+
+// With x as a complex row vector and 1 argument
+x = [ 0.9, 0.7;
+0.1, 0.1;
+0.5, 0.4 ];
+x = x + x * 2 * %i;
+computed = mtlb_var(x);
+expected = [0.8 0.45];
+assert_checkalmostequal(computed, expected, 1e-15);
+
+// With x as a complex row vector and variance along the dimension 2, i.e. row by row and w= 0
+x = [ 0.9, 0.7;
+0.1, 0.1;
+0.5, 0.4 ];
+x = x + x * 2 * %i;
+w = 0;
+dim = 2;
+computed = mtlb_var(x,w,dim);
+expected = [0.1
+0.
+0.025];
+assert_checkalmostequal(computed, expected, 1e-15);
+
+// With x as a complex row vector and variance along the dimension 2, i.e. row by row and w= 1
+x = [ 0.9, 0.7;
+0.1, 0.1;
+0.5, 0.4 ];
+x = x + x * 2 * %i;
+w = 1;
+dim = 2;
+computed = mtlb_var(x,w,dim);
+expected = [0.05
+0.
+0.0125];
+assert_checkalmostequal(computed, expected, 1e-15);
+
+// With x as a row vector and 1 argument
+x = [10 20 30 40 50 60 70 80 90];
+computed = mtlb_var(x,0,2);
+expected = 750;
+assert_checkequal(computed, expected);
+
+// With x as a column vector and 1 argument
+x = [10; 20; 30; 40; 50; 60; 70; 80; 90];
+computed = mtlb_var(x);
+expected = 750;
+assert_checkequal(computed, expected);