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.
  • the cyclist: Looks like there might be a problem with the statistics page. For one thing, Alan Chalker holds all 20...
  • Alan Chalker: I have been able to figure out the scoring formula and am posting it here as I traditionally do. As...
  • Nick Howe: As Alan noted, the Twitter feeds seem broken. Perhaps the change to the queue update timing was...
  • Alan Chalker: Are the twitter feeds not working anymore? Or is there a major delay in updating them?
  • Doug: Everyone, Sorry about that. I wrote the contest code in absolute indexing, and then changed it to match the...
  • Michael: The syntax of the function ’solver’ as explained in the rules is: colors = solver(A,[targetRow...
  • Ned: Hello SY: Some of the intermediate challenges are predictable, but some of them are improvised. We’ll...
  • SY: Would it be possible to announce date/time of all (or at least some) intermediate challenges (1000 characters, 3...
  • Helen Chen: Hi Kapil - The code will be uploaded when the contest starts at noon (Boston time) on November 4th. Helen
  • kapil: could you please tell me the date when you will upload the problem of event which is suppose to help in...

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