필터 지우기
필터 지우기

Errors Upon Launching Matt Brauer's Enigma Simulator

조회 수: 2 (최근 30일)
Peter Stockman
Peter Stockman 2016년 1월 31일
편집: Peter Stockman 2016년 2월 1일
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?
>> launchEnigma
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)
createRotorSection(app);
Error in enigmaApp (line 162)
createMachineSection(app);
Error in launchEnigma (line 7)
enigmaApp;
>>
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2016년 2월 1일
Peter - the error message is telling you that the image blankGuage.png does not exist in the folder @enigmaRotorUI/images/. Have you verified that it does exist? I downloaded the app from http://www.mathworks.com/matlabcentral/fileexchange/51009-enigma and the image is in the appropriate directory but I can't run the app as at least version R2014b is needed.
Peter Stockman
Peter Stockman 2016년 2월 1일
편집: Peter Stockman 2016년 2월 1일
Geoff: Thanks for coming back to me. One of the Enigma authors came back to me and pointed out that, in its current implementation, the app must have the MATLAB working directory as its parent directory. The authors are tracking this limitation and will look at a more generalized implementation. Peter

댓글을 달려면 로그인하십시오.

채택된 답변

Matt Brauer
Matt Brauer 2016년 2월 1일
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.
  댓글 수: 1
Peter Stockman
Peter Stockman 2016년 2월 1일
편집: Peter Stockman 2016년 2월 1일
Matt: Thanks much. This is very clear. Re the title of the question: I was trying to be clear and specific (per instructions! it is my first MATLAB question). I did read the notes and recognize that this was a collaboration. You are right to bring the folks in this collaboration forward.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by