Software Listing of Author : "Sean Bryan"
- CAMB Interface for Matlab
- License: Freeware
- Price: 0.00


"camb.m" is the routine itself. Modify line 36 to point to where the CAMB executable is installed. "params_strings.mat" is a matlab file that contains the strings of the text file CAMB reads to look for the cosmological parameters. "params_matlab.txt" is the text file that "params_strings.mat" was made from. It is included to show all the possible parameters CAMB can take as a guide for modifying "camb.m" to handle more/different parameters.
- Publisher: Sean Bryan
- Date Released: 22-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Error Propagation Class
- License: Shareware
- Price:


This class, called "meas" (meaning measurement with uncorrelated error), contains two elements. A "meas" can be created with the constructor function: >> d = meas(); and values can be assigned to the two elements. >> d.value = 1; >> d.error = .3; The values can also be displayed: >> d 1 +/- 0.3 I overloaded the +,-,*,/,^,>,<,==,>=,<= operators to perform the error propagation for each of these operators. The comparison operators work to within 1-sigma. For example, (1.0 +/- .3) == (.9 +/- .3) would return "true". In this early version, this only works for single numbers, and just for the operators listed above. In the future, I plan to overload many common functions (sin(x) and such...), and make support for matrices and arrays. Comments and changes are most welcome, especially since this is my first Matlab code in which I...
- Publisher: Sean Bryan
- Date Released: 13-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Read ZEMAX Beam File (ZBF)
- License: Shareware
- Price:


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 ] =...
- Publisher: Sean Bryan
- Date Released: 26-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Structure Cut
- License: Freeware
- Price: 0.00


As an example, suppose you had taken 155 seconds of data of the location (x,y,z) of a particle as a function of time (t). It is convenient to put that all into a struct, such as this one: >> data data = t: [155000x1 double] x: [155000x1 double] y: [155000x1 double] z: [155000x1 double] If you wanted to extract the data taken between 15 and 20 seconds, you would normally need to type index = find((data.t > 15) & (data.t < 20)); cut_data.t = data.t(index); cut_data.x = data.x(index); cut_data.y = data.y(index); cut_data.z = data.z(index); Tedious, and prone to typos! Using the function "struct_cut" you can do the same thing by just typing index = find((data.t > 15) & (data.t < 20)); cut_data = struct_cut(data,{'t','x','y','z'},index); If you want to apply different cuts to each element of the structure, just type...
- Publisher: Sean Bryan
- Date Released: 27-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Subversion Interface for Matla
- License: Freeware
- Price: 0.00


The summary basically says it all. This lets you use Subversion with Matlab. I didn't see any other implementation on this, so I wrote this simple version for my group. Put this file in the ../toolbox/matlab/verctrl/ directory, overwriting the existing file there with the same name. Then go to matlab preferences, click on source control, and change it to "custom." Now in a matlab editor, you can use the menu items under File-Source Control. Subversion doesn't use the "lock" concept, so that isn't implemented here. I also didn't implement the "undo checkout" feature. However, Zheng Li implemented that feature, and it is included in the "customverctr.m" file. My old version is "customverctr_noundo.m". Improvements or comments are welcome.
- Publisher: Sean Bryan
- Date Released: 05-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Subversion Interface for Matlab
- License: Freeware
- Price: 0.00


The summary basically says it all. This lets you use Subversion with Matlab. I didn't see any other implementation on this, so I wrote this simple version for my group. Put this file in the ../toolbox/matlab/verctrl/ directory, overwriting the existing file there with the same name. Then go to matlab preferences, click on source control, and change it to "custom." Now in a matlab editor, you can use the menu items under File-Source Control. Subversion doesn't use the "lock" concept, so that isn't implemented here. I also didn't implement the "undo checkout" feature. However, Zheng Li implemented that feature, and it is included in the "customverctr.m" file. My old version is "customverctr_noundo.m". Improvements or comments are welcome.
- Publisher: Sean Bryan
- Date Released: 15-03-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts