Back to Browse

How to connect Matlab with Database

33.7K views
Nov 3, 2017
7:51

This video describes how to connect MATLAB with database (MySQL). First you need to install ODBC connector, the link to download ODBC connector is https://dev.mysql.com/downloads/connector/odbc/5.3.html. Please copy and past below code to check whether your database is connected or not. conn = database('database_name','username','pwd'); curs = exec(conn,'SELECT * FROM Table_name'); curs = fetch(curs); curs.Data

Download

1 formats

Video Formats

360pmp411.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

How to connect Matlab with Database | NatokHD