%% User Name and Password in weboptions Object
% Set your web service user name and password in a weboptions object. You can use the object as an input argument to webread, websave, or webwrite when your web service requires authentication.

options = weboptions('Username','jdoe','Password','mypassword');

%
% The password is obscured when you display the weboptions object. However, the object stores the password as plain text. You can retrieve the password from the weboptions.Password property.

options.Password

% Copyright 2012 The MathWorks, Inc.