movefile(source, destination)
[status, msg] = movefile(source, destination)
movefile(source, destination, 'f')
| Parameter | Description |
|---|---|
| source | Source file, folder, or list. |
| destination | Destination path. |
| Parameter | Description |
|---|---|
| status | Logical success flag. |
| msg | Error message when the operation fails. |
movefile copies the source to the destination and removes the source when the copy succeeds.
[status, msg] = movefile('source.txt', 'destination.txt')
| Version | Description |
|---|---|
| 2.0.0 | initial version |