mongo function does not exist

>> server = "dbtb01";
>> port = 27017;
>> dbname = "mongotest";
>> conn = mongo(server,port,dbname)
Unrecognized function or variable 'mongo'.
I have MatLab 2020b installed as well as the Database Toolbox installed. Nothing I do seems to get the function to work - is there another path?

Respuestas (1)

Monisha Nalluru
Monisha Nalluru el 27 de Oct. de 2020

0 votos

The reason for above error message is,
You would also need to install the additional Support Package for mongo DB connection, as explained in the following documentation page:

5 comentarios

Ginta Avizonis
Ginta Avizonis el 29 de Oct. de 2020
Database Toolbox is installed as suggested. Simply not working. Running on a Mac (Catalina).
Execute the following command
matlab.addons.installedAddons
Check if the list has "Database Toolbox interface for MongoDB"
Ginta Avizonis
Ginta Avizonis el 29 de Oct. de 2020
Monisha Nalluru
Monisha Nalluru el 29 de Oct. de 2020
In order to access Mongo Database from MATLAB. It need to have Database toolbox and Database Toolbox interface for MongoDB
Database Toolbox interface for MongoDB is a support pacakage present in add-ons.
Refer the following link for installation process
Martin Kragelund
Martin Kragelund el 8 de En. de 2021
Editada: Martin Kragelund el 8 de En. de 2021
I see that same problem as Ginta
mongo(server,port)
Unrecognized function or variable 'mongo'.
matlab.addons.installedAddons
ans =
12×4 table
Name Version Enabled Identifier
________________________________________ ________ _______ ______________________________________
"Database Toolbox" "9.2" true "DB"
"Simulink Report Generator" "5.7" true "SR"
"Database Toolbox Interface for MongoDB" "19.2.0" true "MONGODB"
"MATLAB Report Generator" "5.7" true "MR"
"Simulink Test" "3.1" true "SZ"
"Panel" "1.26" true "e558669f-4a80-11e4-9553-005056977bd0"
"Simulink Coder" "9.2" true "RT"
"MATLAB Coder" "4.3" true "ME"
"Stateflow" "10.1" true "SF"
"Simulink" "10.0" true "SL"
"Control System Toolbox" "10.7" true "CT"
"Embedded Coder" "7.3" true "EC"

Iniciar sesión para comentar.

Categorías

Más información sobre Reporting and Database Access en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 22 de Oct. de 2020

Editada:

el 8 de En. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by