double3 - avg =(l1 l2/2 la = 2*length(a-1 b = zeros(1,la...

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

View Full Document Right Arrow Icon
function output = double3(a) %DOUBLE Summary of this function goes here % Detailed explanation goes here l1 = a(1:end-1); l2 = a(2:end);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: avg = (l1 +l2)/2; la = 2*length(a)-1; b = zeros(1,la); b(1:2:end)=a; b(2:2:end)=avg; output=b; end e...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online