MATLAB Programming Fundamentals - MathWorks
NoteIf your code produces hyperlinked text in the MATLAB Command Window, the output shows the HTML code rather than the hyperlin ...
When you click one of the hyperlinks, MATLAB sets the recycle command accordingly. After clicking a hyperlink, run recycle in th ...
%% % See the help for the <matlab:doc('publish') publish> function. Publish the file to HTML. When you click the publish h ...
If a section produces command-window output that starts with <html> and ends with </ html>, MATLAB includes the sour ...
%% LaTeX Markup Example % This is a table: % % % \begin{tabular}{|c|c|} \hline % $n$ & $n!$ \ \hline % 1 & 1 \ % 2 & ...
\end{par} \vspace{1em} \end{document} MATLAB includes any additional markup necessary to compile this file with a LaTeX program. ...
Output Preferences for Publishing In this section... “How to Edit Publishing Options” on page 23-27 “Specify Output File” on pag ...
The MATLAB expression pane specifies the code that executes during publishing. The Publish settings pane contains output, figure ...
Format Notes doc Publishes to a Microsoft Word document. Does not preserve syntax highlighting. This format is only available on ...
Evaluating Code Another way to affect what MATLAB executes during publishing is to set the Evaluate code option in the Publish s ...
For example, suppose that you publish H:/my_matlabfiles/my_mfiles/sine_wave.m to HTML using a publish configuration with the Inc ...
Choosing an Image Format When publishing, you can choose the image format that MATLAB uses to store any graphics generated durin ...
When publishing to .pdf Capturing Figures You can capture different aspects of the Figure window by setting the Figure capture ...
% Create figure figure1 = figure('Name','purple_background',... 'Color',[0.4784 0.06275 0.8941]); colormap('hsv'); % Create subp ...
% Enable printed output to match colors on screen set(figure1,'InvertHardcopy','off') By publishing your file with this window o ...
Creating a Thumbnail You can save the first code-generated graphic as a thumbnail image. You can use this thumbnail to represent ...
When the Publish settings options are set, you can follow these steps to save the settings: (^1) Click Save As when the options ...
(^2) In the Settings Name field, enter a meaningful name for the settings. Then click Save. You can now use the publish settings ...
property values, or both. Create a named configuration for each purpose, all associated with the same file. Later you can run wh ...
When MATLAB cannot associate a configuration with a file, the Edit Configurations dialog box displays the file name in red and a ...
«
39
40
41
42
43
44
45
46
47
48
»
Free download pdf