Line | |
---|
1 | function disp(h) |
---|
2 | % DISP Display method for the FTP object. |
---|
3 | |
---|
4 | % Matthew J. Simoneau, 14-Nov-2001 |
---|
5 | % Copyright 1984-2012 The MathWorks, Inc. |
---|
6 | |
---|
7 | if length(h) ~= 1 |
---|
8 | % FTP array; Should work for empty case as well. |
---|
9 | s = size(h); |
---|
10 | str = sprintf('%dx',s); |
---|
11 | str(end) = []; |
---|
12 | disp(getString(message('MATLAB:ftp:ArrayOfFtp',str))); |
---|
13 | else |
---|
14 | disp(sprintf( ... |
---|
15 | ' FTP Object\n host: %s\n user: %s\n dir: %s\n mode: %s', ... |
---|
16 | h.host,h.username,char(h.remotePwd.toString),char(h.type.toString))); |
---|
17 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.