Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将数据从php传递到MATLAB_Php_Mysql_Matlab - Fatal编程技术网

将数据从php传递到MATLAB

将数据从php传递到MATLAB,php,mysql,matlab,Php,Mysql,Matlab,我有一个使用mysql数据库的php项目 我的问题是如何将数据从php(从mysql数据库检索数据)传递到MATLAB程序 有什么工具可以做到这一点吗?不需要使用PHP。可以使用发出SQL语句将数据导入MATLAB工作区 例如: logintimeout(5) conn = database('dbtoolboxdemo', 'username', 'password') curs = exec(conn, 'select productNumber, productDescription fr

我有一个使用mysql数据库的php项目 我的问题是如何将数据从php(从mysql数据库检索数据)传递到MATLAB程序
有什么工具可以做到这一点吗?

不需要使用PHP。可以使用发出SQL语句将数据导入MATLAB工作区

例如:

logintimeout(5)
conn = database('dbtoolboxdemo', 'username', 'password')
curs = exec(conn, 'select productNumber, productDescription from productTable')

>> curs =
      Attributes: []
            Data: {10x1 cell}
  DatabaseObject: [1x1 database]
        RowLimit: 0
        SQLQuery: 'select productdescription from producttable'
         Message: []
            Type: 'Database Cursor Object'
       ResultSet: [1x1 sun.jdbc.odbc.JdbcOdbcResultSet]
          Cursor: [1x1 com.mathworks.toolbox.database.sqlExec]
       Statement: [1x1 sun.jdbc.odbc.JdbcOdbcStatement]
           Fetch: [1x1 com.mathworks.toolbox.database.fetchTheData]

close(curs)
close(conn)