cell output of function

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 Commenti

Azzi Abdelmalek
Azzi Abdelmalek il 19 Apr 2014
Why is this ugly?
Thor
Thor il 19 Apr 2014
I feel like it should be something i could do in a single line :)

Accedi per commentare.

 Risposta accettata

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange

Prodotti

Tag

Richiesto:

il 19 Apr 2014

Commentato:

il 19 Apr 2014

Community Treasure Hunt

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

Start Hunting!

Translated by