Skip to Main Content Skip to Search
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Loren on the Art of MATLAB

April 23rd, 2008

MATLAB Publishing for Teaching

Since MATLAB has had the capability to publish M-files, we have seen publishing being adopted at many educational institutions. And there is a variety of ways for you to find out just what's been published out there, perhaps so you can leverage it.

Contents

How to Find Published M-files

First, how can you find published M-files on the web? Here are some techniques.

Some Good Educational Sites

You’ll find pointers to a lot of educational sites at the web demos index. I know that some good files are to be found at

But you can just poke around and find a lot of good stuff up and down this list. Here's a really good site I noticed recently for teaching Calculus.

Who Publishes?

I’ve been very happy, as I look at the web demos coming in, to see that published M-files are being used by professors more and more. Some of them are lovely and well made. Here are a few favorites of mine:

What are People Using Published M-files for?

People seem to be using published M-files for educational purposes in three ways, sometimes melding together the first two.

  • demos, concepts, explanations, class notes
  • homework assignments
  • adminstering exams

Homework Examples

Sometimes they’re used for homework assignments. Here are some examples from NJIT.

Example of an Exam

And sometimes they’re even used for exams such as this site.

Do You Publish from MATLAB for School?

If you use publishing for some aspect of school work, post here and please post 1 (one) URL to your own best site. Please also post a URL to a site (new to you perhaps) that uses |publish and you think has material potentially useful to you and others.


Get the MATLAB code

Published with MATLAB® 7.6

Leave a Reply


Loren Shure works on design of the MATLAB language at The MathWorks. She writes here about once a week on MATLAB programming and related topics.

  • Brad Phelan: Hi Tim, I understand where you are coming from. It is my one pet annoyance with Matlab, the lack of...
  • Loren: Timothee- Anonymous functions can only be a single (complicated) expression. You might be able to do what you...
  • Timothee: Is there a way to combine multiple commands in anonymous functions? ex1: fun=@(A)([V,D]=eig(A ); A*V-V*D)...
  • Loren: Here’s Cleve’s reply to Etienne: The crucial factor is the number and location of the nonzero...
  • Loren: Tristan- Nested functions can be slower in some cases currently. We know we have some opportunities to...
  • Tristan: Wow! I just tried with a global variable and it’s 5 times slower than with a argument! function...
  • Jon: Loren, I encountered this same problem and I attempted to find the answer by looking at the documentation for...
  • Tristan: “One thing that I have long wondered about is relative speed of nested functions relative to...
  • Etienne Non: Hi! I’m trying to understand why the Matlab function LU.m takes almost 20 times more time to...
  • Loren: Jonathan- The behavior you see is because the variable x has to come into inplaceTest and then a copy is made...

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

Related Topics