save function in matlab

8 visualizzazioni (ultimi 30 giorni)
reem
reem il 18 Mar 2011
How can I save the function in a separate file in Matlab?? I am new student in Matlab and I want to know ,how to do this? Thanks in advance

Risposta accettata

Paulo Silva
Paulo Silva il 18 Mar 2011
doc function
  1 Commento
reem
reem il 18 Mar 2011
Thank you so muuch
may ALLA protect you

Accedi per commentare.

Più risposte (1)

Walter Roberson
Walter Roberson il 18 Mar 2011
Use the editor File->New (Empty File). Paste in the code or type in the code to the new document produced. Save the file.
  1 Commento
reem
reem il 18 Mar 2011
Thank you so much for your fast answer
if you do not have any objection mr.walter ,could you answer me?
I want to ensure and know ,I read sometime in Questions write a function and another Questions write a program
what is the difference between them,I think the function not need to made any program(I mean only write the function that do the operation,not program)??

Accedi per commentare.

Categorie

Scopri di più su Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by