Song Lee
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
Write a function SumNthRowSquares(M,n) that returns the sum of the squares of the numbers in the nth row of matrix M. Use ‘sum’ only to sum a vector. In other words, retrieve the appropriate row and sum it.
When I type 'SumNthRowSquares(M,n)' it has an error plz help
6 years 前 | 1 个回答 | 0
1
个回答提问
Write a function sides_products(M) that given a matrix M returns a 2-by-2 matrix containing the 4 products of the numbers in each of M’s 4 sides (i.e., the outside rows and columns of M) starting with the top side and going in clockwise order. ***
plz help
6 years 前 | 1 个回答 | 0
1
个回答提问
Generalize centervalue to return the center value and a 2-element vector representing the row-column coordinate of the center. Call it centervalue2. >> centervalue2(magic(5)) ans = 13 >> [c loc] = centervalue2(magic(5)) c = 13 loc = 3 3
plz help
6 years 前 | 1 个回答 | 0
1
个回答提问
) Write a function centervalue(M) that returns the value of the central element of matrix M. You may assume that M has an odd number of rows and columns. Have centervalue call your function halfway. >> centervalue(magic(5)) ans = 13
Plz help!!
6 years 前 | 1 个回答 | 0
1
个回答提问
Write a function halfway(n) that given an odd integer n as input, returns the integer that’s halfway between 1 and n. >> halfway(9) ans = 5
plz help
6 years 前 | 1 个回答 | 0
1
个回答提问
) Write a function sides_products(M) that given a matrix M returns a 2-by-2 matrix containing the 4 products of the numbers in each of M’s 4 sides (i.e., the outside rows and columns of M) starting with the top side and going in clockwise order. ***
plz help
6 years 前 | 0 个回答 | 0
0
个回答提问
Generalize centervalue to return the center value and a 2-element vector representing the row-column coordinate of the center. Call it centervalue2
plz help
6 years 前 | 0 个回答 | 0
0
个回答提问
Write a function centervalue(M) that returns the value of the central element of matrix M. You may assume that M has an odd number of rows and columns. Have centervalue call your function halfway. >> centervalue(magic(5))
Plz help. Im not getting anything at all
6 years 前 | 1 个回答 | 0