Main Content

Document Database

Explore and manage collections of documents in MongoDB®using Database Toolbox™ interface for MongoDB

Connect to MongoDB using the Database Toolbox interface for MongoDB. Access documents and import data stored in documents into the MATLAB®工作空间进行分析。运行MongoDB查询霍霍t a collection of documents in MongoDB. Export MATLAB tables, structures, and objects into MongoDB.

To use this interface, you must first install it.

Functions

expand all

mongo MongoDBconnection
isopen Determine ifMongoDBconnection is open
close CloseMongoDBconnection
count Count total number of documents inMongoDBcollection
distinct Retrieve distinct values for field inMongoDBcollection
find Retrieve documents inMongoDBcollection
createCollection CreateMongoDBcollection
dropCollection DropMongoDBcollection
insert Insert one or multiple documents intoMongoDBcollection
remove Remove one or multiple documents fromMongoDBcollection
update Update one or multiple documents inMongoDBcollection

Topics

Database Toolbox Interface for MongoDB Installation

Install the Database Toolbox interface for MongoDB and learn about the supported MongoDB versions.

Import and Analyze Data from MongoDB

Import all documents from a MongoDB collection into the MATLAB workspace and perform a simple data analysis of text and numerical fields.

Import Filtered Data from MongoDB

Filter data using a MongoDB query and import the data into the MATLAB workspace.

Import Large Data from MongoDB

Import a large set of flight data from a collection into the MATLAB workspace. To avoid out-of-memory issues, import large data in batches.

Export MATLAB Data into MongoDB

Create MongoDB collections and insert table and structure data from the MATLAB workspace into the collections.

Import and Export MATLAB Objects Using MongoDB

Serialize and deserialize objects with MongoDB and MATLAB.

Troubleshooting

Database Toolbox Interface for MongoDB Error Messages

Address MongoDB and Database Toolbox interface for MongoDB error messages.