save function in matlab

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

 Respuesta aceptada

Paulo Silva
Paulo Silva el 18 de Mzo. de 2011

0 votos

doc function

1 comentario

reem
reem el 18 de Mzo. de 2011
Thank you so muuch
may ALLA protect you

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 18 de Mzo. de 2011

1 voto

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 comentario

reem
reem el 18 de Mzo. de 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)??

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Mzo. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by