Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A few options you have:</p> <ul> <li><p>Open each of your scripts/functions in the MATLAB Editor, which will visually indicate where there are lines that are missing a terminating semicolon (assuming that warning isn't suppressed in the <a href="http://www.mathworks.com/help/techdoc/matlab_env/bs24a2i.html" rel="nofollow noreferrer">Code Analyzer preferences</a>). Note the orange squiggly line in this example function:</p> <p><img src="https://i.stack.imgur.com/omb6G.png" alt="enter image description here"></p></li> <li><p>Use the function <a href="http://www.mathworks.com/help/techdoc/ref/checkcode.html" rel="nofollow noreferrer">CHECKCODE</a> (formerly <a href="http://www.mathworks.com/help/techdoc/ref/mlint.html" rel="nofollow noreferrer">MLINT</a>) to find lines in your scripts/functions that are missing terminating semicolons. For the example function from above:</p> <pre><code>&gt;&gt; mlint('test') L 2 (C 4): Terminate statement with semicolon to suppress output (in functions). </code></pre></li> <li><p>Use <a href="http://www.mathworks.com/help/techdoc/ref/echo.html" rel="nofollow noreferrer">command echoing</a>. This will print each line of code to the Command Window as it's evaluated. Then all you have to do is look for the line preceding the unwanted output to find where you are missing a terminating semicolon. I would try typing one of these options at the command line:</p> <pre><code>echo name_of_your_file on; %# Turns on echoing for the function file echo on all; %# Turns on echoing for all function files </code></pre> <p>Be forewarned... you will probably get <em>a lot</em> of output getting dumped to the Command Window with this option.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload