Professional Documents
Culture Documents
Two Area With Attack-New
Two Area With Attack-New
import openpyxl
import os
i=0
dt = 0.05
T=6
N = int(T / dt)
B = np.array([[-6, 0],
[0, -6],
[0, 0],
[0, 0],
[0, 0],
[0, 0],
[0, 0]])
[0]])
excel_file_name = 'C:\\Users\\Hrithik\\Desktop\\a18.xlsx'
workbook = openpyxl.load_workbook(excel_file_name)
sheet = workbook.active
new_x = np.zeros_like(x)
while i<N:
if i!=0:
if i%15==0:
j=j+1
print(j)
for j in range(len(x)):
x = new_x
print(x)
print(i)
workbook.save(excel_file_name)
workbook.close()
i=i+1