How do I partition a n by m matrix into equal rows

6 次查看(过去 30 天)
How do I partition an n by m matrix into equal rows please I've been trying to write a script that does this but I haven't been having much progress please can anyone help me
  2 个评论
Matt J
Matt J 2020-8-4
Princewill Azorom's question moved here:
Okay... here goes. Write a function that takes two positive integer inputs n and m. The function returns a 3n by m matrix called T. The top third of T(an n by m submatrix) is all 1's, the middle third is all 2's while the bottom third is all 3's.

请先登录,再进行评论。

回答(1 个)

Matt J
Matt J 2020-8-4

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by