Centering Matrix Culumn Data

9 次查看(过去 30 天)
Hy, Everyone. I tried print data matrix in the command windows MATLAB and the results are not centered with numbers.
can anyone help me to fix this ? :)
Thanks :)

采纳的回答

madhan ravi
madhan ravi 2021-1-18
ii = 33
ii = 33
x = randi([0, 1], 4) * ii % they are automatically centered xD
x = 4×4
0 0 0 33 0 0 0 33 0 0 33 0 0 0 0 33

更多回答(0 个)

类别

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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by