MATLAB: Unable to use sqlwrite in MATLAB 2017

mysql sql

I am working on a project in which I have to write the MATLAB data to database. I tried to use sqlwrite but error occurred. Statement of error was "Undefined function or variable 'sqlwrite'". Is sqlwrite not available in MATLAB 2017? If so then please suggest me the alternative of sqlwrite.

Best Answer

The sqlwrite function was introduced in release R2018a of Database Toolbox. According to those Release Notes, "The sqlwrite function replaces the datainsert, fastinsert, and insert functions, which insert data into a database."