# Bandstructures calculation

Hi,
I have started to learn the band structures calculation of photonic structures. I have followed some examples which are already given in https://apps.lumerical.com/diffractive_optics_pc_fcc_3d.html.I have one small query how to export the sweep data file to calculate the band structures using origin software?

Hello @physics,

Thanks for posting and welcome to the community. The simplest way to do this would be to save the variables in your workspace to a .mat file which is supported by OriginLab. See this page on matlabsave.

Alternatively you could use system level input/output commands to write text files of your variables.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.