Q3fromsect18 - if timeAvg == 0%power signal if timeAvgSq ~= 0 fprintf'Power Signal\n%d\n,0 end else%mess signal if timeAvgSq ~= 0 fprintf'Message

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

View Full Document Right Arrow Icon
function output = q3fromsect18(x) %Q3FROMSECT18 Summary of this function goes here % Detailed explanation goes here N = length(x); timeAvg = (1/N)*(sum(x)); timeAvgSq = (1/N)*(sum(x).^2);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if timeAvg == 0 %power signal if timeAvgSq ~= 0 fprintf('Power Signal \n%d\n',0) end else %mess signal if timeAvgSq ~= 0 fprintf('Message Signal \n%d\n',1) end end 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