Code Directory
 Visual Basic & VB.NET
New Code
On-demand Service Booking Solution - Agriya 1.0
Ticketmaster Script 1
Lookbook for Magento 2 2.0
LuaStudio 9.70
Product Design Software 1.0
PHP Poll 1.0
Magento 2 Product Tabs 2.0.x, 2.1.x, 2.2.x
Database Workbench Pro 5.4.0
ByteScout Text Recognition SDK
Equipment Rental Script 1.0
Aliexpress Clone- Ec21 Script 1
Agriya Event Booking Solution v2.0b5
Key Transformation 8.1133
IP2Location Geolocation Database 2018
Top Code
Online Vacation Rental Booking Website Script 4.3.0
weCloud 1.0
Russian Roulette
mRMR Feature Selection (using mutual information computation) 1.0
Console Menu 1.1
SkratchPad 0.2.2
Supplies Inventory System 1.0
ProQuiz V2.0.0b
Differential Evolution Based Channel and Feature Selection 1.0
Priore NUMBERS 1.1
Jenetics: Java Genetic Algorithm Library 1.1.0
Snake game C 1.1
Fundamentals - Sockets 3.12
VisitorsCafe Video Chat 1
Sliding Sprite 1.0
Top Rated
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Read ZEMAX Beam File (ZBF) 1.0
File ID: 79867

Read ZEMAX Beam File (ZBF) 1.0
Download Read ZEMAX Beam File (ZBF) 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 16
Submit Rating:
Read ZEMAX Beam File (ZBF) 1.0 Description
Description: ZEMAX is an optical simulation code ( One of its features, Physical Optics Propagation, calculates the electric fields as they travel through the simulated optical system. The results can be saved in the ZEMAX Beam File (ZBF) format. It is useful to be able to read the ZBF file into Matlab so the electric field amplitudes and phases can be plotted in Matlab for display. Multiple simulation results can be easily compared in this way.

Since this code uses mex, the user will first need to compile part of the code. I only tested this on Windows, and I believe the code will only compile using gcc. Please install MinGW ( and GNUMex ( Then, go to Matlab and type:

mex read_zbf_mex.c

This will compile the mex part of the code. To run the code, type

[ x y Ex Ey ] = read_zbf( filename )

and replace filename with a string containing the filename of the ZBF file to be read. To plot the results, issue commands like:

pcolor(x,y,real(Ex)); shading flat

to plot just the real part of the x-component of the E-field amplitude in the ZBF file.

I am grateful to Bill Jones for sending me his make_zbf C-code which I modified to make this code. I believe both of our codes are based on an example file included in ZEMAX.

License: Shareware

Related: Replace, Filename, String, commands, Issue, read zbf, read zbf mexc

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 16

More Similar Code

How to Read a text file in ASP .NET ? is an user friendly tutorial in which author describes the procedure for reading the text files. Through this tutorial users can learn about name space, which has to be included in the programme to read the text file and about the stream objects which helps in reading a text file. The author offers solution for the problem that occur while reading the text files.

Another way to read lines from file backwards from the end to the beginning

Function to read the HIS file format used by PerkinElmer XIS X-ray imaging software.

The other exportable file formats in XIS either had no support in Matlab, produced non-standard files which imread could not properly interpret, or...

This applet is designed to read a text file and display the contents within your web page in scrolling format. There are many advanced features which places this product above other news and text scrollers. / Main Features Summary / Adjustable...

Simple script to read a video file and track a single red marker in 2D using the hue and saturation values. The largest red blob is detected and the mean co-ordinate position of this blob is tracked. This code does not have any tracking built-in:...

this function read an ascii file order in columns separated by space or tab you obtain the file into the workspace and the name and path of your file

The Matlab code read an XLS file that represent EURO evolution per years. After that the evolution is represented by graphics. Also is displayed some statistics information about this financial time series

A command line utility to read a text file containing lines of data, clean up any CR/LF anomalies, and output the lines of text with clean CR/LF terminators to standard output. The binary is a Windows 32 bit console app.

a libary to read run-control file (startup configuration), mini-XML capability.

In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets.

The following Python class read such a file.

User Review for Read ZEMAX Beam File (ZBF)
- required fields

Please enter text on the image