c2m

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

Ahora está siguiendo esta publicación

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;

Citar como

Hyoung-Sik Choi (2026). c2m (https://la.mathworks.com/matlabcentral/fileexchange/28544-c2m), MATLAB Central File Exchange. Recuperado .

Categorías

Más información sobre Internationalization en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.1.0.0

printf ==> %printf

1.0.0.0