>> Homer3
Error using Logger
Error: File: Logger.m Line: 206 Column: 22
The input character is not valid in MATLAB statements or expressions.
Error in Homer3 (line 35)
logger = Logger('Homer3');

댓글 수: 5

DGM
DGM 2024년 10월 17일
편집: DGM 2024년 10월 17일
Line 206 from Logger.m is
self.options.value = optionsValueOrig;
Column 22 is the second 'o'. There's nothing wrong with that.
I'm going to have to assume that either:
  • You have a different version of the toolbox.
  • You are shadowing Logger.m with some other file.
  • or the file was corrupted somehow.
家雨
家雨 2024년 10월 17일
thank you,then how can I solve it?
Walter Roberson
Walter Roberson 2024년 10월 17일
which -all Logger
to see whether there is some other Logger.m that is interfering.
DGM
DGM 2024년 10월 17일
편집: DGM 2024년 10월 17일
If you don't have an unrelated file called Logger.m, you can try inspecting the one you have to see if it's messed up or different than what I posted. Simply
open Logger.m
and look at line 206.
Considering that I can't see why any function file would intentionally have invalid characters in the code, I suspect that the file simply may be damaged. That's just a guess though.
EDIT: I just attached the copy that I have. The file should be in Utils/Shared/Logger.m within the Homer3 directory (wherever you put it). This is from version 1.87.0
家雨
家雨 2024년 10월 20일
Thank you very much, I have downloaded the R2023a version (I used 2013a before) and it can run now

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

답변 (0개)

카테고리

태그

질문:

2024년 10월 17일

댓글:

2024년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by