Testi 1
http://blogs.mathworks.com/loren/2006/06/07/publishing/#1
Contents
%{ Kokeillaan tällaista tekstiä lisää ja lisää %}
between $$. Here's one of my favorite identities:
because it co
Huomaa! Rivit, joilla on LaTeX:ia, on aloitettava yhdellä blankolla, ei esim. 2:lla!!!
DollaritakakenoLaTeXDollari ei mene läpi
Aapo TTTTT
teksita
Each new titled cell creates a section. For a new paragraph without a new section, omit the cell title as I have done here.
Markup Tips
- Bulleted item - on separate lines, each entry starts with % *
- Bold text - begins and ends with *
- Italic text - begins and ends with _
- Monospace text - begins and ends with |
The MATLAB documentation contains a great table for marking up text.
Equations
Math is so important to the content of work done in MATLAB that it's worth learning how to format equations using TeX. Here is a table showing the collection of available mathematical symbols. To embed an equation into a published document, sandwich the TeX express between $$. Here's one of my favorite identities:
because it contains the most interesting numbers I know, apart from 17.
Getting the Code
By default when publishing to html, the M-file code that generates the document is included and available, via grabcode. You won't be able to get it from this post, alas, because one of the steps in getting this to the web inserts char([13 10]) for newlines instead of just char(10).
Links
You can put in links directly.
- Here's one to my blog: http://blogs.mathworks.com/loren/
- This one is for this article: http://blogs.mathworks.com/loren/?p=40
- And this one is so you can respond to this post: http://blogs.mathworks.com/loren/?p=40/Respond
Do You publish Results or Documents?
Do you publish reports, results, documents? Who is your intended audience? What has been working well for you? And what else would you like to see? Let us know!
Linkkikokeita
Esimerkki tyotavasta: m-tiedosto
Esimerkki työtavasta: html-käännös
% <<Tyotapa1.m>>
Tiedosto ajo.m
%% Kappaleen 1 otsikko htmlbr/html %{
Tähän väliin selostusta... vaikka kuinka monta riviä (ilman alku-%-merkkiä).
%}
A=rand(3,3); b=ones(3,1); x=A\b; % % %% Kappaleen 2 otsikko % %... % aa aa aaaaaaaaaaaaaaa % nnnnnn nn nnnnnnnnnnn