Raytrace Program - Original
The documentation for this code is rather limited. It works on Matlab 2014b and higher as of early 2017. To use it, unzip the file, make the main folder the current directory in Matlab and run 'startRaytraceO;' at the command prompt. From there, two figures should open. Separate the two figures so you can see them both. You can open up saved systems using the load system button and navigating to the saved system directory. Saved systems are saved as .fig files.
Notes about saved systems:
Not all the included systems use the full functionality of the program since some additions to the code were made after the systems were saved.
If a saved system has problems running (you get errors at the command line) a general fix can be this:
1) Reload the system (there is a button) - this actually updates the system to use the current code
2) Then go through all the surfaces, detectors, sources, and spaces and edit each one by simply opening their edit dialog boxes and closing them. This updates each element in the system to be fully functional.
The reason saved systems sometimes have problems is because when they transfer to another computer or are opened in a different version of Matlab than the one they were saved in, function references can sometimes get broken.
Additional note: This code is meant to be expanded upon. It is designed for versatility in modeling by allowing the user to define functions that interact with the data at surfaces, spaces, etc. The code is also has some tricks up its sleeve which can be discovered by experimenting with datatips and also by looking for UIContextMenus and tooltipstrings in the GUI interface.
Cita come
E65EnyOwC (2024). Raytrace Program - Original (https://www.mathworks.com/matlabcentral/fileexchange/62540-raytrace-program-original), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.