Lab 2 CS PDF
Lab 2 CS PDF
STUDENT NAME :
MARKS :
The expected outcome for Lab 1 are for the students to have the
ability to
i. Define and explain the types of signals
ii. Compute basic signals
iii. Create and demonstrate plotted signals
iv. Compute transfer function plot
3.0 ABSTRACT
tf =
syslin(„c‟,num,
den) t = 0
:0.01:100
y = csim(„impulse‟,t,tf)
impulse as string for impulse response, step as string for step response
or create your ownvector string
Other related Scilab commands to be introduced :
If “ fx ” is your output string result, then
RESULT IN SCILAB
A Scilab text command as follows:
a. Impulse
-->t=linspace(0,5,500);
-->imp_res=csim('imp',t,TF);
-->plot(t,imp_res),xgrid(),xtitle('Impulseresponse','time','response');
b. Step
-->step_res=csim('step',t,TF);
-->plot(t,step_res),xgrid(),xtitle('Stepresponse','time','response');
c. Ramp
-->ramp_res=csim(t,t,TF);
-->plot(t,ramp_res),xgrid(),xtitle('Rampresponse','time','response')
6.0 RESULT SCILAB
Impulse,Step and Ramp Responses
d. Impulse
-->t=linspace(0,5,500);
-->imp_res=csim('imp',t,TF);
-->plot(t,imp_res),xgrid(),xtitle('Impulseresponse','time','response');
e. Step
-->step_res=csim('step',t,TF);
-->plot(t,step_res),xgrid(),xtitle('Stepresponse','time','response');
f. Ramp
-->ramp_res=csim(t,t,TF);
-->plot(t,ramp_res),xgrid(),xtitle('Rampresponse','time','response');
7.0 DISCUSSION
9.0 REFERENCES
➢ https://www.docsity.com/en/conclusion-of-signals-and-system/2656606/
➢ https://engineeringinterviewquestions.com/what-are-test-signals-and-their-
significance-control-systems-lab-viva
➢ https://en.wikipedia.org/wiki/Control_system
➢