MATLAB: How to change the double percent code section color
colorsection
Hi all,
As we all know, %% indicates a code section in Matlab. When I put cursor on the section, the section background turns into a milky color. How can I change this color? Cannot seem to find a way in preferences.
The Report Generator does not display some figures in color when the RTF format is used. You can change this behavior by selecting to print in Color Encapsulated PostScript. Following are the steps to set this option:
- Click on Graph Figure Snapshot
- Click on the Options tab
- Select Image File Format to be Color Encapsulated PostScript (with TIFF Preview)
Also, the Invert Hardcopy should be set to automatic.
You could save your fitting values to workspace, using cftool choose analysis and there select the option evaluate fit at Xi (in your case Xi is your x) . Now if you save those results you 'll have a structure containing xi and yfit. You can calculate percent residuals r(%)=100*(yi-yifit)./yi. Just be careful in case your original data aren't sorted by x value to sort them because the output results of fitting analysis are sorted to xi.
Best Answer