save function in matlab

10 次查看(过去 30 天)
reem
reem 2011-3-18
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

采纳的回答

Paulo Silva
Paulo Silva 2011-3-18

更多回答(1 个)

Walter Roberson
Walter Roberson 2011-3-18
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 个评论
reem
reem 2011-3-18
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)??

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by