Displaying an array of zeroes.

1 view (last 30 days)
Louis Grainger
Louis Grainger on 6 Apr 2021
Answered: Rik on 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?

Accepted Answer

Rik
Rik on 6 Apr 2021
doc fprintf

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!