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