pivoting an array into a cell

i have an array named Inputs = [1 2 3 4 5 6 7 8 9] and i want to seperate this using pivot into cell(1,2) = {[],[]} so the result is cell = {[1 2 3 4 5], [6 7 8 9]} and the input variable just the pivot variable = 2. How can i solve this??? thanks before :)

Answers (0)

Categories

Asked:

on 10 Jan 2014

Community Treasure Hunt

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

Start Hunting!