How can i send matlab functions by Mail

Hei . I made some Matlab functions in a folder in my computer and i should be sendt to my teacher , but i do not know how i can send all functions in a file?

Answers (2)

The easiest approach is probably to use the zip function to create a ZIP-file containing your function files, then attach the ZIP-file to an email using your email client or using the sendmail function.

3 Comments

I can create a Zip file, but i do not know about the zip function?
I'm not sure what you mean when you say "I do not know about the zip function?" The function to which I refer is part of MATLAB, and has been for over a decade. Do you mean you were unaware of this function? Do you mean that you're unsure if it meets your needs?
You can also use the MS Windows File Explorer, or the Mac Finder to zip a directory, by finding the directory and right-clicking and choosing the appropriate option.

Sign in to comment.

In newer versions of MATLAB you can also use "Package Application" to create a .mlappinstall file which can be emailed around; however this can only work if the entry point is a function, not a script.

Categories

Find more on Programming in Help Center and File Exchange

Asked:

on 30 Apr 2017

Commented:

on 1 May 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!