Borrar filtros
Borrar filtros

How to convert a mixed array to cell array

2 visualizaciones (últimos 30 días)
Kanakaiah Jakkula
Kanakaiah Jakkula el 28 de Mayo de 2016
Comentada: Star Strider el 28 de Mayo de 2016
Hi,
I have a mixed array (cell, numeric, string), but I eventually want to convert all to cell. Can any one tell how to do this.
Thanks,

Respuesta aceptada

Star Strider
Star Strider el 28 de Mayo de 2016
The documentation for Cell Arrays should provide all the information you need.
  2 comentarios
Kanakaiah Jakkula
Kanakaiah Jakkula el 28 de Mayo de 2016
But, few coulmns of my data is cell array, and other half is double, I want to convert the every thing to cell array. How can I do this.
Star Strider
Star Strider el 28 de Mayo de 2016
Without seeing it I cannot say for sure. There are simply too many possibilities to cover them all.
Something like this would be the simplest approach:
Everything = {Cell_Array, {Double_array}, {String_Array}};
Experiment with that (and refer to the documentation link I provided) to get the result you want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by