Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isconnection

Determine if Money.Net connection is valid

Syntax

v = isconnection(c)

Description

example

v = isconnection(c) returns logical 1 (true) if c is a valid Money.Net connection. Otherwise, isconnection returns logical 0 (false).

Examples

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 = isconnection(c)
v =

  logical

   1

isconnection returns 1, indicating a successful connection.

Close the Money.Net connection.

close(c)

Validate that the Money.Net connection c is closed.

v = isconnection(c)
v =

  logical

   0

isconnection returns 0, indicating a closed connection.

Input Arguments

collapse all

Money.Net connection, specified as a connection object created using moneynet.

Output Arguments

collapse all

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

Was this topic helpful?