WCT Assignment: Name - Rohit Sharma Roll No - 2019IMG-050

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

WCT Assignment

Name - Rohit Sharma


Roll no - 2019IMG-050
Q1

Code :

N = 1:0.1:12
stoi_2 = 1/6 * (sqrt(3*N).^2)
stoi_2 = 10*log(stoi_2)

stoi_3 = 1/6 * (sqrt(3*N).^3)


stoi_3 = 10*log(stoi_3)

stoi_4 = 1/6 * (sqrt(3*N).^4)


stoi_4 = 10*log(stoi_4)
plot(N,stoi_2)
hold on
plot(N,stoi_3)
hold on
plot(N, stoi_4)
hold off
xlabel("Cluster Size")
ylabel("StoI in dB")
print -dpng figure.png
OUTPUT:
Q2

CODE:
import numpy as np
import math

def currN(m,n):
return 1/3*pow(6*math.exp(m/10),2/n)

def estClusterSize(m,n):
result = int(7787)
for i in range(1,11):
for j in range(i,11):
calN = i*i +j*j +i*j
if calN >= currN(m,n):
result = min(result,calN)
return result

print(estClusterSize(15,2))

You might also like