You are on page 1of 7

Unit Step Sequence

I.
y=u [u ]

II.
n=input( 'Enter N value:' );
t=0:1:n-1;
y1=ones(1,n);
subplot(2,2,1);
stem(t,y1);
ylabel('Amplitude');
xlabel('n);
title(‘Unit Step Sequence’);
→ Enter amplitude value: 10
Explain:
n=input( 'Enter N value:' );
→ The command requires entering amplitude value.

t=0:1:n-1;
→ Create an array with values from 0 to n−1 in jump of 1.

y1=ones(1,n);
→ Create an unit function with n: amplitude value.

subplot(2,2,1);
→ Create axes in tilted position: 2 row, 2 column and the graph is at position:1

plot(t,y1);
→ Draw y1 graph with array t

ylabel('Amplitude');
xlabel('n’);
→ Create label for x and y axes.

title(‘Unit Step Sequence’);


→ Create title graph

After running the code, we get a unit step graph similar to theory because we
substitute the t values, we get the y1 value corresponding to the theory.
Cos Plus Sequence
I.
y= Acos (ωt +φ)with ω=2 π f

A: amplitude of maximum value


ω :mathematical frequency (rad/sec)

f: real or natural frequency (Hz)


φ :phase angle (rad)

With φ=0 , we have : y= Asin(ωt)

{
0 , ωt=kπ
Special values of sine sequence : y= π
A , ωt= + kπ
2
Asin(ωt), otherwise

II.
a=input('Enter amplitude value:');
f=input(‘Enter frequency value:’);
t=0:.01:pi;
y=a*cos(2*pi*f*t);
figure('name','cos signal');
subplot(2,1,1);
plot(t,y);
ylabel('Amplitude');
xlabel('t');
title('cos sequence');
→ Enter amplitude value: 5

→ Enter frequency value: 5

Explain:
a=input( 'Enter amplitude value:' );
→ The command requires entering amplitude value.

f=input(‘Enter frequency value:’);


→ The command requires entering frequency value.

t=0:.01:pi;
→ Create an array with values from 0 to π in jump of 0.01.

y=a*cos(2*pi*f*t);
→ Create an sine function with a: amplitude value, 2*pi*f: mathematical
frequency.
figure('name','cos signal');
→ Create figure window

subplot(2,1,1);
→ Create axes in tilted position: 2 row, 1 column and the graph is at position:1

plot(t,y);
→ Draw y graph with array t

ylabel('Amplitude');
xlabel('t');
→ Create label for x and y axes.

title('cos sequence');
→ Create title graph

After running the code, we get a cos graph similar to theory because we
substitute the t values, we get the y value corresponding to the theory.

1. Thuyết trình, tổng hợp file word, soạn câu hỏi cho các nhóm từ nội dung báo
cáo
2. Xác định các thông số của tải quy về trục động cơ, lựa chọn động cơ AC phù
hợp với hệ thống trên
3. Lựa chọn bộ biến tần Mitsubishi phù hợp để truyền động cho hệ thống trên,
lựa chọn PLC (không phải Mitsu) có thể kết nối với biến tần đã chọn, trình bày
cách kết nối PLC với biến tần
4. Viết chương trình cho PLC kết hợp với biến tần sao cho hệ thống hoạt động
theo đúng yêu cầu, viết báo cáo bài tiểu luận
5. Tìm hiểu cấu tạo, ưu + nhược điểm của động cơ AC đã chọn, vẽ sơ đồ khối
hệ thống điều khiển sẽ thiết kế
6. Xác định đường đặc tính cơ, các thông số khác của động cơ như (dòng định
mức, moment định mức, …)

You might also like