{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

q3fromsect18 - if timeAvg == 0%power signal if timeAvgSq ~=...

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

{[ snackBarMessage ]}