signal - 240)is true and it evaluates to 0 if the condition...

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

View Full Document Right Arrow Icon
% m file to generate the signal for Group 1 Question % by student No.: 3713908 function xx = signal(n) xx = ((1.02).^n + 0.5 * sin(2*pi*n/8 + pi/4)).*((n>=0)-(n>240)); % The logical expression ((n>=0)-(n>240)) evaluates to 1 if the condition (0 ? n ?
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 240)is true and it evaluates to 0 if the condition is false. % End of the Function...
View Full Document

This note was uploaded on 04/15/2010 for the course ECTE 906 taught by Professor Pd during the Three '10 term at University of Wollongong, Australia.

Ask a homework question - tutors are online