Page 1 of 1

2. Consider the following snippet of code for p = 1:10 for g 1:10 x(g,p) - g*p; end end = This piece of code: Fills the

Posted: Mon May 09, 2022 7:07 am
by answerhappygod
2 Consider The Following Snippet Of Code For P 1 10 For G 1 10 X G P G P End End This Piece Of Code Fills The 1
2 Consider The Following Snippet Of Code For P 1 10 For G 1 10 X G P G P End End This Piece Of Code Fills The 1 (32.71 KiB) Viewed 26 times
2. Consider the following snippet of code for p = 1:10 for g 1:10 x(g,p) - g*p; end end = This piece of code: Fills the entire first row of the array, then moves on to the next row, and so on to fill the array. Fills the entire first column of the array, then moves on the next column, and so on to fill the array.