blob: 05321f4166ef3595d3464e873d48813cbc97c0af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Example 1.36<f>
//Find whether the given signal is causal or not y(n)=x(n^2).
clear all;
clc;
n=-10:10;
for i=1:length (n)
x(i)=i;
y(i)=(i.^2) ;
end
causal=%t;
for i=1: length (n)
if n(i)<0 &y(i)~=0 then
causal=%f;
end
end
disp(causal,"The statement that the system is causal is:");
|