Errors Upon Launching Matt Brauer's Enigma Simulator
1 view (last 30 days)
Show older comments
Peter Stockman on 31 Jan 2016
I have downloaded Matt Brauer's Enigma simulator code and added the directory and sub-directories to the Matlab search path. When I enter launchEnigma on the command line (per startHere.m) I get the errors below. What am I doing wrong?
Error using imread (line 349)
File "@enigmaRotorUI/images/blankGauge.png" does not exist.
Error in enigmaApp/createRotorSection (line 14)
img = imread(fullfile('@enigmaRotorUI','images','blankGauge.png'));
Error in enigmaApp/createMachineSection (line 19)
Error in enigmaApp (line 162)
Error in launchEnigma (line 7)
Matt Brauer on 1 Feb 2016
This problem is due to a limitation in the app that uses relative paths to define the location of the images. The only way to avoid this problem is to keep MATLAB's working directory as the parent directory of the application's files (where launchEnigma.m resides). We will track this issue on the Git repository and look at submitting an enhancement. Sorry for the inconvenience.
Given the title of this question, I also want to point out that this app was a collaborative effort as spelled out in the File Exchange submission. The development was split between the team of Corey Lagunowich, Cesar Rivadeneyra, Adam Sifounakis, Sean de Wolski and myself.
More Answers (0)
Find more on Debugging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!