{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sumOf - z = squarer(y fprintf'Sum of sine...

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

View Full Document Right Arrow Icon
function output = sumOf() %SUMOF Summary of this function goes here % Detailed explanation goes here % t = 0:0.001:3; y=sin(10*pi*t); fprintf('Sum of sine \n%d\n',sum(y))
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: z = squarer(y); fprintf('Sum of sine squared \n%d\n',sum(z)) %due to rounding inaccuracies we get diff answer end e...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online