Doug’s MATLAB Video Tutorials

December 5th, 2006

Automatically generated reports from MATLAB

This week’s video is covering a relatively new feature of the editor: cell mode. Specifically, I am demonstrating the publication of reports from your code. If you ever need to create documents that have many MATLAB figures and code and would like to be able to update those documents easily, then this four minute video is for you.

14 Responses to “Automatically generated reports from MATLAB”

  1. Eric M. replied on :

    Doug,
    Love the videos - very helpful. I noticed when you published your document the graphics [membrane(1)] appeared in the HTML file with a white background instead of the grey background. I have not been able to change mine from grey to white. I have tried changing the preferences under “Publishing Images” and the “Copy Options.” I have not found a combination that works. The only thng I have found is setting the figure background to white, but I like the grey background for screen viewing. Any suggestions?

    Eric

  2. Eduard replied on :

    Doug,
    I love the video’s don’t get me wrong but I kind of miss the pick of the week. I understand that you don’t have time and all but maybe you could do a pick of the month and the rest of the time a video.

    Eduard

  3. Doug replied on :

    Eric,

    From our developers:

    “You get one white figure by default. Any more figures you open, you’ll need to change their background color yourself.”

    Thanks for your interest.
    Doug

  4. Eric M. replied on :

    Doug,
    I would have to disagree with your developers comment, unless I misunderstand. ALL of my figures have the grey background unless I do set(0,’DefaultFigureColor’,[1 1 1]) before publishing the script.

    Maybe one of the OPTIONS for publish settings should include something for the figure background. Or at least get the setting from the figure copy options - which includes a setting for figure background.

    Eric

  5. Matthew Simoneau replied on :

    You also need to leave the “Use new figure” preference checked.

  6. Nick Cheilakos replied on :

    This video was fantastic. I didn’t know that Matlab can make this. Could you create an other video?

  7. Mahmoud Kassem replied on :

    Nick,
    There is a demo with MATLAB
    demos/PublishingfromtheEditor_viewlet_swf.html

    A tooltip with the link for the flash video appears when you use Cell Mode in a m file.

  8. Mohd Abubakr replied on :

    Doug,
    Indeed a very good video. i had no idea about cell mode though i am using MATLAB since 3 years!!… soon i am going to try out this cell mode.
    Great Work buddy.. keep the fires of innovation burning!!

  9. Doug replied on :

    Mohd,

    Thank you for the complement on the feature. I can not take credit for anything other than showing it off, but I passed your comments on to the people that invented this great feature.

    Thanks,
    Doug

  10. Luke Sparvero replied on :

    Thanks for the video. There is “so much” within Matlab. I am looking for ‘publishing help’. In my experience if the m-file requires ‘inputs’ (using ‘input’) then publishing errors out. Perhaps there is a way around this? I haven’t tried inputdlg( ) yet.

    thanks again

  11. Doug Hull replied on :

    Luke,

    Currently you can not publish functions as a report, but you can publish scripts. Send me a personal e-mail describing what your goals are in publishing a function (documentation, example, report, etc) We are trying to understand what the “Right thing” to do is for functions.

    Doug

  12. Gerald replied on :

    I have problems when i use the publish to word option. The lines inside the axes look well, but the text is terrible. Looks like smooth. I changed the different option in the preferences and I am lost.

    When I do the copy figure option without publish works fine.

    Do you know the reason and /or a solution

    Thanks

  13. Doug replied on :

    Gerald,

    Please send me the code you are trying to publish and I will take a look at it.

    Doug

  14. RM Vinay replied on :

    good work ………….that will surely be helpful

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of The MathWorks.