MATLAB Answers

here it is!!!!

1 view (last 30 days)
Guitarist Pandey
Guitarist Pandey on 10 Feb 2017
Commented: James Tursa on 10 Feb 2017
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

James Tursa
James Tursa on 10 Feb 2017
What have you done so far? Please post your current code and ask specific questions about it and we can help.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!