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

Answers (0)

This question is closed.

Products

Tags

Asked:

on 8 Apr 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!