Borrar filtros
Borrar filtros

Cell of character arrays

2 visualizaciones (últimos 30 días)
Pooja Patil
Pooja Patil el 8 de Dic. de 2019
Comentada: Pooja Patil el 8 de Dic. de 2019
How to create a cell of character array of size 10*1 with first 5 rows containing 'cat' and next 5, 'dog'?
An example of this type of cell array can be found in MATLAB when 'fisheriris.mat' is located.
I am trying to create a cell similar to that of 'species' variable.
Please help me

Respuesta aceptada

Vladimir Sovkov
Vladimir Sovkov el 8 de Dic. de 2019
S=cell(10,1);
S(1:5)={'cat'};
S(6:10)={'dog'};
  1 comentario
Pooja Patil
Pooja Patil el 8 de Dic. de 2019
Thank you very much for the response. It is really helpful.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by