I got a difficult matlab code to interpret at my job

5 views (last 30 days)
I would be really grateful if someone wanted to explain some of this code.
<deleted by Andreas Goser, see comment below>
  4 Comments
Andreas Goser
Andreas Goser on 14 Feb 2019
I am concerned about you publishing hundreds of lines of code of other authors, even containing names of fellow researchers.
I will delete this code from your question. I suggest if you need help from the community, you post only a portion of code (like 10 lines) you do not understand and remove artifacts that mention other people's names and papers.
Walter Roberson
Walter Roberson on 14 Feb 2019
Over 700 lines of code!
Line 48 is missing a space between "if" and "ischar"
Line 70 is missing a space between "if" and "KYResult.exists.Area
Line 380 and 608 is missing a space between "if" and "ne"
Line 629 is missing a space between "if" and "isempty"
Line 494 is missing a space between "if" and "abs"
Line 695 and 701 and 707 is missing a space between "for" and "i"
Line 622 is missing a space between "function" and "addexport"
All of the above must be fixed for the code to run at all.

Sign in to comment.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 14 Feb 2019
Get yourself some pairs of "valid input-files" then at the command-line type:
dbstop in accuracy_result
Then run the function - matlab will stop its execution before the first line and give you a command-line-prompt inside the function, you can then manually run the function line by line (or chunks of lines at a time) by commands like dbstep. Lopp up the help-documentation for dbstop/dbstep etc.
HTH

Community Treasure Hunt

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

Start Hunting!