Add zero to make length divisible by 3

Hallo,
i have vector that i want to reshape into a matrix. Therefor i firstly need to prove if the length is divisible by 3. if not i want to add as much zeros at the end of the vector until the length is divisible by 3? can someone help? thanks!

 Accepted Answer

More Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Asked:

on 6 Aug 2016

Commented:

on 6 Aug 2016

Community Treasure Hunt

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

Start Hunting!