Andreea - MATLAB Cody - MATLAB Central

Andreea

10858
Rank
3
Badges
506
Score
1 – 44 of 44

Andreea received Commenter badge for Problem 55220. Matrix Quadrants

on 16 Jan 2023

Andreea submitted a Comment to Problem 55220. Matrix Quadrants

function M = foursquare(N) M = zeros(2*N); for i=1:length(M)/2 for j=1:length(M)/2 M(i,j)=1; j=j+1; end i=i+1; end for i=(length(M)/2)+1:length(M) for j=(length(M)/2)+1:length(M) M(i,j)=3; j=j+1; end i=i+1; end end Just wrote that program that gives me the right solution but I don't understand why it won't work.Any suggestions?

on 16 Jan 2023

Andreea received Community Group Solver badge for Basics on Vectors

on 16 Jan 2023

Andreea submitted Solution 10276890 to Problem 1107. Find max

on 16 Jan 2023

Andreea received Solver badge for Solution 10227052

on 3 Jan 2023

1 – 44 of 44
Go to top of page