Reducing steps in code
Mostrar comentarios más antiguos
Is there a way to create a vector and take only the nth value of that vector, all in one line? For example if I wanted to return the current year I could easily do it in two lines:
d = datevec(date);
y = d(1);
Can I do this without first defining d?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Pie Charts en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!