| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
ascii(f)
ascii(f) sets the download and upload FTP mode to ASCII, which converts new lines, where f was created using ftp. Use this function for text files only, including HTML pages and Rich Text Format (RTF) files.
Connect to the MathWorks FTP server, and display the FTP object.
tmw=ftp('ftp.mathworks.com');
disp(tmw)
FTP Object
host: ftp.mathworks.com
user: anonymous
dir: /
mode: binaryNote that the FTP object defaults to binary mode.
Use the ascii function to set the FTP mode to ASCII, and use the disp function to display the FTP object.
ascii(tmw) disp(tmw) FTP Object host: ftp.mathworks.com user: anonymous dir: / mode: ascii
Note that the FTP object is now set to ASCII mode.
![]() | arrayfun | asec | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |