Problem 55220. Matrix Quadrants
66.87% Correct | 33.13% Incorrect
Last Solution submitted on Mar 16, 2023
Aidan Judge on 29 Nov 2022
Andreea on 16 Jan 2023
function M = foursquare(N)
M = zeros(2*N);
Just wrote that program that gives me the right solution but I don't understand why it won't work.Any suggestions?
Christian Schröder on 17 Jan 2023
@Andreea you're hard-coding the value 3 on the twelfth line; the problem description says that the lower-left quadrant should contain N's instead.
Problem Recent Solvers273
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!