Advertisement
DEMcKnight

Helping someone with Matlab square

Nov 14th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.35 KB | None | 0 0
  1. function [] = DrawSquare( width, height)
  2. %DRAWSQUARE Summary of this function goes here
  3. %   Detailed explanation goes here
  4.  
  5. %running through the vertical gamut
  6. for y=1:height
  7.     %running through the horizontal gamut
  8.     for x=1:width
  9.         %the symbol the square shall be composed of is '1'
  10.         fprintf('1');
  11.     end
  12.     fprintf('\n');
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement