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

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

Ask a homework question - tutors are online