| MATLAB Function Reference |    | 
Graphical Interface
除了利用 copyfile 指令外,也可以利用 Current Directory browser來複製檔案。請在MATLAB的 View 
選單中,勾選 Current Directory 來開啓。
Syntax
copyfilesourcedestcopyfilesource destwritablestatus = copyfile('source','dest',...) [status,msg] = copyfile('source','dest',...)
Description
copyfile  將檔案 source dest
source複製到目錄或檔案 dest中。 source 
和 dest 可以是絕對路徑,也可以是相對路徑。 dest 
路徑一定要指定,但不能為目前所在目錄下已有的檔名。
copyfile  複製到目地檔案並將目地檔設為可寫入(writable)。source dest writable
status = copyfile('source','dest',...)
  若成功複製,回傳1給status,複製失敗則回傳0。
[status,msg] = copyfile('source','dest',...)
 發生錯誤時,回傳 status 和錯誤訊息給 msg。
Example
copyfile myfun.m myfun2.m
file_copied = copyfile('myfun.m','../testfun/private')
file_copied =
     1
See Also
|   | convn | copyobj |  |