You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for filename in [('./NLA_GUI.mlapp', './NLA_GUI_exported.m'), ('./NLAResult.mlapp', './NLAResult_exported.m'), ('./+nla/+net/+result/+plot/NetworkTestPlotApp.mlapp', './+nla/+net/+result/+plot/NetworkTestPlotApp_exported.m')]:
with zipfile.ZipFile(filename[0]) as zip_object:
zip_object.extract('matlab/document.xml')
with open('matlab/document.xml') as filedata:
data = filedata.read().splitlines(True)
classdef_index = data[0].find('classdef')
open(filename[1], 'w').close() # This deletes the contents of the file