Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Easy CSS Menu 5.0
Bytescout PDF SDK 1.7.0.222
Kickstarter clone script 2.0.5
Indiegogo Clone 3.0
Mercato 1.0
Readymade PHP Classified Script 3.3
Udacity Clone Script 1.20
PHP News Script 1.0.5
Exe Guarder 4.14
dbForge Search 2.2
EaseClouds Virtual File System SDK 2.1.1.2
dbForge SQL Decryptor 3.1
Fortune Gigs Script 2.03
Pricing Plans and Subscription Payment Script 1.0
PHP Image Resize Script 1.0
Top Code
Easy CSS Menu 5.0
Billing System 1.0.1
Chatbot widget 1.0.0
Udacity Clone Script 1.20
PHP Image Resize Script 1.0
SvQrBarcode
Matlab Face Detection using classifiers and adaptive boosting 1.0
PHP News Script 1.0
Exe Guarder 4.14
Best Spotify Clone 1.0
Image Edge Detection Using Ant Colony Optimization 1.0
ASIO Proxy
Kickstarter clone script 2.0.5
dbForge Search 2.2
Pricing Plans and Subscription Payment Script 1.0
Top Rated
PHP Image Resize Script 1.0
Jango Clone 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
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
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
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 (http://www.zemax.com/). 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 (http://www.mingw.org/) and GNUMex (http://gnumex.sourceforge.net/). 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