|
|
matlab and access
Is access of access databases part of the basic matlab capability? I tried to open a database with the database command, and Matlab did not recognize this? Could it be because access was not installed on the computer? Or do I need an additional matlab software component?
|
|
0
|
|
|
|
Reply
|
Sharon
|
12/30/2009 11:30:07 AM |
|
"Sharon Lindenbaum" <sharon.L@elbitsystems.com> wrote in message <hhfdju$abc$1@fred.mathworks.com>...
> Is access of access databases part of the basic matlab capability? I tried to open a database with the database command, and Matlab did not recognize this? Could it be because access was not installed on the computer? Or do I need an additional matlab software component?
Hi Sharon
I use Access as a database in connection with matlab. Try to write "ver" in your command window. You need the "DATABASE TOOLBOX" to import and export data to a database. If you do not have any experience with the "Database TOOLBOX" I would recommend you to read about the functions exec, update and insert.
You also have to setup an access database, but it is very easy and can be read in the documentation.
Best Regards
Hans
|
|
0
|
|
|
|
Reply
|
Hans
|
12/30/2009 11:56:03 AM
|
|
"Sharon Lindenbaum" <sharon.L@elbitsystems.com> wrote in message <hhfdju$abc$1@fred.mathworks.com>...
> Is access of access databases part of the basic matlab capability? I tried to open a database with the database command, and Matlab did not recognize this? Could it be because access was not installed on the computer? Or do I need an additional matlab software component?
It is possible to connect to the database without going through the database toolbox, using ADODB objects. You will have to have Access installed on your computer so the database engine is available to you (so I am not sure if this solution would work on Linux or Mac).
Some example code:
conn = actxserver('ADODB.Connection');
% The connection string below may vary for you...Google 'ms access connection
% string' for examples that may be more pertinent for your use.
conn.Open('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=;')
% Run a query using the 'Execute' command. If it is expected to return results
% (i.e. a % SELECT statement), use 'GetRows' to see your data.
sqlQuery = 'select myData from myTable'
data = conn.Execute(sqlQuery).GetRows' % Note transpose. 'data' is usually a cell array.
|
|
0
|
|
|
|
Reply
|
Michael
|
12/30/2009 1:53:04 PM
|
|
|
2 Replies
301 Views
(page loaded in 0.129 seconds)
Similiar Articles: Database toolbox and connection to access database - comp.soft-sys ...Hi I have installed 64bit matlab and have problems to setup the connection to a acccess 2007 database. First I did setup my databasebase by usin... Using Matlab to access tables build with Datastream AFO for Excel ...Using Matlab to access tables build with Datastream AFO for Excel ... Using Matlab to access tables build with Datastream AFO for Excel ... Uncertainty in average ... cannot access mcc daq USB-1298FS with matlab 2010a - comp.soft-sys ...Hi, I'm trying to use an aquisition card from Measurement Computing (USB-1208FS) with matlab 2010a. When I try to create an analoginput object I... ??? Attempted to access x(3); index out of bounds because numel(x ...Hi, I am trying to calculated solution of 6 ODE's using Matlabs ODE45 fucntion and I am getting the following error ??? Attempted to access x(3)... Matlab and FTDI VCP drivers - comp.soft-sys.matlabmatlab and access - comp.soft-sys.matlab Is access of access databases part of the basic matlab capability? I tried to open a database with the database command, and ... Access Denied in Windows 7 - comp.soft-sys.matlabHi, Windows 7 doesn't allow Matlab to enter into some of its files (at least in my case) this is the message I got: java.io.FileNotFoundException: C:\Users\Username ... Database Connection Windows 7 64bit - comp.soft-sys.matlab ...Database toolbox and connection to access database - comp.soft-sys ... Hi I have installed 64bit matlab and have problems to setup the connection to a acccess 2007 ... Reading/Writing Access database - comp.soft-sys.matlabHi, Is it possible to read/write data from *.accdb (i.e., access database) files? If yes, could you point me to the right functions and examples? ... Could not access the MCR component cache - comp.soft-sys.matlab ...Hi eveyone, I am using a MATLAB compiled library in Linux environment but when want to access it and run my c++ code, I receive this message: "Co... MATLAB Mobile is available via Apple's Apps Store - comp.soft-sys ...It provides command line access for MATLAB and any add-on product for which a user is licensed. To install, the licensed user downloads the free MATLAB Mobile app to ... Analyzing and Accessing Data - MATLABData Access. MATLAB is an efficient platform for accessing data from files, other applications, databases, and external devices. You can read data from popular file formats ... MATLAB - Wikipedia, the free encyclopediaAlthough MATLAB is intended primarily for numerical computing, an optional toolbox uses the MuPAD symbolic engine, allowing access to symbolic computing capabilities. 7/24/2012 1:22:10 AM
|
|
|
|
|
|
|
|
|