User`s guide
insert
7-169
Close the database connection.
close(conn)
Input Arguments
conn — Database connection
database connection object
Database connection, specified as a database connection object created using database.
tablename — Database table name
string
Database table name, specified as a string denoting the name of a table in your database.
Data Types: char
colnames — Database table column names
cell array of strings
Database table column names, specified as a cell array of one or more strings to denote
the columns in the existing database table tablename.
Example: {'col1','col2','col3'}
Data Types: cell
data — Insert data
cell array | numeric matrix | table | dataset | structure
Insert data, specified as a cell array, numeric matrix, table, dataset array, or structure.
You do not specify the type of data that you are exporting. The data is exported in its
current MATLAB format. If data is a structure, field names in the structure must
match colnames. If data is a table or a dataset array, the variable names in the table
or dataset array must match colnames. If data is a structure, table, or dataset array,
specify each field or variable as a:
• Cell array
• Double vector of size m-by-1, where m is the number of rows to insert
Data Types: double | struct | table | cell