arrayop - poly=v1*v2 otherwise disp'Invalid operation poly=...

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

View Full Document Right Arrow Icon
function poly=arrayop(v1,v2,string) f if all(size(v1)== size(v2)) i switch string case 'add' poly=v1+v2; case 'sub' poly=v2-v1; case 'mult'
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: poly=v1.*v2; otherwise disp('Invalid operation!'); poly=; end else disp('Invalid operation!'); end...
View Full Document

This note was uploaded on 02/18/2010 for the course ENGINEERIN 7 taught by Professor Patzek during the Spring '08 term at Berkeley.

Ask a homework question - tutors are online