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

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

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