Problem 55220. Matrix Quadrants
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?
@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
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
Simple equation: Annual salary
Find the dimensions of a matrix
Solve a System of Linear Equations
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!