Borrar filtros
Borrar filtros

cell output of function

1 visualización (últimos 30 días)
Thor
Thor el 19 de Abr. de 2014
Comentada: Thor el 19 de Abr. de 2014
I have a function that returns a cell, but i only need what is stored in that cell saved to D. Is there a nice way of doing this ?
An ugly solution would be:
D = fDurations(I);
D = D{1};
Could i do this in a single line ?
  2 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 19 de Abr. de 2014
Why is this ugly?
Thor
Thor el 19 de Abr. de 2014
I feel like it should be something i could do in a single line :)

Iniciar sesión para comentar.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 19 de Abr. de 2014
D=cell2mat(fDurations(I));

Más respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by