Mercurial > hg > octave-nkf
comparison scripts/miscellaneous/movefile.m @ 7540:3422f39573b1
strcat.m: Matlab compatibility, with cstrcat.m replacing conventional strcat.m.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 28 Feb 2008 02:41:19 -0500 |
parents | fab9bc33b949 |
children | 95c3e38098bf |
comparison
equal
deleted
inserted
replaced
7539:3e107d73aeb4 | 7540:3422f39573b1 |
---|---|
57 if (! ischar (f2)) | 57 if (! ischar (f2)) |
58 error ("movefile: second argument must be a character string"); | 58 error ("movefile: second argument must be a character string"); |
59 endif | 59 endif |
60 | 60 |
61 if (nargin == 3 && strcmp (force, "f")) | 61 if (nargin == 3 && strcmp (force, "f")) |
62 cmd = strcat (cmd, " ", cmd_force_flag); | 62 cmd = cstrcat (cmd, " ", cmd_force_flag); |
63 endif | 63 endif |
64 | 64 |
65 ## If f1 isn't a cellstr convert it to one. | 65 ## If f1 isn't a cellstr convert it to one. |
66 if (ischar (f1)) | 66 if (ischar (f1)) |
67 f1 = cellstr (f1); | 67 f1 = cellstr (f1); |