Centering Matrix Culumn Data

4 vues (au cours des 30 derniers jours)
Wahyu A
Wahyu A le 18 Jan 2021
Commenté : Wahyu A le 19 Jan 2021
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 :)

Réponse acceptée

madhan ravi
madhan ravi le 18 Jan 2021
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
  1 commentaire
Wahyu A
Wahyu A le 19 Jan 2021
thanks sir

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by