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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!