Using stack() without filling gaps

Hey guys!
I just found the very useful function stack(), that stacks variables in a table. Unfortunately it also fills up the gaps with the previous value. Is there a way to just fill the gaps with NaNs in order to prepare your data afterwards the way you like it?
Kind regards, Spacey

Risposte (0)

Questa domanda è chiusa.

Prodotti

Tag

Richiesto:

il 8 Apr 2015

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by