| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| R2010b Documentation → Datafeed Toolbox |
| Contents | Index |
| Learn more about Datafeed Toolbox |
K = kx(IP,P)
K = kx(IP,P,ID)
| IP | IP address for the connection to the Kx Systems, Inc. kdb+ database. |
| P | Port for the Kx Systems, Inc. kdb+ database connection. |
| ID | The username:password string for the Kx Systems, Inc. kdb+ database connection. |
K = kx(IP,P) connects to the Kx Systems, Inc. kdb+ database given the IP address IP and port number P.
K = kx(IP,P,ID) connects to the Kx Systems, Inc. kdb+ database given the IP address IP, port number P, and username:password string ID.
Before you connect to the database, add The Kx Systems, Inc. file jdbc.jar to the MATLAB javaclasspath using the javaaddpath command. The following example adds jdbc.jar to the MATLAB javaclasspath c:\q\java:
javaaddpath c:\q\java\jdbc.jar
Note In earlier versions of the Kx Systems, Inc. kdb+ database, this jar file was named kx.jar. If you are running an earlier version of the database, substitute kx.jar for jdbc.jar in these instructions to add this file to the MATLAB javaclasspath. |
Run the following command from a DOS prompt to specify the port number 5001:
q tradedata.q -p 5001
Connect to a Kx Systems, Inc. server using IP address LOCALHOST and port number 5001:
K = kx('LOCALHOST',5001)
handle: [1x1 c]
ipaddress: 'localhost'
port: 5001
kx.close, kx.exec, kx.get, kx.fetch, kx.tables
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |