Write a function named custom_blocks that takes an n-by-m matrix as an input argument (the function does not have to check the format of the input) and returns a 2n-by-2m matrix as an output argument. The upper left n-by-m sub matrix of the output matrix is the same as the input matrix. The elements of the upper right n-by-m sub matrix are twice as large as the corresponding elements of the input matrix. Similarly, the lower left submatrix is the input matrix multiplied by three and the lower right n-by-m submatrix is four times the input matrix.
1 Comment
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/324391-here-it-is#comment_427814
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/324391-here-it-is#comment_427814
Sign in to comment.