Displaying an array of zeroes.

2 visualizzazioni (ultimi 30 giorni)
Louis Grainger
Louis Grainger il 6 Apr 2021
Risposto: Rik il 6 Apr 2021
given:
A = zeros([10, 10])
using the disp(x) function the output is not reminiscent of a square due to the horizontal spaces being greater than the vertical ones, is there a function to better attain the square shape. alternativley can you define the distance between elements of the array within the display function?

Risposta accettata

Rik
Rik il 6 Apr 2021
doc fprintf

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by