Advanced Analysis features in Zemax like Partial Coherence Analysis claims that binary IMA files are suitable for reducing computation times. Zemax has a KB article on how to create Ascii and binary IMA files through C++. I am more familiar with MATLAB and tried various methods and none of those work to create a simple IMA for ellipse of 40x40 pixels. MATLAB claims that 'fwrite' or 'save' to MAT files would create binary files, but they are not accepted by IMA viewer and throws an Error message like 'Number of pixels must be greater than 1 and no more than 8000', eventhough I am creating a simple square encapsulated ellipse in 40x40 pixels. Can anyone help?
Best answer by Csilla Timar-Fulep
View original