Problem 2803. Split up vector or matrix delimited by NaNs
Given several vectors contained within one vector delimited by NaNs, return each individual vector as an element of a cell vector.
Given several matrices combined in one matrix delimited by all-NaN rows , return each matrix as an element of a cell vector.
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Sky Sartorius
on 30 Dec 2014
Doh! Embarrassing copy paste error. I hope it's all fixed now.
Guillaume
on 30 Dec 2014
Test 10 still test for emptiness with isequal.
Dyuman Joshi
on 24 Sep 2022
Test suite has been updated to include row vectors as test cases as well.
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
Test if a Number is a Palindrome without using any String Operations
237 Solvers
-
Back to basics 22 - Rotate a matrix
910 Solvers
-
Arrange vector in ascending order
785 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
832 Solvers
-
Generate a string like abbcccddddeeeee
266 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!