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?

 Réponse acceptée

Walter Roberson
Walter Roberson le 26 Sep 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 commentaires

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.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by