50٪ تخفیف روی تمام دوره‌ها!
پایان تخفیف تا:
مشاهده دوره‌ها
0

کد نویسی در متلب

با سلام و خسته نباشین

یه سری شبه کد هست که میخوام در نرم افزار متلب بنویسم..با مشورت از اهلش گفتن که باید وکتور تعریف کنم اما چطور نمیدونم!!!!

لطفا راهنمایی بفرمایین..

1.	Initialization: BLERtarget  = 10%, Cstepup = 0.2, Cstepdown = Cstepup (1-BLER target)/ (BLERtarget) , C = 0, Cmax  = +5, Cmin = -5, MCS level L and its bounds Lmax,Lmin, repetition number N and its bounds Nmax, Nmin . We empirically initialize the MCS level and repetition number based on the channel condition.
2.	if period T expired out then
3.	if BLER < 7% then
4.	N = N/2.
5.	else if BLER > 13% then
6.	N = 2N
7.	end if
8.	end if
9.	if L > Lmin & L < Lmax then
10.	if HARQ feedback = ACK then
11.	C = min{C + Cstepup ,Cmax }.
12.	else if HARQ feedback = NACK then
13.	C = max {C – C stepdown ,C min }.
14.	end if
15.	if C = C max then
16.	L = L + 1.
17.	else if C =C min then
18.	L = L - 1.
19.	end if
20.	else if L = Lmin then
21.	if HARQ feedback = ACK then
22.	if N = Nmin then
23.	C = min{C + Cstepup , C max }.
24.	if C = C max then
25.	L = L + 1
26.	end if
27.	else if N > Nmin then
28.	N = N/2.	
29.	end if
30.	else if HARQ feedback = NACK then
31.	if N = N max  then
32.	the current channel condition is extremely bad.
33.	else if N < N max then
34.	N = 2N.
35.	end if
36.	end if
37.	else if L = Lmax then
38.	if HARQ feedback = ACK then
39.	if N = N min then
40.	the current channel condition is extremely good.
41.	else if N > Nmin then         
42.	N = N/2
43.	end if      
44.	if HARQ feedback = NACK then
45.	C = max{C – C stepdown ,Cmin }.
46.	if C = Cmin  then
47.	L = L – 1.
48.	end if
49.	end if 
50.	end if
پرسیده شده در 1396/07/04 توسط

0 پاسخ

این سوال هنوز پاسخی ندارد

پاسخ شما