Comparing C Code and MATLAB Code Using Tiling in the MATLAB Editor
Use the MATLAB® Editor's left/right tile feature to compare your generated C code to the original MATLAB code. You can easily compare the generated C code to your original MATLAB code. In the generated C code:
Your function name is unchanged.
Your comments are preserved in the same position.
To compare two files, follow these steps:
Open the C file and the MATLAB file in the Editor. (Dock both windows if they are not docked.)
Select Window > Left/Right Tile (or the
toolbar button) to view the files side by side.
The MATLAB file kalman02.m and its generated
C code kalman02.c are displayed in the following
figure.
