replicate - % width are attained. % [r c] = size(in); out =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function out = replicate(in,width,height) % usage: out = replicate(in,width,height) % This function takes in an array and repeats it until the input height and
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % width are attained. % [r c] = size(in); out = in(mod(0:width-1,r)+1,mod(0:height-1,c)+1);...
View Full Document

This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Institute of Technology.

Ask a homework question - tutors are online