cell output of function

1 vue (au cours des 30 derniers jours)
Thor
Thor le 19 Avr 2014
Commenté : Thor le 19 Avr 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 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 19 Avr 2014
Why is this ugly?
Thor
Thor le 19 Avr 2014
I feel like it should be something i could do in a single line :)

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 19 Avr 2014
D=cell2mat(fDurations(I));

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by