MATLAB 帮助中心
Determine if Money.Net connection is valid
v = isconnection(c)
v = isconnection(c) returns logical 1 (true) if c is a valid Money.Net connection. Otherwise, isconnection returns logical 0 (false).
v
c
1 (true)
isconnection
0 (false)
example
collapse all
Create Money.Net connection c using a user name and password.
username = 'user@company.com'; pwd = '999999'; c = moneynet(username,pwd);
Validate the Money.Net connection c.
v = logical 1
isconnection returns 1, indicating a successful connection.
1
Close the Money.Net connection.
close(c)
Validate that the Money.Net connection c is closed.
v = logical 0
isconnection returns 0, indicating a closed connection.
0
Money.Net connection, specified as a connection object created using moneynet.
moneynet
true
false
Valid Money.Net connection, returned as a logical 1 (true) that specifies a successful connection, or logical 0 (false) that specifies a closed or invalid connection.
Introduced in R2016b
moneynet | close
close
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处