Steve on Image Processing
January 17th, 2006
MATLAB’s publish function
Have you discovered the Publish to HTML functionality in MATLAB 7 yet? If not, you should definitely check it out.
I generated the HTML for my recent blog entry, Synthesizing images using simple equations, directly from an M-file script.
For example, the "Start with meshgrid" section was generated from this part of the M-file:
%% Start with meshgrid
% The MATLAB function |meshgrid| is extremely useful for computing a
% function of two Cartesian coordinates, and you can make some interesting
% images this way.
%
% |meshgrid| is kind of hard to explain in words. It's easier to just look
% at what it does.
x = 1:3;
y = 10:14;
[xx, yy] = meshgrid(x, y)
Output in the command window is automatically captured and included in the generated HTML, and any figures created are also captured and stored as image files.
In addition to HTML, you can also publish to Word, to LaTeX, to PowerPoint, or to XML.
Read more about this MATLAB feature in the Users Guide. You should also check out Loren Shure's Art of MATLAB blog on MATLAB Central.
07:00 UTC |
Posted in Uncategorized |
Permalink |
5 Comments »
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.
|
Hurry up and write some more Steve, I’m eagerly awaiting your next entry! I don’t know much about image processing but am enjoying your blog and am expecting to learn some useful bits and pieces, keep up the good work!
Is there a way for me to pass variables to function that I want to publish?
Noah—See the doc for publish configurations.
Hi, I’m just learning about signal/image processing and your blog posts quite often turn out to be the best hit to my web-searches. I thought it would be a good idea to start from your first post and read through them all. It would be nice to have a “first-post” button..
By the way, the link to the Users Guide is broken.
Thanks.
Feda—I fixed the doc link, thanks.