blackbox - la=length(a); lb=length(b); l a= a+1; a b=b*2; b...

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

View Full Document Right Arrow Icon
function output = blackbox(a,b) %adds 1 to arg a and multiplies b by 2 %returns the product of a and b in the output %
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: la=length(a); lb=length(b); l a= a+1; a b=b*2; b if la < lb output = a.*b(1:la); else output = a(1:lb).*b; end...
View Full Document

This note was uploaded on 10/02/2011 for the course CSE 3451 taught by Professor A during the Spring '10 term at York University.

Ask a homework question - tutors are online