you should concatenate the elements of a matrix in one dimensional array, for example if the input is
A = [1 2 3; 4 5 6; 7 8 9];
the output will be like this:
B = [1 2 3 4 5 6 7 8 9];
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers68
Suggested Problems
-
Return the 3n+1 sequence for n
8540 Solvers
-
433 Solvers
-
Find out total non zero element of matrix
288 Solvers
-
Replace every 3rd element in a vector with 4
268 Solvers
-
622 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!