c2m

This code helps user converting c code style to m file style

現在この提出コンテンツをフォロー中です。

batch process

% if { if
% } end
% else { ==> else
% } end

% end
% else ==> else

% 'else if' ==> 'elseif'

% 'int' ==> '//int'
% 'double', '//double'

% void (a, %void (a,
% b) ==> % b)

% '#' ==> '//#'

% /* % /*
% * ==> % *
% */ % */

% '//' ==> '%'

% for(i = 0; i < 6; i++) ==> for i = 1:6 %(i = 0; i < 6; i++)
% for(i = 0; i <= 6; i++) ==> for i = 1:7 %(i = 0; i < 6; i++)

% [0] ==> (1)
% [0][0] ==> (1)(1)

% '(1)(1)' ==> '(1,1)'

% '!' ==> '~'

% 'fabs' ==> 'abs'

% x = 3*4 ==> x = 3*4 ...
% +5; +5;

引用

Hyoung-Sik Choi (2026). c2m (https://jp.mathworks.com/matlabcentral/fileexchange/28544-c2m), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersInternationalization についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1.0.0

printf ==> %printf

1.0.0.0