MATLAB Programming Contest Blog

April 2nd, 2009

How to publish your code

With this contest, one of the skills required to enter is the ability to publish code that was written in cell mode.  The seventh video I ever made for my blog was on this subject.  Take a look at this blog entry from 2006 to see how to publish your code.  Remember to include the HTML directory in the .ZIP file that you submit as your entry into the contest.

 http://blogs.mathworks.com/videos/2006/12/05/automatically-generated-reports-from-matlab/

For those of you looking for the exact way to format your code, you can skip ahead to 1:05 into the video.

3 Responses to “How to publish your code”

  1. Ken Eaton replied on :

    I was having a little trouble getting images to appear in my published file. I included some .png files when I made it, and I can view them just fine on my computer. However, I uploaded my file to the FEX and none of the pictures show up now, even though I included them in the html directory.

    Not sure if it’s related, but it also wouldn’t let me upload any images on the file submission page. I tried all the suggested formats.

  2. Alan Chalker replied on :

    Ken: They show up fine for me. Note, as I pointed out in the newsgroup thread, when you download the zip files from FEX, you need to actually UNZIP the file first before viewing the html to see the images. Even though Windows lets you browse directly into the zip file and directly open the html embedded in it, it’s not smart enough to also decompress the images.

  3. Ken Eaton replied on :

    Thanks Alan. The weird thing is, I can easily view all the other published files on the FEX without downloading them first. For some reason, only mine are missing images. Someone suggested that it may be a case sensitivity issue (’.png’ versus ‘.PNG’), so I may try modifying that first.

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).


The MATLAB Programming Contest is a semi-annual competition where contestants submit MATLAB code to try to solve a challenge. For more information, see the overview.
  • gopal: This is a try
  • Amtu: Well done Alfonso ! Congratulations ! Thanks MATLAB team, I’m already looking forward to the next time.
  • Alan Chalker: Just wanted to post here as well that I think Alfonso should be declared the grand winner since the top...
  • Alan Chalker: Just noticed something curious on the statistics page. While some of the charts are updating correctly,...
  • Ned: To Oliver: There will not be a late stage twilight in this contest. So it’s full daylight right to the end.
  • Oliver Woodford: Much obliged, Mike. For anyone looking for a speed boost to that approach I recommend “Basic...
  • MikeR: I agree with Oliver that if possible making the final few hours of the contest conceal the entries will be...
  • Oliver Woodford: When does late stage twilight begin, and will it then run on until the end of the contest?
  • Alan Chalker: As I traditionally do about this time in the contest, I’ve submitted a heavily commented version...
  • the cyclist: Looks like there might be a problem with the statistics page. For one thing, Alan Chalker holds all 20...

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