The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: downloading .m files
Replies: 1   Last Post: Jan 17, 2013 9:17 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: downloading .m files
Posted: Jan 17, 2013 9:17 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"LS " <> wrote in message
> Hi,
> I'm a teaching assistant for a class that uses Matlab. I need to have the
> students download .m files that I've written for them and open them in
> Matlab. I'll write a script on my computer, save it as a .m file, upload
> it to our class website, and then download it on a new, teaching computer
> for the students as a .m file (and the final computer on which I
> downloaded the .m file know it's a Matlab file and labels it as such) but
> when I open the script it has tons of weird (I think HTML) code on it and
> it's unusable. I've copied and pasted an example below. I'm writing these
> scripts on a Mac and the students use PCs, if that matters, but I've also
> tried resaving the script on a PC, uploading and then re-downloading it
> and having the same problem. This may be a problem on the University's end
> with the class website screwing things up, but any help would be much
> appreciated!

At a glance, it looks like whatever you're doing to download the file is
saving the whole webpage on which you've posted it, not just the file

If you've got lots of files to distribute you may want to use the ZIP
function to create a ZIP file, distribute that ZIP file instead of each
individual file, and have the students use the UNZIP function to extract it
to the appropriate folder.


Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.