transform matrix nx3 to cell nx2
2 views (last 30 days)
Show older comments
Pilar Julieta Tagliero
on 23 Jun 2021
Commented: Pilar Julieta Tagliero
on 24 Jun 2021
Hello
Starting from this 4x3 matrix:
O =
0 10 0
0 10 0
0.1 2 3
0.1 2 3
How could I obtain this cell?
P =
4×2 cell array
{[0 10]} {[0]}
{[0 10]} {[0]}
{[0.1 2]} {[3]}
{[0.1 2]} {[3]}
In this case the number of rows is fixed n=4, but I need n to be a variable.
Thanks in advance!!
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!