How would I create a function for this?

Create a function called translate(dx,dy). Be sure your function suppresses all output, as we will want to use it later inside a large for loop. This function should return the matrix:
T=[1 0 dx] [0 1 dy] [0 0 1]

Answers (0)

This question is closed.

Asked:

on 15 Feb 2017

Closed:

on 15 Feb 2017

Community Treasure Hunt

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

Start Hunting!