how to fix Cell array or struct should not contain vectors?

i was trying to save some data to database mysql. but i have this error.
Error using database/fastinsert (line 265) Cell array or struct should not contain vectors
did anyone ever have same problem? and know how to fix this?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Sept. de 2016
When you have a vector of numeric values within the cell of a cell array, and you try to insert into the database, you are effectively requesting that all of those values be put into the same location. That is not supported for fastinsert()
Is that something you need to do? Have a vector stored in a database field?

6 comentarios

Walter Roberson , in my case, i tried to process audio data, output of the process is array cell that contain vector. i have to insert it to database in order to use it in later process.
so if i want save the vector , what should i do?
the output that i want to save is X. X=1x228 double
okay, thank you for your advice mr walter. i'll check it out.
mr walter? do you have another advice i try that odbc but it confuse me, do you have any advice to convert blob with jdbc mysql?
Sorry, I am not familiar with that interface.

Iniciar sesión para comentar.

Más respuestas (0)

Preguntada:

el 26 de Sept. de 2016

Comentada:

el 2 de Oct. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by