diff --git a/pmd-matlab/pom.xml b/pmd-matlab/pom.xml index 44bab0225c..ceb147ff7a 100644 --- a/pmd-matlab/pom.xml +++ b/pmd-matlab/pom.xml @@ -80,10 +80,20 @@ junit test + + org.junit.vintage + junit-vintage-engine + test + net.sourceforge.pmd pmd-test test + + net.sourceforge.pmd + pmd-lang-test + test + diff --git a/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java b/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java index 7275d917bb..ae216ed7a4 100644 --- a/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java +++ b/pmd-matlab/src/test/java/net/sourceforge/pmd/cpd/MatlabTokenizerTest.java @@ -4,102 +4,56 @@ package net.sourceforge.pmd.cpd; -import static org.junit.Assert.assertEquals; +import java.util.Properties; -import java.io.IOException; -import java.nio.charset.StandardCharsets; - -import org.apache.commons.io.IOUtils; -import org.junit.Before; import org.junit.Test; -import net.sourceforge.pmd.PMD; -import net.sourceforge.pmd.testframework.AbstractTokenizerTest; +import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest; -public class MatlabTokenizerTest extends AbstractTokenizerTest { +public class MatlabTokenizerTest extends CpdTextComparisonTest { - private static final String FILENAME = "sample-matlab.m"; - - @Before - @Override - public void buildTokenizer() throws IOException { - this.tokenizer = new MatlabTokenizer(); - this.sourceCode = new SourceCode(new SourceCode.StringCodeLoader(this.getSampleCode(), FILENAME)); + public MatlabTokenizerTest() { + super(".m"); } @Override - public String getSampleCode() throws IOException { - return IOUtils.toString(MatlabTokenizer.class.getResourceAsStream(FILENAME), StandardCharsets.UTF_8); + protected String getResourcePrefix() { + return "../lang/matlab/cpd/testdata"; + } + + @Override + public Tokenizer newTokenizer(Properties properties) { + return new MatlabTokenizer(); + } + + @Test + public void testLongSample() { + doTest("sample-matlab"); } @Test - public void tokenizeTest() throws IOException { - this.expectedTokenCount = 3925; - super.tokenizeTest(); + public void testIgnoreBetweenSpecialComments() { + doTest("specialComments"); + } @Test - public void testIgnoreBetweenSpecialComments() throws IOException { - SourceCode sourceCode = new SourceCode(new SourceCode.StringCodeLoader("% CPD-OFF" + PMD.EOL - + "function g = vec(op, y)" + PMD.EOL - + " opy = op(y);" + PMD.EOL - + " if ( any(size(opy) > 1) )" + PMD.EOL - + " g = @loopWrapperArray;" + PMD.EOL - + " end" + PMD.EOL - + " % CPD-ON" + PMD.EOL - + "end" - )); - Tokens tokens = new Tokens(); - tokenizer.tokenize(sourceCode, tokens); - assertEquals(2, tokens.size()); // 2 tokens: "end" + EOF + public void testComments() { + doTest("comments"); } @Test - public void testComments() throws IOException { - SourceCode sourceCode = new SourceCode(new SourceCode.StringCodeLoader("classdef LC" + PMD.EOL - + " methods" + PMD.EOL - + " function [obj, c,t, s ] = Classification( obj,m,t, cm )%#codegen" + PMD.EOL - + " end" + PMD.EOL - + " end" + PMD.EOL - + "end")); - Tokens tokens = new Tokens(); - tokenizer.tokenize(sourceCode, tokens); // should not result in parse error - assertEquals(28, tokens.size()); + public void testBlockComments() { + doTest("multilineComments"); } @Test - public void testBlockComments() throws IOException { - SourceCode sourceCode = new SourceCode(new SourceCode.StringCodeLoader("%{" + PMD.EOL - + " Name: helloworld.m\n" + PMD.EOL - + " Purpose: Say \"Hello World!\" in two different ways" + PMD.EOL - + "%}" + PMD.EOL - + PMD.EOL - + "% Do it the good ol' fashioned way...command window" + PMD.EOL - + "disp('Hello World!');\n" + PMD.EOL - + "%" + PMD.EOL - + "% Do it the new hip GUI way...with a message box" + PMD.EOL - + "msgbox('Hello World!','Hello World!');")); - Tokens tokens = new Tokens(); - tokenizer.tokenize(sourceCode, tokens); // should not result in parse error - assertEquals(13, tokens.size()); + public void testQuestionMark() { + doTest("questionMark"); } @Test - public void testQuestionMark() throws IOException { - SourceCode sourceCode = new SourceCode(new SourceCode.StringCodeLoader("classdef Class1" + PMD.EOL - + "properties (SetAccess = ?Class2)")); - Tokens tokens = new Tokens(); - tokenizer.tokenize(sourceCode, tokens); - assertEquals(10, tokens.size()); - } - - @Test - public void testDoubleQuotedStrings() throws IOException { - SourceCode sourceCode = new SourceCode(new SourceCode.StringCodeLoader( - "error(\"This is a double-quoted string\");")); - Tokens tokens = new Tokens(); - tokenizer.tokenize(sourceCode, tokens); - assertEquals("\"This is a double-quoted string\"", tokens.getTokens().get(2).toString()); - assertEquals(6, tokens.size()); + public void testDoubleQuotedStrings() { + doTest("doubleQuotedStrings"); } } diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/comments.m b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/comments.m new file mode 100644 index 0000000000..f9340a056d --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/comments.m @@ -0,0 +1,6 @@ +classdef LC + methods + function [obj, c,t, s ] = Classification( obj,m,t, cm )%#codegen + end + end +end \ No newline at end of file diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/comments.txt b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/comments.txt new file mode 100644 index 0000000000..e74cd3b508 --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/comments.txt @@ -0,0 +1,35 @@ + [Image] or [Truncated image[ Bcol Ecol +L1 + [classdef] 1 8 + [LC] 10 11 +L2 + [methods] 5 11 +L3 + [function] 9 16 + [\[] 18 18 + [obj] 19 21 + [,] 22 22 + [c] 24 24 + [,] 25 25 + [t] 26 26 + [,] 27 27 + [s] 29 29 + [\]] 31 31 + [=] 33 33 + [Classification] 35 48 + [(] 49 49 + [obj] 51 53 + [,] 54 54 + [m] 55 55 + [,] 56 56 + [t] 57 57 + [,] 58 58 + [cm] 60 61 + [)] 63 63 +L4 + [end] 9 11 +L5 + [end] 5 7 +L6 + [end] 1 3 +EOF diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/doubleQuotedStrings.m b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/doubleQuotedStrings.m new file mode 100644 index 0000000000..309b0f091e --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/doubleQuotedStrings.m @@ -0,0 +1 @@ +error("This is a double-quoted string"); \ No newline at end of file diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/doubleQuotedStrings.txt b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/doubleQuotedStrings.txt new file mode 100644 index 0000000000..edfd5fdd4b --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/doubleQuotedStrings.txt @@ -0,0 +1,8 @@ + [Image] or [Truncated image[ Bcol Ecol +L1 + [error] 1 5 + [(] 6 6 + ["This is a double-quoted string"] 7 38 + [)] 39 39 + [;] 40 40 +EOF diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/multilineComments.m b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/multilineComments.m new file mode 100644 index 0000000000..c5e958c291 --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/multilineComments.m @@ -0,0 +1,12 @@ +%{ + Name: helloworld.m + + Purpose: Say "Hello World!" in two different ways +%} + +% Do it the good ol' fashioned way...command window +disp('Hello World!'); + +% +% Do it the new hip GUI way...with a message box +msgbox('Hello World!','Hello World!'); \ No newline at end of file diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/multilineComments.txt b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/multilineComments.txt new file mode 100644 index 0000000000..4e6ae600ed --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/multilineComments.txt @@ -0,0 +1,16 @@ + [Image] or [Truncated image[ Bcol Ecol +L8 + [disp] 1 4 + [(] 5 5 + ['Hello World!'] 6 19 + [)] 20 20 + [;] 21 21 +L12 + [msgbox] 1 6 + [(] 7 7 + ['Hello World!'] 8 21 + [,] 22 22 + ['Hello World!'] 23 36 + [)] 37 37 + [;] 38 38 +EOF diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/questionMark.m b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/questionMark.m new file mode 100644 index 0000000000..5a9fdc4665 --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/questionMark.m @@ -0,0 +1,2 @@ +classdef Class1 +properties (SetAccess = ?Class2) \ No newline at end of file diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/questionMark.txt b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/questionMark.txt new file mode 100644 index 0000000000..6cd35dc485 --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/questionMark.txt @@ -0,0 +1,13 @@ + [Image] or [Truncated image[ Bcol Ecol +L1 + [classdef] 1 8 + [Class1] 10 15 +L2 + [properties] 1 10 + [(] 12 12 + [SetAccess] 13 21 + [=] 23 23 + [?] 25 25 + [Class2] 26 31 + [)] 32 32 +EOF diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/cpd/sample-matlab.m b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/sample-matlab.m similarity index 100% rename from pmd-matlab/src/test/resources/net/sourceforge/pmd/cpd/sample-matlab.m rename to pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/sample-matlab.m diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/sample-matlab.txt b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/sample-matlab.txt new file mode 100644 index 0000000000..889d8543ab --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/sample-matlab.txt @@ -0,0 +1,4434 @@ + [Image] or [Truncated image[ Bcol Ecol +L4 + [classdef] 1 8 + [chebfun] 10 16 +L134 + [properties] 5 14 + [(] 16 16 + [Access] 17 22 + [=] 24 24 + [public] 26 31 + [)] 32 32 +L142 + [domain] 9 14 +L149 + [funs] 9 12 +L152 + [pointValues] 9 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L161 + [isTransposed] 9 20 + [=] 22 22 + [0] 24 24 + [;] 25 25 +L162 + [end] 5 7 +L167 + [methods] 5 11 + [(] 13 13 + [Access] 15 20 + [=] 22 22 + [public] 24 29 + [,] 30 30 + [Static] 32 37 + [=] 39 39 + [false] 41 45 + [)] 47 47 +L169 + [function] 9 16 + [f] 18 18 + [=] 20 20 + [chebfun] 22 28 + [(] 29 29 + [varargin] 30 37 + [)] 38 38 +L173 + [if] 13 14 + [(] 16 16 + [(] 18 18 + [nargin] 19 24 + [==] 26 27 + [0] 29 29 + [)] 30 30 + [||] 32 33 + [isempty] 35 41 + [(] 42 42 + [varargin] 43 50 + [{] 51 51 + [1] 52 52 + [}] 53 53 + [)] 54 54 + [)] 56 56 +L174 + [return] 17 22 +L175 + [end] 13 15 +L177 + [if] 13 14 + [(] 16 16 + [iscell] 18 23 + [(] 24 24 + [varargin] 25 32 + [{] 33 33 + [1] 34 34 + [}] 35 35 + [)] 36 36 + [&&] 38 39 + [.] 41 41 + [.] 42 42 + [.] 43 43 +L178 + [all] 21 23 + [(] 24 24 + [cellfun] 25 31 + [(] 32 32 + [@] 33 33 + [(] 34 34 + [x] 35 35 + [)] 36 36 + [isa] 38 40 + [(] 41 41 + [x] 42 42 + [,] 43 43 + ['fun'] 45 49 + [)] 50 50 + [,] 51 51 + [varargin] 54 61 + [{] 62 62 + [1] 63 63 + [}] 64 64 + [)] 65 65 + [)] 66 66 + [)] 68 68 +L182 + [if] 17 18 + [(] 20 20 + [nargin] 22 27 + [>] 29 29 + [1] 31 31 + [)] 33 33 +L183 + [error] 21 25 + [(] 26 26 + ['CHEBFUN:CHEBFUN:chebfun:nargin'] 27 58 + [,] 59 59 + [.] 61 61 + [.] 62 62 + [.] 63 63 +L184 + ['Only one input is allowed when pa[ 22 79 + [)] 80 80 +L185 + [end] 17 19 +L187 + [f] 17 17 + [.] 18 18 + [funs] 19 22 + [=] 24 24 + [varargin] 26 33 + [{] 34 34 + [1] 35 35 + [}] 36 36 + [;] 37 37 +L189 + [dom] 17 19 + [=] 21 21 + [cellfun] 23 29 + [(] 30 30 + [@] 31 31 + [(] 32 32 + [fun] 33 35 + [)] 36 36 + [get] 38 40 + [(] 41 41 + [fun] 42 44 + [,] 45 45 + ['domain'] 47 54 + [)] 55 55 + [,] 56 56 + [f] 58 58 + [.] 59 59 + [funs] 60 63 + [,] 64 64 + [.] 66 66 + [.] 67 67 + [.] 68 68 +L190 + ['uniformOutput'] 21 35 + [,] 36 36 + [false] 38 42 + [)] 43 43 + [;] 44 44 +L191 + [f] 17 17 + [.] 18 18 + [domain] 19 24 + [=] 26 26 + [unique] 28 33 + [(] 34 34 + [\[] 35 35 + [dom] 36 38 + [{] 39 39 + [:] 40 40 + [}] 41 41 + [\]] 42 42 + [)] 43 43 + [;] 44 44 +L193 + [f] 17 17 + [.] 18 18 + [pointValues] 19 29 + [=] 31 31 + [chebfun] 33 39 + [.] 40 40 + [getValuesAtBreakpoints] 41 62 + [(] 63 63 + [f] 64 64 + [.] 65 65 + [funs] 66 69 + [,] 70 70 + [f] 72 72 + [.] 73 73 + [domain] 74 79 + [)] 80 80 + [;] 81 81 +L194 + [return] 17 22 +L195 + [end] 13 15 +L198 + [\[] 13 13 + [op] 14 15 + [,] 16 16 + [dom] 18 20 + [,] 21 21 + [data] 23 26 + [,] 27 27 + [pref] 29 32 + [\]] 33 33 + [=] 35 35 + [parseInputs] 37 47 + [(] 48 48 + [varargin] 49 56 + [{] 57 57 + [:] 58 58 + [}] 59 59 + [)] 60 60 + [;] 61 61 +L200 + [if] 13 14 + [(] 16 16 + [strcmp] 18 23 + [(] 24 24 + [op] 25 26 + [,] 27 27 + ['done'] 29 34 + [)] 35 35 + [)] 37 37 +L202 + [throwAsCaller] 17 29 + [(] 30 30 + [MException] 31 40 + [(] 41 41 + [''] 42 43 + [,] 44 44 + [''] 46 47 + [)] 48 48 + [)] 49 49 +L203 + [end] 13 15 +L206 + [doTrunc] 13 19 + [=] 21 21 + [false] 23 27 + [;] 28 28 +L207 + [truncLength] 13 23 + [=] 25 25 + [NaN] 27 29 + [;] 30 30 +L208 + [for] 13 15 + [k] 17 17 + [=] 19 19 + [1] 21 21 + [:] 22 22 + [length] 23 28 + [(] 29 29 + [varargin] 30 37 + [)] 38 38 +L209 + [if] 17 18 + [(] 20 20 + [strcmpi] 22 28 + [(] 29 29 + [varargin] 30 37 + [{] 38 38 + [k] 39 39 + [}] 40 40 + [,] 41 41 + ['trunc'] 43 49 + [)] 50 50 + [)] 52 52 +L210 + [doTrunc] 21 27 + [=] 29 29 + [true] 31 34 + [;] 35 35 +L211 + [truncLength] 21 31 + [=] 33 33 + [varargin] 35 42 + [{] 43 43 + [k] 44 44 + [+] 45 45 + [1] 46 46 + [}] 47 47 + [;] 48 48 +L212 + [break] 21 25 +L213 + [end] 17 19 +L214 + [end] 13 15 +L216 + [if] 13 14 + [(] 16 16 + [isa] 18 20 + [(] 21 21 + [op] 22 23 + [,] 24 24 + ['chebfun'] 26 34 + [)] 35 35 + [&&] 37 38 + [doTrunc] 40 46 + [)] 48 48 +L219 + [f] 17 17 + [=] 19 19 + [op] 21 22 + [;] 23 23 +L221 + [else] 13 16 +L225 + [\[] 17 17 + [f] 18 18 + [.] 19 19 + [funs] 20 23 + [,] 24 24 + [f] 26 26 + [.] 27 27 + [domain] 28 33 + [\]] 34 34 + [=] 36 36 + [chebfun] 38 44 + [.] 45 45 + [constructor] 46 56 + [(] 57 57 + [op] 58 59 + [,] 60 60 + [dom] 62 64 + [,] 65 65 + [data] 67 70 + [,] 71 71 + [pref] 73 76 + [)] 77 77 + [;] 78 78 +L228 + [f] 17 17 + [.] 18 18 + [pointValues] 19 29 + [=] 31 31 + [chebfun] 33 39 + [.] 40 40 + [getValuesAtBreakpoints] 41 62 + [(] 63 63 + [f] 64 64 + [.] 65 65 + [funs] 66 69 + [,] 70 70 + [.] 72 72 + [.] 73 73 + [.] 74 74 +L229 + [f] 21 21 + [.] 22 22 + [domain] 23 28 + [,] 29 29 + [op] 31 32 + [)] 33 33 + [;] 34 34 +L232 + [\[] 17 17 + [ignored] 18 24 + [,] 25 25 + [index] 27 31 + [\]] 32 32 + [=] 34 34 + [setdiff] 36 42 + [(] 43 43 + [f] 44 44 + [.] 45 45 + [domain] 46 51 + [,] 52 52 + [dom] 54 56 + [)] 57 57 + [;] 58 58 +L233 + [f] 17 17 + [=] 19 19 + [merge] 21 25 + [(] 26 26 + [f] 27 27 + [,] 28 28 + [index] 30 34 + [(] 35 35 + [:] 36 36 + [)] 37 37 + [.'] 38 39 + [,] 40 40 + [pref] 42 45 + [)] 46 46 + [;] 47 47 +L235 + [end] 13 15 +L237 + [if] 13 14 + [(] 16 16 + [doTrunc] 18 24 + [)] 26 26 +L239 + [if] 17 18 + [(] 20 20 + [isa] 22 24 + [(] 25 25 + [pref] 27 30 + [.] 31 31 + [tech] 32 35 + [(] 36 36 + [)] 37 37 + [,] 38 38 + ['chebtech'] 39 48 + [)] 50 50 + [)] 52 52 +L240 + [c] 21 21 + [=] 23 23 + [chebcoeffs] 25 34 + [(] 35 35 + [f] 36 36 + [,] 37 37 + [truncLength] 39 49 + [)] 50 50 + [;] 51 51 +L241 + [else] 17 20 +L242 + [c] 21 21 + [=] 23 23 + [trigcoeffs] 25 34 + [(] 35 35 + [f] 36 36 + [,] 37 37 + [truncLength] 39 49 + [)] 50 50 + [;] 51 51 +L243 + [end] 17 19 +L244 + [f] 17 17 + [=] 19 19 + [chebfun] 21 27 + [(] 28 28 + [c] 29 29 + [,] 30 30 + [f] 32 32 + [.] 33 33 + [domain] 34 39 + [(] 40 40 + [\[] 41 41 + [1] 42 42 + [,] 43 43 + [end] 44 46 + [\]] 47 47 + [)] 48 48 + [,] 49 49 + ['coeffs'] 51 58 + [,] 59 59 + [pref] 61 64 + [)] 65 65 + [;] 66 66 +L245 + [end] 13 15 +L247 + [end] 9 11 +L249 + [end] 5 7 +L254 + [methods] 5 11 + [(] 13 13 + [Access] 15 20 + [=] 22 22 + [public] 24 29 + [,] 30 30 + [Static] 32 37 + [=] 39 39 + [false] 41 45 + [)] 47 47 +L257 + [f] 9 9 + [=] 11 11 + [abs] 13 15 + [(] 16 16 + [f] 17 17 + [,] 18 18 + [pref] 20 23 + [)] 24 24 +L260 + [a] 9 9 + [=] 11 11 + [any] 13 15 + [(] 16 16 + [f] 17 17 + [,] 18 18 + [dim] 20 22 + [)] 23 23 +L263 + [out] 9 11 + [=] 13 13 + [arcLength] 15 23 + [(] 24 24 + [f] 25 25 + [,] 26 26 + [a] 28 28 + [,] 29 29 + [b] 31 31 + [)] 32 32 +L266 + [\[] 9 9 + [y] 10 10 + [,] 11 11 + [t] 13 13 + [\]] 14 14 + [=] 16 16 + [bvp4c] 18 22 + [(] 23 23 + [fun1] 24 27 + [,] 28 28 + [fun2] 30 33 + [,] 34 34 + [y0] 36 37 + [,] 38 38 + [varargin] 40 47 + [)] 48 48 + [;] 49 49 +L269 + [\[] 9 9 + [y] 10 10 + [,] 11 11 + [t] 13 13 + [\]] 14 14 + [=] 16 16 + [bvp5c] 18 22 + [(] 23 23 + [fun1] 24 27 + [,] 28 28 + [fun2] 30 33 + [,] 34 34 + [y0] 36 37 + [,] 38 38 + [varargin] 40 47 + [)] 48 48 + [;] 49 49 +L272 + [g] 9 9 + [=] 11 11 + [ceil] 13 16 + [(] 17 17 + [f] 18 18 + [)] 19 19 +L275 + [h] 9 9 + [=] 11 11 + [plotcoeffs] 13 22 + [(] 23 23 + [f] 24 24 + [,] 25 25 + [varargin] 27 34 + [)] 35 35 + [;] 36 36 +L278 + [C] 9 9 + [=] 11 11 + [complex] 13 19 + [(] 20 20 + [A] 21 21 + [,] 22 22 + [B] 24 24 + [)] 25 25 +L281 + [h] 9 9 + [=] 11 11 + [compose] 13 19 + [(] 20 20 + [f] 21 21 + [,] 22 22 + [op] 24 25 + [,] 26 26 + [g] 28 28 + [,] 29 29 + [pref] 31 34 + [)] 35 35 +L284 + [f] 9 9 + [=] 11 11 + [conj] 13 16 + [(] 17 17 + [f] 18 18 + [)] 19 19 +L287 + [f] 9 9 + [=] 11 11 + [ctranspose] 13 22 + [(] 23 23 + [f] 24 24 + [)] 25 25 +L290 + [display] 9 15 + [(] 16 16 + [f] 17 17 + [)] 18 18 + [;] 19 19 +L293 + [out] 9 11 + [=] 13 13 + [epslevel] 15 22 + [(] 23 23 + [f] 24 24 + [,] 25 25 + [flag] 27 30 + [)] 31 31 + [;] 32 32 +L296 + [y] 9 9 + [=] 11 11 + [feval] 13 17 + [(] 18 18 + [f] 19 19 + [,] 20 20 + [x] 22 22 + [,] 23 23 + [varargin] 25 32 + [)] 33 33 +L299 + [g] 9 9 + [=] 11 11 + [fix] 13 15 + [(] 16 16 + [f] 17 17 + [)] 18 18 + [;] 19 19 +L302 + [g] 9 9 + [=] 11 11 + [floor] 13 17 + [(] 18 18 + [f] 19 19 + [)] 20 20 + [;] 21 21 +L305 + [out] 9 11 + [=] 13 13 + [get] 15 17 + [(] 18 18 + [f] 19 19 + [,] 20 20 + [prop] 22 25 + [,] 26 26 + [simpLevel] 28 36 + [)] 37 37 + [;] 38 38 +L308 + [out] 9 11 + [=] 13 13 + [hscale] 15 20 + [(] 21 21 + [f] 22 22 + [)] 23 23 + [;] 24 24 +L311 + [f] 9 9 + [=] 11 11 + [imag] 13 16 + [(] 17 17 + [f] 18 18 + [)] 19 19 +L314 + [out] 9 11 + [=] 13 13 + [isempty] 15 21 + [(] 22 22 + [f] 23 23 + [)] 24 24 +L317 + [out] 9 11 + [=] 13 13 + [isequal] 15 21 + [(] 22 22 + [f] 23 23 + [,] 24 24 + [g] 26 26 + [)] 27 27 +L320 + [out] 9 11 + [=] 13 13 + [isfinite] 15 22 + [(] 23 23 + [f] 24 24 + [)] 25 25 +L323 + [out] 9 11 + [=] 13 13 + [isinf] 15 19 + [(] 20 20 + [f] 21 21 + [)] 22 22 +L326 + [out] 9 11 + [=] 13 13 + [isnan] 15 19 + [(] 20 20 + [f] 21 21 + [)] 22 22 +L329 + [out] 9 11 + [=] 13 13 + [isreal] 15 20 + [(] 21 21 + [f] 22 22 + [)] 23 23 + [;] 24 24 +L332 + [out] 9 11 + [=] 13 13 + [isdelta] 15 21 + [(] 22 22 + [f] 23 23 + [)] 24 24 + [;] 25 25 +L335 + [out] 9 11 + [=] 13 13 + [issing] 15 20 + [(] 21 21 + [f] 22 22 + [)] 23 23 +L339 + [out] 9 11 + [=] 13 13 + [isPeriodicTech] 15 28 + [(] 29 29 + [f] 30 30 + [)] 31 31 +L342 + [out] 9 11 + [=] 13 13 + [iszero] 15 20 + [(] 21 21 + [f] 22 22 + [)] 23 23 +L345 + [out] 9 11 + [=] 13 13 + [kron] 15 18 + [(] 19 19 + [f] 20 20 + [,] 21 21 + [g] 23 23 + [)] 24 24 +L348 + [\[] 9 9 + [out] 10 12 + [,] 13 13 + [out2] 15 18 + [\]] 19 19 + [=] 21 21 + [length] 23 28 + [(] 29 29 + [f] 30 30 + [)] 31 31 + [;] 32 32 +L351 + [c_leg] 9 13 + [=] 15 15 + [legpoly] 17 23 + [(] 24 24 + [f] 25 25 + [,] 26 26 + [n] 28 28 + [)] 29 29 +L354 + [h] 9 9 + [=] 11 11 + [loglog] 13 18 + [(] 19 19 + [f] 20 20 + [,] 21 21 + [varargin] 23 30 + [)] 31 31 + [;] 32 32 +L357 + [f] 9 9 + [=] 11 11 + [minus] 13 17 + [(] 18 18 + [f] 19 19 + [,] 20 20 + [g] 22 22 + [)] 23 23 +L360 + [f] 9 9 + [=] 11 11 + [mtimes] 13 18 + [(] 19 19 + [f] 20 20 + [,] 21 21 + [c] 23 23 + [)] 24 24 +L363 + [\[] 9 9 + [f] 10 10 + [,] 11 11 + [mergedPts] 13 21 + [\]] 22 22 + [=] 24 24 + [merge] 26 30 + [(] 31 31 + [f] 32 32 + [,] 33 33 + [index] 35 39 + [,] 40 40 + [pref] 42 45 + [)] 46 46 +L366 + [\[] 9 9 + [f] 10 10 + [,] 11 11 + [g] 13 13 + [\]] 14 14 + [=] 16 16 + [overlap] 18 24 + [(] 25 25 + [f] 26 26 + [,] 27 27 + [g] 29 29 + [)] 30 30 +L369 + [varargout] 9 17 + [=] 19 19 + [plot] 21 24 + [(] 25 25 + [f] 26 26 + [,] 27 27 + [varargin] 29 36 + [)] 37 37 + [;] 38 38 +L372 + [varargout] 9 17 + [=] 19 19 + [plot3] 21 25 + [(] 26 26 + [f] 27 27 + [,] 28 28 + [g] 30 30 + [,] 31 31 + [h] 33 33 + [,] 34 34 + [varargin] 36 43 + [)] 44 44 +L375 + [f] 9 9 + [=] 11 11 + [power] 13 17 + [(] 18 18 + [f] 19 19 + [,] 20 20 + [b] 22 22 + [,] 23 23 + [pref] 25 28 + [)] 29 29 + [;] 30 30 +L378 + [f] 9 9 + [=] 11 11 + [real] 13 16 + [(] 17 17 + [f] 18 18 + [)] 19 19 +L381 + [f] 9 9 + [=] 11 11 + [restrict] 13 20 + [(] 21 21 + [f] 22 22 + [,] 23 23 + [newDomain] 25 33 + [)] 34 34 + [;] 35 35 +L384 + [r] 9 9 + [=] 11 11 + [roots] 13 17 + [(] 18 18 + [f] 19 19 + [,] 20 20 + [varargin] 22 29 + [)] 30 30 + [;] 31 31 +L387 + [g] 9 9 + [=] 11 11 + [round] 13 17 + [(] 18 18 + [f] 19 19 + [)] 20 20 +L390 + [h] 9 9 + [=] 11 11 + [semilogx] 13 20 + [(] 21 21 + [f] 22 22 + [,] 23 23 + [varargin] 25 32 + [)] 33 33 + [;] 34 34 +L393 + [h] 9 9 + [=] 11 11 + [semilogy] 13 20 + [(] 21 21 + [f] 22 22 + [,] 23 23 + [varargin] 25 32 + [)] 33 33 + [;] 34 34 +L396 + [f] 9 9 + [=] 11 11 + [sign] 13 16 + [(] 17 17 + [f] 18 18 + [,] 19 19 + [pref] 21 24 + [)] 25 25 +L399 + [f] 9 9 + [=] 11 11 + [simplify] 13 20 + [(] 21 21 + [f] 22 22 + [,] 23 23 + [tol] 25 27 + [)] 28 28 + [;] 29 29 +L402 + [\[] 9 9 + [s1] 10 11 + [,] 12 12 + [s2] 14 15 + [\]] 16 16 + [=] 18 18 + [size] 20 23 + [(] 24 24 + [f] 25 25 + [,] 26 26 + [dim] 28 30 + [)] 31 31 + [;] 32 32 +L405 + [f] 9 9 + [=] 11 11 + [sqrt] 13 16 + [(] 17 17 + [f] 18 18 + [,] 19 19 + [pref] 21 24 + [)] 25 25 +L408 + [varargout] 9 17 + [=] 19 19 + [subsref] 21 27 + [(] 28 28 + [f] 29 29 + [,] 30 30 + [index] 32 36 + [)] 37 37 + [;] 38 38 +L411 + [varargout] 9 17 + [=] 19 19 + [subsasgn] 21 28 + [(] 29 29 + [f] 30 30 + [,] 31 31 + [varargin] 33 40 + [)] 41 41 + [;] 42 42 +L414 + [f] 9 9 + [=] 11 11 + [times] 13 17 + [(] 18 18 + [f] 19 19 + [,] 20 20 + [g] 22 22 + [,] 23 23 + [varargin] 25 32 + [)] 33 33 +L417 + [f] 9 9 + [=] 11 11 + [transpose] 13 21 + [(] 22 22 + [f] 23 23 + [)] 24 24 +L420 + [f] 9 9 + [=] 11 11 + [uminus] 13 18 + [(] 19 19 + [f] 20 20 + [)] 21 21 +L423 + [f] 9 9 + [=] 11 11 + [uplus] 13 17 + [(] 18 18 + [f] 19 19 + [)] 20 20 +L426 + [out] 9 11 + [=] 13 13 + [vscale] 15 20 + [(] 21 21 + [f] 22 22 + [,] 23 23 + [s] 25 25 + [)] 26 26 + [;] 27 27 +L427 + [end] 5 7 +L432 + [methods] 5 11 + [(] 13 13 + [Hidden] 15 20 + [=] 22 22 + [true] 24 27 + [,] 28 28 + [Static] 30 35 + [=] 37 37 + [false] 39 43 + [)] 45 45 +L435 + [f] 9 9 + [=] 11 11 + [addBreaks] 13 21 + [(] 22 22 + [f] 23 23 + [,] 24 24 + [breaks] 26 31 + [,] 32 32 + [tol] 34 36 + [)] 37 37 +L438 + [f] 9 9 + [=] 11 11 + [addBreaksAtRoots] 13 28 + [(] 29 29 + [f] 30 30 + [,] 31 31 + [tol] 33 35 + [)] 36 36 +L441 + [f] 9 9 + [=] 11 11 + [assignColumns] 13 25 + [(] 26 26 + [f] 27 27 + [,] 28 28 + [colIdx] 30 35 + [,] 36 36 + [g] 38 38 + [)] 39 39 +L444 + [f] 9 9 + [=] 11 11 + [changeTech] 13 22 + [(] 23 23 + [f] 24 24 + [,] 25 25 + [newtech] 27 33 + [)] 34 34 + [;] 35 35 +L447 + [f] 9 9 + [=] 11 11 + [define] 13 18 + [(] 19 19 + [f] 20 20 + [,] 21 21 + [s] 22 22 + [,] 23 23 + [v] 24 24 + [)] 25 25 + [;] 26 26 +L450 + [f] 9 9 + [=] 11 11 + [defineInterval] 13 26 + [(] 27 27 + [f] 28 28 + [,] 29 29 + [subInt] 31 36 + [,] 37 37 + [g] 39 39 + [)] 40 40 +L453 + [f] 9 9 + [=] 11 11 + [definePoint] 13 23 + [(] 24 24 + [f] 25 25 + [,] 26 26 + [s] 28 28 + [,] 29 29 + [v] 31 31 + [)] 32 32 +L456 + [M] 9 9 + [=] 11 11 + [diag] 13 16 + [(] 17 17 + [f] 18 18 + [)] 19 19 +L459 + [\[] 9 9 + [name] 10 13 + [,] 14 14 + [data] 16 19 + [\]] 20 20 + [=] 22 22 + [dispData] 24 31 + [(] 32 32 + [f] 33 33 + [)] 34 34 +L462 + [pass] 9 12 + [=] 14 14 + [domainCheck] 16 26 + [(] 27 27 + [f] 28 28 + [,] 29 29 + [g] 31 31 + [)] 32 32 + [;] 33 33 +L465 + [f] 9 9 + [=] 11 11 + [extractColumns] 13 26 + [(] 27 27 + [f] 28 28 + [,] 29 29 + [columnIndex] 31 41 + [)] 42 42 + [;] 43 43 +L468 + [varargin] 9 16 + [=] 18 18 + [fzero] 20 24 + [(] 25 25 + [varargout] 26 34 + [)] 35 35 + [;] 36 36 +L471 + [\[] 9 9 + [deltaMag] 10 17 + [,] 18 18 + [deltLoc] 20 26 + [\]] 27 27 + [=] 29 29 + [getDeltaFunctions] 31 47 + [(] 48 48 + [f] 49 49 + [)] 50 50 + [;] 51 51 +L474 + [\[] 9 9 + [rBreaks] 10 16 + [,] 17 17 + [rAll] 19 22 + [\]] 23 23 + [=] 25 25 + [getRootsForBreaks] 27 43 + [(] 44 44 + [f] 45 45 + [,] 46 46 + [tol] 48 50 + [)] 51 51 +L477 + [out] 9 11 + [=] 13 13 + [isQuasi] 15 21 + [(] 22 22 + [f] 23 23 + [)] 24 24 +L480 + [out] 9 11 + [=] 13 13 + [numColumns] 15 24 + [(] 25 25 + [f] 26 26 + [)] 27 27 +L483 + [data] 9 12 + [=] 14 14 + [plotData] 16 23 + [(] 24 24 + [f] 25 25 + [,] 26 26 + [g] 28 28 + [,] 29 29 + [h] 31 31 + [)] 32 32 +L486 + [varargin] 9 16 + [=] 18 18 + [quad] 20 23 + [(] 24 24 + [varargout] 25 33 + [)] 34 34 + [;] 35 35 +L489 + [f] 9 9 + [=] 11 11 + [setPointValues] 13 26 + [(] 27 27 + [f] 28 28 + [,] 29 29 + [j] 31 31 + [,] 32 32 + [k] 34 34 + [,] 35 35 + [vals] 37 40 + [)] 41 41 +L492 + [f] 9 9 + [=] 11 11 + [tidyImpulses] 13 24 + [(] 25 25 + [f] 26 26 + [)] 27 27 +L495 + [\[] 9 9 + [f] 10 10 + [,] 11 11 + [g] 13 13 + [,] 14 14 + [newBreaksLocF] 16 28 + [,] 29 29 + [newBreaksLocG] 31 43 + [\]] 44 44 + [=] 46 46 + [tweakDomain] 48 58 + [(] 59 59 + [f] 60 60 + [,] 61 61 + [g] 63 63 + [,] 64 64 + [tol] 66 68 + [,] 69 69 + [pos] 71 73 + [)] 74 74 +L497 + [end] 5 7 +L502 + [methods] 5 11 + [(] 13 13 + [Access] 15 20 + [=] 22 22 + [private] 24 30 + [,] 31 31 + [Static] 33 38 + [=] 40 40 + [false] 42 46 + [)] 48 48 +L504 + [f] 9 9 + [=] 11 11 + [thresholdBreakpointValues] 13 37 + [(] 38 38 + [f] 39 39 + [)] 40 40 + [;] 41 41 +L505 + [end] 5 7 +L511 + [methods] 5 11 + [(] 13 13 + [Access] 15 20 + [=] 22 22 + [public] 24 29 + [,] 30 30 + [Static] 32 37 + [=] 39 39 + [true] 41 44 + [)] 46 46 +L514 + [y] 9 9 + [=] 11 11 + [dct] 13 15 + [(] 16 16 + [u] 17 17 + [,] 18 18 + [kind] 20 23 + [)] 24 24 + [;] 25 25 +L517 + [u] 9 9 + [=] 11 11 + [idct] 13 16 + [(] 17 17 + [y] 18 18 + [,] 19 19 + [kind] 21 24 + [)] 25 25 + [;] 26 26 +L520 + [y] 9 9 + [=] 11 11 + [dst] 13 15 + [(] 16 16 + [u] 17 17 + [,] 18 18 + [kind] 20 23 + [)] 24 24 + [;] 25 25 +L523 + [u] 9 9 + [=] 11 11 + [idst] 13 16 + [(] 17 17 + [y] 18 18 + [,] 19 19 + [kind] 21 24 + [)] 25 25 + [;] 26 26 +L526 + [f] 9 9 + [=] 11 11 + [interp1] 13 19 + [(] 20 20 + [x] 21 21 + [,] 22 22 + [y] 24 24 + [,] 25 25 + [method] 27 32 + [,] 33 33 + [dom] 35 37 + [)] 38 38 + [;] 39 39 +L529 + [f] 9 9 + [=] 11 11 + [lagrange] 13 20 + [(] 21 21 + [x] 22 22 + [,] 23 23 + [varargin] 25 32 + [)] 33 33 + [;] 34 34 +L532 + [\[] 9 9 + [t] 10 10 + [,] 11 11 + [y] 13 13 + [\]] 14 14 + [=] 16 16 + [ode113] 18 23 + [(] 24 24 + [varargin] 25 32 + [)] 33 33 + [;] 34 34 +L535 + [\[] 9 9 + [t] 10 10 + [,] 11 11 + [y] 13 13 + [\]] 14 14 + [=] 16 16 + [ode15s] 18 23 + [(] 24 24 + [varargin] 25 32 + [)] 33 33 + [;] 34 34 +L538 + [\[] 9 9 + [t] 10 10 + [,] 11 11 + [y] 13 13 + [\]] 14 14 + [=] 16 16 + [ode45] 18 22 + [(] 23 23 + [varargin] 24 31 + [)] 32 32 + [;] 33 33 +L541 + [f] 9 9 + [=] 11 11 + [pchip] 13 17 + [(] 18 18 + [x] 19 19 + [,] 20 20 + [y] 22 22 + [,] 23 23 + [method] 25 30 + [)] 31 31 + [;] 32 32 +L544 + [f] 9 9 + [=] 11 11 + [spline] 13 18 + [(] 19 19 + [x] 20 20 + [,] 21 21 + [y] 23 23 + [,] 24 24 + [d] 26 26 + [)] 27 27 + [;] 28 28 +L547 + [update] 9 14 + [(] 15 15 + [varargin] 16 23 + [)] 24 24 +L549 + [end] 5 7 +L554 + [methods] 5 11 + [(] 13 13 + [Hidden] 15 20 + [=] 22 22 + [true] 24 27 + [,] 28 28 + [Static] 30 35 + [=] 37 37 + [true] 39 42 + [)] 44 44 +L557 + [G] 9 9 + [=] 11 11 + [cell2quasi] 13 22 + [(] 23 23 + [F] 24 24 + [)] 25 25 +L560 + [vals] 9 12 + [=] 14 14 + [getValuesAtBreakpoints] 16 37 + [(] 38 38 + [funs] 39 42 + [,] 43 43 + [ends] 45 48 + [,] 49 49 + [op] 51 52 + [)] 53 53 + [;] 54 54 +L563 + [out] 9 11 + [=] 13 13 + [whichInterval] 15 27 + [(] 28 28 + [dom] 29 31 + [,] 32 32 + [x] 34 34 + [,] 35 35 + [direction] 37 45 + [)] 46 46 + [;] 47 47 +L565 + [end] 5 7 +L570 + [methods] 5 11 + [(] 13 13 + [Access] 15 20 + [=] 22 22 + [private] 24 30 + [,] 31 31 + [Static] 33 38 + [=] 40 40 + [true] 42 45 + [)] 47 47 +L573 + [\[] 9 9 + [funs] 10 13 + [,] 14 14 + [ends] 16 19 + [\]] 20 20 + [=] 22 22 + [constructor] 24 34 + [(] 35 35 + [op] 36 37 + [,] 38 38 + [domain] 40 45 + [,] 46 46 + [data] 48 51 + [,] 52 52 + [pref] 54 57 + [)] 58 58 + [;] 59 59 +L576 + [\[] 9 9 + [y] 10 10 + [,] 11 11 + [t] 13 13 + [\]] 14 14 + [=] 16 16 + [odesol] 18 23 + [(] 24 24 + [sol] 25 27 + [,] 28 28 + [dom] 30 32 + [,] 33 33 + [opt] 35 37 + [)] 38 38 + [;] 39 39 +L579 + [\[] 9 9 + [lineStyle] 10 18 + [,] 19 19 + [pointStyle] 21 30 + [,] 31 31 + [jumpStyle] 33 41 + [,] 42 42 + [deltaStyle] 44 53 + [,] 54 54 + [out] 56 58 + [\]] 59 59 + [=] 61 61 + [.] 63 63 + [.] 64 64 + [.] 65 65 +L580 + [parsePlotStyle] 13 26 + [(] 27 27 + [varargin] 28 35 + [)] 36 36 +L582 + [end] 5 7 +L584 + [end] 1 3 +L590 + [function] 1 8 + [op] 10 11 + [=] 13 13 + [str2op] 15 20 + [(] 21 21 + [op] 22 23 + [)] 24 24 +L592 + [sop] 5 7 + [=] 9 9 + [str2num] 11 17 + [(] 18 18 + [op] 19 20 + [)] 21 21 + [;] 22 22 +L593 + [if] 5 6 + [(] 8 8 + [~] 10 10 + [isempty] 11 17 + [(] 18 18 + [sop] 19 21 + [)] 22 22 + [)] 24 24 +L594 + [op] 9 10 + [=] 12 12 + [sop] 14 16 + [;] 17 17 +L595 + [else] 5 8 +L596 + [depVar] 9 14 + [=] 16 16 + [symvar] 18 23 + [(] 24 24 + [op] 25 26 + [)] 27 27 + [;] 28 28 +L597 + [if] 9 10 + [(] 12 12 + [numel] 14 18 + [(] 19 19 + [depVar] 20 25 + [)] 26 26 + [~=] 28 29 + [1] 31 31 + [)] 33 33 +L598 + [error] 13 17 + [(] 18 18 + ['CHEBFUN:CHEBFUN:str2op:indepvars'] 19 52 + [,] 53 53 + [.] 55 55 + [.] 56 56 + [.] 57 57 +L599 + ['Incorrect number of independent v[ 17 76 + [)] 77 77 + [;] 78 78 +L600 + [end] 9 11 +L601 + [op] 9 10 + [=] 12 12 + [eval] 14 17 + [(] 18 18 + [\[] 19 19 + ['@('] 20 23 + [depVar] 25 30 + [{] 31 31 + [:] 32 32 + [}] 33 33 + [')'] 35 37 + [,] 38 38 + [op] 40 41 + [\]] 42 42 + [)] 43 43 + [;] 44 44 +L602 + [end] 5 7 +L603 + [end] 1 3 +L605 + [function] 1 8 + [\[] 10 10 + [op] 11 12 + [,] 13 13 + [dom] 15 17 + [,] 18 18 + [data] 20 23 + [,] 24 24 + [pref] 26 29 + [\]] 30 30 + [=] 32 32 + [parseInputs] 34 44 + [(] 45 45 + [op] 46 47 + [,] 48 48 + [varargin] 50 57 + [)] 58 58 +L612 + [if] 5 6 + [(] 8 8 + [strncmp] 10 16 + [(] 17 17 + [op] 18 19 + [,] 20 20 + ['--'] 22 25 + [,] 26 26 + [2] 28 28 + [)] 29 29 + [)] 31 31 +L614 + [if] 9 10 + [(] 12 12 + [strcmpi] 14 20 + [(] 21 21 + [op] 22 23 + [,] 24 24 + ['--update'] 26 35 + [)] 36 36 + [)] 38 38 +L615 + [chebfun] 13 19 + [.] 20 20 + [update] 21 26 + [(] 27 27 + [)] 28 28 + [;] 29 29 +L616 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [op] 26 27 + [,] 28 28 + ['--update-devel'] 30 45 + [)] 46 46 + [)] 48 48 +L617 + [chebfun] 13 19 + [.] 20 20 + [update] 21 26 + [(] 27 27 + ['development'] 28 40 + [)] 41 41 + [;] 42 42 +L618 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [op] 26 27 + [,] 28 28 + ['--version'] 30 40 + [)] 41 41 + [)] 43 43 +L619 + [installDir] 13 22 + [=] 24 24 + [chebfunroot] 26 36 + [(] 37 37 + [)] 38 38 + [;] 39 39 +L620 + [fid] 13 15 + [=] 17 17 + [fopen] 19 23 + [(] 24 24 + [fullfile] 25 32 + [(] 33 33 + [installDir] 34 43 + [,] 44 44 + ['Contents.m'] 46 57 + [)] 58 58 + [,] 59 59 + ['r'] 61 63 + [)] 64 64 + [;] 65 65 +L621 + [fgetl] 13 17 + [(] 18 18 + [fid] 19 21 + [)] 22 22 + [;] 23 23 +L622 + [str] 13 15 + [=] 17 17 + [fgetl] 19 23 + [(] 24 24 + [fid] 25 27 + [)] 28 28 + [;] 29 29 +L623 + [disp] 13 16 + [(] 17 17 + [\[] 18 18 + ['Chebfun '] 19 28 + [,] 29 29 + [str] 31 33 + [(] 34 34 + [3] 35 35 + [:] 36 36 + [end] 37 39 + [)] 40 40 + [\]] 41 41 + [)] 42 42 + [;] 43 43 +L624 + [fclose] 13 18 + [(] 19 19 + [fid] 20 22 + [)] 23 23 + [;] 24 24 +L625 + [else] 9 12 +L626 + [error] 13 17 + [(] 18 18 + ['CHEBFUN:parseInputs:unknown'] 19 47 + [,] 48 48 + [.] 50 50 + [.] 51 51 + [.] 52 52 +L627 + ['Unknow command %s.'] 17 36 + [,] 37 37 + [op] 39 40 + [)] 41 41 + [;] 42 42 +L628 + [end] 9 11 +L629 + [op] 9 10 + [=] 12 12 + ['done'] 14 19 + [;] 20 20 +L630 + [dom] 9 11 + [=] 13 13 + [\[] 15 15 + [\]] 16 16 + [;] 17 17 +L631 + [data] 9 12 + [=] 14 14 + [struct] 16 21 + [(] 22 22 + [)] 23 23 + [;] 24 24 +L632 + [pref] 9 12 + [=] 14 14 + [\[] 16 16 + [\]] 17 17 + [;] 18 18 +L633 + [return] 9 14 +L634 + [end] 5 7 +L637 + [data] 5 8 + [.] 9 9 + [hscale] 10 15 + [=] 17 17 + [\[] 19 19 + [\]] 20 20 + [;] 21 21 +L638 + [data] 5 8 + [.] 9 9 + [vscale] 10 15 + [=] 17 17 + [\[] 19 19 + [\]] 20 20 + [;] 21 21 +L639 + [data] 5 8 + [.] 9 9 + [exponents] 10 18 + [=] 20 20 + [\[] 22 22 + [\]] 23 23 + [;] 24 24 +L640 + [data] 5 8 + [.] 9 9 + [singType] 10 17 + [=] 19 19 + [\[] 21 21 + [\]] 22 22 + [;] 23 23 +L642 + [args] 5 8 + [=] 10 10 + [varargin] 12 19 + [;] 20 20 +L645 + [if] 5 6 + [(] 8 8 + [nargin] 10 15 + [==] 17 18 + [1] 20 20 + [)] 22 22 +L646 + [pref] 9 12 + [=] 14 14 + [chebfunpref] 16 26 + [(] 27 27 + [)] 28 28 + [;] 29 29 +L647 + [end] 5 7 +L650 + [domainWasPassed] 5 19 + [=] 21 21 + [false] 23 27 + [;] 28 28 +L651 + [if] 5 6 + [(] 8 8 + [~] 10 10 + [isempty] 11 17 + [(] 18 18 + [args] 19 22 + [)] 23 23 + [)] 25 25 +L652 + [if] 9 10 + [(] 12 12 + [isnumeric] 14 22 + [(] 23 23 + [args] 24 27 + [{] 28 28 + [1] 29 29 + [}] 30 30 + [)] 31 31 + [&&] 33 34 + [.] 36 36 + [.] 37 37 + [.] 38 38 +L653 + [(] 17 17 + [(] 18 18 + [length] 19 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [)] 33 33 + [>=] 35 36 + [2] 38 38 + [)] 39 39 + [||] 41 42 + [isempty] 44 50 + [(] 51 51 + [args] 52 55 + [{] 56 56 + [1] 57 57 + [}] 58 58 + [)] 59 59 + [)] 60 60 + [)] 62 62 +L654 + [dom] 13 15 + [=] 17 17 + [args] 19 22 + [{] 23 23 + [1] 24 24 + [}] 25 25 + [;] 26 26 +L655 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L656 + [domainWasPassed] 13 27 + [=] 29 29 + [true] 31 34 + [;] 35 35 +L657 + [elseif] 9 14 + [(] 16 16 + [isa] 18 20 + [(] 21 21 + [args] 22 25 + [{] 26 26 + [1] 27 27 + [}] 28 28 + [,] 29 29 + ['domain'] 31 38 + [)] 39 39 + [)] 41 41 +L658 + [dom] 13 15 + [=] 17 17 + [double] 19 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [)] 33 33 + [;] 34 34 +L659 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L660 + [domainWasPassed] 13 27 + [=] 29 29 + [true] 31 34 + [;] 35 35 +L661 + [end] 9 11 +L662 + [end] 5 7 +L665 + [keywordPrefs] 5 16 + [=] 18 18 + [struct] 20 25 + [(] 26 26 + [)] 27 27 + [;] 28 28 +L668 + [prefWasPassed] 5 17 + [=] 19 19 + [false] 21 25 + [;] 26 26 +L669 + [isPeriodic] 5 14 + [=] 16 16 + [false] 18 22 + [;] 23 23 +L670 + [vectorize] 5 13 + [=] 15 15 + [false] 17 21 + [;] 22 22 +L671 + [doVectorCheck] 5 17 + [=] 19 19 + [true] 21 24 + [;] 25 25 +L672 + [while] 5 9 + [(] 11 11 + [~] 13 13 + [isempty] 14 20 + [(] 21 21 + [args] 22 25 + [)] 26 26 + [)] 28 28 +L673 + [if] 9 10 + [(] 12 12 + [isstruct] 14 21 + [(] 22 22 + [args] 23 26 + [{] 27 27 + [1] 28 28 + [}] 29 29 + [)] 30 30 + [||] 32 33 + [isa] 35 37 + [(] 38 38 + [args] 39 42 + [{] 43 43 + [1] 44 44 + [}] 45 45 + [,] 46 46 + ['chebfunpref'] 48 60 + [)] 61 61 + [)] 63 63 +L676 + [if] 13 14 + [(] 16 16 + [~] 18 18 + [prefWasPassed] 19 31 + [)] 33 33 +L677 + [pref] 17 20 + [=] 22 22 + [chebfunpref] 24 34 + [(] 35 35 + [args] 36 39 + [{] 40 40 + [1] 41 41 + [}] 42 42 + [)] 43 43 + [;] 44 44 +L678 + [prefWasPassed] 17 29 + [=] 31 31 + [true] 33 36 + [;] 37 37 +L679 + [args] 17 20 + [(] 21 21 + [1] 22 22 + [)] 23 23 + [=] 25 25 + [\[] 27 27 + [\]] 28 28 + [;] 29 29 +L680 + [else] 13 16 +L681 + [error] 17 21 + [(] 22 22 + ['CHEBFUN:CHEBFUN:parseInputs:twoPr[ 23 60 + [,] 61 61 + [.] 63 63 + [.] 64 64 + [.] 65 65 +L682 + ['Multiple preference inputs are no[ 21 65 + [)] 66 66 + [;] 67 67 +L683 + [end] 13 15 +L684 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['equi'] 35 40 + [)] 41 41 + [)] 43 43 +L686 + [keywordPrefs] 13 24 + [.] 25 25 + [tech] 26 29 + [=] 31 31 + ['funqui'] 33 40 + [;] 41 41 +L687 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L688 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['vectorize'] 35 45 + [)] 46 46 + [||] 48 49 + [.] 51 51 + [.] 52 52 + [.] 53 53 +L689 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['vectorise'] 35 45 + [)] 46 46 + [)] 48 48 +L691 + [vectorize] 13 21 + [=] 23 23 + [true] 25 28 + [;] 29 29 +L692 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L693 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['novectorcheck'] 35 49 + [)] 50 50 + [)] 52 52 +L695 + [doVectorCheck] 13 25 + [=] 27 27 + [false] 29 33 + [;] 34 34 +L696 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L697 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['coeffs'] 35 42 + [)] 43 43 + [&&] 45 46 + [isnumeric] 48 56 + [(] 57 57 + [op] 58 59 + [)] 60 60 + [)] 62 62 +L699 + [op] 13 14 + [=] 16 16 + [{] 18 18 + [{] 19 19 + [\[] 20 20 + [\]] 21 21 + [,] 22 22 + [op] 24 25 + [}] 26 26 + [}] 27 27 + [;] 28 28 +L700 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L701 + [elseif] 9 14 + [(] 16 16 + [any] 18 20 + [(] 21 21 + [strcmpi] 22 28 + [(] 29 29 + [args] 30 33 + [{] 34 34 + [1] 35 35 + [}] 36 36 + [,] 37 37 + [{] 39 39 + ['periodic'] 40 49 + [,] 50 50 + ['trig'] 52 57 + [}] 58 58 + [)] 59 59 + [)] 60 60 + [)] 62 62 +L702 + [isPeriodic] 13 22 + [=] 24 24 + [true] 26 29 + [;] 30 30 +L703 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L704 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['coeffs'] 35 42 + [)] 43 43 + [&&] 45 46 + [iscell] 48 53 + [(] 54 54 + [op] 55 56 + [)] 57 57 + [)] 59 59 +L705 + [error] 13 17 + [(] 18 18 + ['CHEBFUN:CHEBFUN:parseInputs:coeff[ 19 57 + [,] 58 58 + [.] 60 60 + [.] 61 61 + [.] 62 62 +L706 + ['Cannot construct CHEBFUN from a c[ 17 77 + [)] 78 78 + [;] 79 79 +L707 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['trunc'] 35 41 + [)] 42 42 + [)] 44 44 +L709 + [keywordPrefs] 13 24 + [.] 25 25 + [splitting] 26 34 + [=] 36 36 + [true] 38 41 + [;] 42 42 +L710 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L711 + [elseif] 9 14 + [(] 16 16 + [isnumeric] 18 26 + [(] 27 27 + [args] 28 31 + [{] 32 32 + [1] 33 33 + [}] 34 34 + [)] 35 35 + [&&] 37 38 + [isscalar] 40 47 + [(] 48 48 + [args] 49 52 + [{] 53 53 + [1] 54 54 + [}] 55 55 + [)] 56 56 + [)] 58 58 +L713 + [keywordPrefs] 13 24 + [.] 25 25 + [techPrefs] 26 34 + [.] 35 35 + [fixedLength] 36 46 + [=] 48 48 + [args] 50 53 + [{] 54 54 + [1] 55 55 + [}] 56 56 + [;] 57 57 +L714 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [=] 21 21 + [\[] 23 23 + [\]] 24 24 + [;] 25 25 +L715 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['splitting'] 35 45 + [)] 46 46 + [)] 48 48 +L716 + [keywordPrefs] 13 24 + [.] 25 25 + [splitting] 26 34 + [=] 36 36 + [strcmpi] 38 44 + [(] 45 45 + [args] 46 49 + [{] 50 50 + [2] 51 51 + [}] 52 52 + [,] 53 53 + ['on'] 55 58 + [)] 59 59 + [;] 60 60 +L717 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L718 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['minsamples'] 35 46 + [)] 47 47 + [)] 49 49 +L720 + [keywordPrefs] 13 24 + [.] 25 25 + [techPrefs] 26 34 + [.] 35 35 + [minSamples] 36 45 + [=] 47 47 + [args] 49 52 + [{] 53 53 + [2] 54 54 + [}] 55 55 + [;] 56 56 +L721 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L722 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['blowup'] 35 42 + [)] 43 43 + [)] 45 45 +L723 + [if] 13 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [2] 31 31 + [}] 32 32 + [,] 33 33 + ['off'] 35 39 + [)] 40 40 + [)] 42 42 +L725 + [keywordPrefs] 17 28 + [.] 29 29 + [blowup] 30 35 + [=] 37 37 + [0] 39 39 + [;] 40 40 +L726 + [else] 13 16 +L732 + [if] 17 18 + [(] 20 20 + [(] 22 22 + [isnumeric] 23 31 + [(] 32 32 + [args] 33 36 + [{] 37 37 + [2] 38 38 + [}] 39 39 + [)] 40 40 + [&&] 42 43 + [args] 45 48 + [{] 49 49 + [2] 50 50 + [}] 51 51 + [==] 53 54 + [1] 56 56 + [)] 58 58 + [||] 60 61 + [.] 63 63 + [.] 64 64 + [.] 65 65 +L733 + [strcmpi] 25 31 + [(] 32 32 + [args] 33 36 + [{] 37 37 + [2] 38 38 + [}] 39 39 + [,] 40 40 + ['on'] 42 45 + [)] 46 46 + [)] 48 48 +L736 + [keywordPrefs] 21 32 + [.] 33 33 + [blowup] 34 39 + [=] 41 41 + [1] 43 43 + [;] 44 44 +L737 + [data] 21 24 + [.] 25 25 + [singType] 26 33 + [=] 35 35 + [{] 37 37 + ['pole'] 38 43 + [}] 44 44 + [;] 45 45 +L738 + [elseif] 17 22 + [(] 24 24 + [args] 26 29 + [{] 30 30 + [2] 31 31 + [}] 32 32 + [==] 34 35 + [2] 37 37 + [)] 39 39 +L741 + [keywordPrefs] 21 32 + [.] 33 33 + [blowup] 34 39 + [=] 41 41 + [1] 43 43 + [;] 44 44 +L742 + [data] 21 24 + [.] 25 25 + [singType] 26 33 + [=] 35 35 + [{] 37 37 + ['sing'] 38 43 + [}] 44 44 + [;] 45 45 +L743 + [else] 17 20 +L744 + [error] 21 25 + [(] 26 26 + ['CHEBFUN:CHEBFUN:parseInputs:badBl[ 27 71 + [,] 72 72 + [.] 74 74 + [.] 75 75 + [.] 76 76 +L745 + ['Invalid value for ''blowup'' opti[ 25 62 + [)] 63 63 + [;] 64 64 +L746 + [end] 17 19 +L747 + [end] 13 15 +L748 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L749 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['vscale'] 35 42 + [)] 43 43 + [)] 45 45 +L751 + [data] 13 16 + [.] 17 17 + [vscale] 18 23 + [=] 25 25 + [args] 27 30 + [{] 31 31 + [2] 32 32 + [}] 33 33 + [;] 34 34 +L752 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L753 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['hscale'] 35 42 + [)] 43 43 + [)] 45 45 +L755 + [data] 13 16 + [.] 17 17 + [vscale] 18 23 + [=] 25 25 + [args] 27 30 + [{] 31 31 + [2] 32 32 + [}] 33 33 + [;] 34 34 +L756 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L757 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['singType'] 35 44 + [)] 45 45 + [)] 47 47 +L759 + [data] 13 16 + [.] 17 17 + [singType] 18 25 + [=] 27 27 + [args] 29 32 + [{] 33 33 + [2] 34 34 + [}] 35 35 + [;] 36 36 +L760 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L761 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['exps'] 35 40 + [)] 41 41 + [)] 43 43 +L763 + [data] 13 16 + [.] 17 17 + [exponents] 18 26 + [=] 28 28 + [args] 30 33 + [{] 34 34 + [2] 35 35 + [}] 36 36 + [;] 37 37 +L764 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L765 + [elseif] 9 14 + [(] 16 16 + [any] 18 20 + [(] 21 21 + [strcmpi] 22 28 + [(] 29 29 + [args] 30 33 + [{] 34 34 + [1] 35 35 + [}] 36 36 + [,] 37 37 + ['chebkind'] 39 48 + [)] 49 49 + [)] 50 50 + [)] 52 52 +L767 + [if] 13 14 + [(] 16 16 + [(] 18 18 + [isnumeric] 19 27 + [(] 28 28 + [args] 29 32 + [{] 33 33 + [2] 34 34 + [}] 35 35 + [)] 36 36 + [&&] 38 39 + [(] 41 41 + [args] 42 45 + [{] 46 46 + [2] 47 47 + [}] 48 48 + [==] 50 51 + [1] 53 53 + [)] 54 54 + [)] 55 55 + [||] 57 58 + [.] 60 60 + [.] 61 61 + [.] 62 62 +L768 + [(] 22 22 + [ischar] 23 28 + [(] 29 29 + [args] 30 33 + [{] 34 34 + [2] 35 35 + [}] 36 36 + [)] 37 37 + [&&] 39 40 + [strncmpi] 42 49 + [(] 50 50 + [args] 51 54 + [{] 55 55 + [2] 56 56 + [}] 57 57 + [,] 58 58 + ['1st'] 60 64 + [,] 65 65 + [1] 67 67 + [)] 68 68 + [)] 69 69 + [)] 71 71 +L769 + [keywordPrefs] 17 28 + [.] 29 29 + [tech] 30 33 + [=] 35 35 + [@] 37 37 + [chebtech1] 38 46 + [;] 47 47 +L770 + [elseif] 13 18 + [(] 20 20 + [(] 22 22 + [isnumeric] 23 31 + [(] 32 32 + [args] 33 36 + [{] 37 37 + [2] 38 38 + [}] 39 39 + [)] 40 40 + [&&] 42 43 + [(] 45 45 + [args] 46 49 + [{] 50 50 + [2] 51 51 + [}] 52 52 + [==] 54 55 + [2] 57 57 + [)] 58 58 + [)] 59 59 + [||] 61 62 + [.] 64 64 + [.] 65 65 + [.] 66 66 +L771 + [(] 22 22 + [ischar] 23 28 + [(] 29 29 + [args] 30 33 + [{] 34 34 + [2] 35 35 + [}] 36 36 + [)] 37 37 + [&&] 39 40 + [strncmpi] 42 49 + [(] 50 50 + [args] 51 54 + [{] 55 55 + [2] 56 56 + [}] 57 57 + [,] 58 58 + ['2nd'] 60 64 + [,] 65 65 + [1] 67 67 + [)] 68 68 + [)] 69 69 + [)] 71 71 +L772 + [keywordPrefs] 17 28 + [.] 29 29 + [tech] 30 33 + [=] 35 35 + [@] 37 37 + [chebtech2] 38 46 + [;] 47 47 +L773 + [else] 13 16 +L774 + [error] 17 21 + [(] 22 22 + ['CHEBFUN:CHEBFUN:parseInputs:badCh[ 23 63 + [,] 64 64 + [.] 66 66 + [.] 67 67 + [.] 68 68 +L775 + ['Invalid value for ''chebkind'' op[ 21 60 + [)] 61 61 + [;] 62 62 +L776 + [end] 13 15 +L777 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L778 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['resampling'] 35 46 + [)] 47 47 + [)] 49 49 +L780 + [if] 13 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [2] 31 31 + [}] 32 32 + [,] 33 33 + ['on'] 35 38 + [)] 39 39 + [)] 41 41 +L781 + [keywordPrefs] 17 28 + [.] 29 29 + [techPrefs] 30 38 + [.] 39 39 + [refinementFunction] 40 57 + [=] 59 59 + ['resampling'] 61 72 + [;] 73 73 +L782 + [elseif] 13 18 + [(] 20 20 + [strcmpi] 22 28 + [(] 29 29 + [args] 30 33 + [{] 34 34 + [2] 35 35 + [}] 36 36 + [,] 37 37 + ['off'] 39 43 + [)] 44 44 + [)] 46 46 +L783 + [keywordPrefs] 17 28 + [.] 29 29 + [techPrefs] 30 38 + [.] 39 39 + [refinementFunction] 40 57 + [=] 59 59 + ['nested'] 61 68 + [;] 69 69 +L784 + [end] 13 15 +L785 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L786 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['maxdegree'] 35 45 + [)] 46 46 + [)] 48 48 +L788 + [keywordPrefs] 13 24 + [.] 25 25 + [techPrefs] 26 34 + [.] 35 35 + [maxLength] 36 44 + [=] 46 46 + [args] 48 51 + [{] 52 52 + [2] 53 53 + [}] 54 54 + [;] 55 55 +L789 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L790 + [elseif] 9 14 + [(] 16 16 + [any] 18 20 + [(] 21 21 + [strcmpi] 22 28 + [(] 29 29 + [args] 30 33 + [{] 34 34 + [1] 35 35 + [}] 36 36 + [,] 37 37 + [{] 39 39 + ['splitLength'] 40 52 + [,] 53 53 + ['splitdegree'] 55 67 + [}] 68 68 + [)] 69 69 + [)] 70 70 + [)] 72 72 +L792 + [keywordPrefs] 13 24 + [.] 25 25 + [splitPrefs] 26 35 + [.] 36 36 + [splitLength] 37 47 + [=] 49 49 + [args] 51 54 + [{] 55 55 + [2] 56 56 + [}] 57 57 + [;] 58 58 +L793 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L794 + [elseif] 9 14 + [(] 16 16 + [strcmpi] 18 24 + [(] 25 25 + [args] 26 29 + [{] 30 30 + [1] 31 31 + [}] 32 32 + [,] 33 33 + ['splitMaxLength'] 35 50 + [)] 51 51 + [)] 53 53 +L796 + [keywordPrefs] 13 24 + [.] 25 25 + [splitPrefs] 26 35 + [.] 36 36 + [splitMaxLength] 37 50 + [=] 52 52 + [args] 54 57 + [{] 58 58 + [2] 59 59 + [}] 60 60 + [;] 61 61 +L797 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L798 + [elseif] 9 14 + [(] 16 16 + [ischar] 18 23 + [(] 24 24 + [args] 25 28 + [{] 29 29 + [1] 30 30 + [}] 31 31 + [)] 32 32 + [)] 34 34 +L800 + [if] 13 14 + [(] 16 16 + [length] 18 23 + [(] 24 24 + [args] 25 28 + [)] 29 29 + [<] 31 31 + [2] 33 33 + [)] 35 35 +L801 + [error] 17 21 + [(] 22 22 + ['CHEBFUN:CHEBFUN:parseInputs:noPre[ 23 63 + [,] 64 64 + [.] 66 66 + [.] 67 67 + [.] 68 68 +L802 + [\[] 21 21 + ['Value for '''] 22 35 + [args] 37 40 + [{] 41 41 + [1] 42 42 + [}] 43 43 + [''' preference was not supplied.'] 45 77 + [\]] 78 78 + [)] 79 79 + [;] 80 80 +L803 + [end] 13 15 +L804 + [keywordPrefs] 13 24 + [.] 25 25 + [(] 26 26 + [args] 27 30 + [{] 31 31 + [1] 32 32 + [}] 33 33 + [)] 34 34 + [=] 36 36 + [args] 38 41 + [{] 42 42 + [2] 43 43 + [}] 44 44 + [;] 45 45 +L805 + [args] 13 16 + [(] 17 17 + [1] 18 18 + [:] 19 19 + [2] 20 20 + [)] 21 21 + [=] 23 23 + [\[] 25 25 + [\]] 26 26 + [;] 27 27 +L806 + [else] 9 12 +L807 + [if] 13 14 + [(] 16 16 + [isnumeric] 18 26 + [(] 27 27 + [args] 28 31 + [{] 32 32 + [1] 33 33 + [}] 34 34 + [)] 35 35 + [)] 37 37 +L808 + [error] 17 21 + [(] 22 22 + ['CHEBFUN:CHEBFUN:parseInputs:badIn[ 23 67 + [,] 68 68 + [.] 70 70 + [.] 71 71 + [.] 72 72 +L809 + [\[] 21 21 + ['Could not parse input argument se[ 22 65 + [.] 67 67 + [.] 68 68 + [.] 69 69 +L810 + ['(Perhaps the construction domain [ 22 74 + [.] 76 76 + [.] 77 77 + [.] 78 78 +L811 + ['argument?)'] 22 33 + [\]] 34 34 + [)] 35 35 + [;] 36 36 +L812 + [else] 13 16 +L813 + [error] 17 21 + [(] 22 22 + ['CHEBFUN:CHEBFUN:parseInputs:badIn[ 23 60 + [,] 61 61 + [.] 63 63 + [.] 64 64 + [.] 65 65 +L814 + ['Could not parse input argument se[ 21 62 + [)] 63 63 + [;] 64 64 +L815 + [end] 13 15 +L816 + [end] 9 11 +L817 + [end] 5 7 +L821 + [if] 5 6 + [(] 8 8 + [prefWasPassed] 10 22 + [)] 24 24 +L822 + [pref] 9 12 + [=] 14 14 + [chebfunpref] 16 26 + [(] 27 27 + [pref] 28 31 + [,] 32 32 + [keywordPrefs] 34 45 + [)] 46 46 + [;] 47 47 +L823 + [else] 5 8 +L824 + [pref] 9 12 + [=] 14 14 + [chebfunpref] 16 26 + [(] 27 27 + [keywordPrefs] 28 39 + [)] 40 40 + [;] 41 41 +L825 + [end] 5 7 +L828 + [if] 5 6 + [(] 8 8 + [~] 10 10 + [domainWasPassed] 11 25 + [||] 27 28 + [isempty] 30 36 + [(] 37 37 + [dom] 38 40 + [)] 41 41 + [)] 43 43 +L829 + [if] 9 10 + [(] 12 12 + [isa] 14 16 + [(] 17 17 + [op] 18 19 + [,] 20 20 + ['chebfun'] 22 30 + [)] 31 31 + [)] 33 33 +L830 + [dom] 13 15 + [=] 17 17 + [\[] 19 19 + [op] 21 22 + [.] 23 23 + [domain] 24 29 + [(] 30 30 + [1] 31 31 + [)] 32 32 + [op] 34 35 + [.] 36 36 + [domain] 37 42 + [(] 43 43 + [end] 44 46 + [)] 47 47 + [\]] 49 49 + [;] 50 50 +L831 + [else] 9 12 +L832 + [dom] 13 15 + [=] 17 17 + [pref] 19 22 + [.] 23 23 + [domain] 24 29 + [;] 30 30 +L833 + [end] 9 11 +L834 + [end] 5 7 +L835 + [numIntervals] 5 16 + [=] 18 18 + [numel] 20 24 + [(] 25 25 + [dom] 26 28 + [)] 29 29 + [-] 31 31 + [1] 33 33 + [;] 34 34 +L838 + [if] 5 6 + [(] 8 8 + [isPeriodic] 10 19 + [)] 21 21 +L840 + [pref] 9 12 + [.] 13 13 + [tech] 14 17 + [=] 19 19 + [@] 21 21 + [trigtech] 22 29 + [;] 30 30 +L841 + [pref] 9 12 + [.] 13 13 + [splitting] 14 22 + [=] 24 24 + [false] 26 30 + [;] 31 31 +L842 + [if] 9 10 + [(] 12 12 + [numel] 14 18 + [(] 19 19 + [dom] 20 22 + [)] 23 23 + [>] 25 25 + [2] 27 27 + [)] 29 29 +L843 + [error] 13 17 + [(] 18 18 + ['CHEBFUN:parseInputs:periodic'] 19 48 + [,] 49 49 + [.] 51 51 + [.] 52 52 + [.] 53 53 +L844 + ['''periodic'' or ''trig'' option i[ 17 87 + [)] 88 88 + [;] 89 89 +L845 + [end] 9 11 +L846 + [end] 5 7 +L849 + [if] 5 6 + [(] 8 8 + [iscell] 10 15 + [(] 16 16 + [op] 17 18 + [)] 19 19 + [)] 21 21 +L850 + [for] 9 11 + [k] 13 13 + [=] 15 15 + [1] 17 17 + [:] 18 18 + [numel] 19 23 + [(] 24 24 + [op] 25 26 + [)] 27 27 +L851 + [op] 13 14 + [{] 15 15 + [k] 16 16 + [}] 17 17 + [=] 19 19 + [parseOp] 21 27 + [(] 28 28 + [op] 29 30 + [{] 31 31 + [k] 32 32 + [}] 33 33 + [)] 34 34 + [;] 35 35 +L852 + [end] 9 11 +L853 + [else] 5 8 +L854 + [op] 9 10 + [=] 12 12 + [parseOp] 14 20 + [(] 21 21 + [op] 22 23 + [)] 24 24 + [;] 25 25 +L855 + [end] 5 7 +L857 + [function] 5 12 + [op] 14 15 + [=] 17 17 + [parseOp] 19 25 + [(] 26 26 + [op] 27 28 + [)] 29 29 +L859 + [if] 9 10 + [(] 12 12 + [ischar] 14 19 + [(] 20 20 + [op] 21 22 + [)] 23 23 + [)] 25 25 +L860 + [op] 13 14 + [=] 16 16 + [str2op] 18 23 + [(] 24 24 + [op] 25 26 + [)] 27 27 + [;] 28 28 +L861 + [end] 9 11 +L862 + [if] 9 10 + [(] 12 12 + [doVectorCheck] 14 26 + [&&] 28 29 + [isa] 31 33 + [(] 34 34 + [op] 35 36 + [,] 37 37 + ['function_handle'] 39 55 + [)] 56 56 + [)] 58 58 +L863 + [op] 13 14 + [=] 16 16 + [vectorCheck] 18 28 + [(] 29 29 + [op] 30 31 + [,] 32 32 + [dom] 34 36 + [,] 37 37 + [vectorize] 39 47 + [)] 48 48 + [;] 49 49 +L864 + [end] 9 11 +L865 + [if] 9 10 + [(] 12 12 + [isa] 14 16 + [(] 17 17 + [op] 18 19 + [,] 20 20 + ['chebfun'] 22 30 + [)] 31 31 + [)] 33 33 +L866 + [op] 13 14 + [=] 16 16 + [@] 18 18 + [(] 19 19 + [x] 20 20 + [)] 21 21 + [feval] 23 27 + [(] 28 28 + [op] 29 30 + [,] 31 31 + [x] 33 33 + [)] 34 34 + [;] 35 35 +L867 + [end] 9 11 +L868 + [if] 9 10 + [(] 12 12 + [isa] 14 16 + [(] 17 17 + [op] 18 19 + [,] 20 20 + ['function_handle'] 22 38 + [)] 39 39 + [&&] 41 42 + [strcmp] 44 49 + [(] 50 50 + [pref] 51 54 + [.] 55 55 + [tech] 56 59 + [,] 60 60 + ['funqui'] 62 69 + [)] 70 70 + [)] 72 72 +L869 + [if] 13 14 + [(] 16 16 + [isfield] 18 24 + [(] 25 25 + [pref] 26 29 + [.] 30 30 + [techPrefs] 31 39 + [,] 40 40 + ['fixedLength'] 42 54 + [)] 55 55 + [&&] 57 58 + [.] 60 60 + [.] 61 61 + [.] 62 62 +L870 + [~] 18 18 + [isnan] 19 23 + [(] 24 24 + [pref] 25 28 + [.] 29 29 + [techPrefs] 30 38 + [.] 39 39 + [fixedLength] 40 50 + [)] 51 51 + [)] 53 53 +L871 + [x] 17 17 + [=] 19 19 + [linspace] 21 28 + [(] 29 29 + [dom] 30 32 + [(] 33 33 + [1] 34 34 + [)] 35 35 + [,] 36 36 + [dom] 38 40 + [(] 41 41 + [end] 42 44 + [)] 45 45 + [,] 46 46 + [pref] 48 51 + [.] 52 52 + [techPrefs] 53 61 + [.] 62 62 + [fixedLength] 63 73 + [)] 74 74 + [.'] 75 76 + [;] 77 77 +L872 + [op] 17 18 + [=] 20 20 + [feval] 22 26 + [(] 27 27 + [op] 28 29 + [,] 30 30 + [x] 32 32 + [)] 33 33 + [;] 34 34 +L873 + [pref] 17 20 + [.] 21 21 + [techPrefs] 22 30 + [.] 31 31 + [fixedLength] 32 42 + [=] 44 44 + [NaN] 46 48 + [;] 49 49 +L874 + [end] 13 15 +L875 + [end] 9 11 +L876 + [end] 5 7 +L879 + [if] 5 6 + [(] 8 8 + [any] 10 12 + [(] 13 13 + [data] 14 17 + [.] 18 18 + [exponents] 19 27 + [)] 28 28 + [||] 30 31 + [~] 33 33 + [isempty] 34 40 + [(] 41 41 + [data] 42 45 + [.] 46 46 + [singType] 47 54 + [)] 55 55 + [)] 57 57 +L880 + [pref] 9 12 + [.] 13 13 + [blowup] 14 19 + [=] 21 21 + [true] 23 26 + [;] 27 27 +L881 + [end] 5 7 +L883 + [if] 5 6 + [(] 8 8 + [numel] 10 14 + [(] 15 15 + [data] 16 19 + [.] 20 20 + [singType] 21 28 + [)] 29 29 + [==] 31 32 + [1] 34 34 + [)] 36 36 +L884 + [singType] 9 16 + [=] 18 18 + [data] 20 23 + [.] 24 24 + [singType] 25 32 + [{] 33 33 + [1] 34 34 + [}] 35 35 + [;] 36 36 +L885 + [data] 9 12 + [.] 13 13 + [singType] 14 21 + [=] 23 23 + [cell] 25 28 + [(] 29 29 + [1] 30 30 + [,] 31 31 + [2] 33 33 + [*] 34 34 + [numIntervals] 35 46 + [)] 47 47 + [;] 48 48 +L886 + [for] 9 11 + [j] 13 13 + [=] 15 15 + [1] 17 17 + [:] 18 18 + [2] 19 19 + [*] 20 20 + [numIntervals] 21 32 +L887 + [data] 13 16 + [.] 17 17 + [singType] 18 25 + [{] 26 26 + [j] 27 27 + [}] 28 28 + [=] 30 30 + [singType] 32 39 + [;] 40 40 +L888 + [end] 9 11 +L889 + [elseif] 5 10 + [(] 12 12 + [~] 14 14 + [isempty] 15 21 + [(] 22 22 + [data] 23 26 + [.] 27 27 + [singType] 28 35 + [)] 36 36 + [&&] 38 39 + [.] 41 41 + [.] 42 42 + [.] 43 43 +L890 + [(] 13 13 + [numel] 14 18 + [(] 19 19 + [data] 20 23 + [.] 24 24 + [singType] 25 32 + [)] 33 33 + [~=] 35 36 + [2] 38 38 + [*] 39 39 + [numIntervals] 40 51 + [)] 52 52 + [)] 54 54 +L893 + [error] 9 13 + [(] 14 14 + ['CHEBFUN:CHEBFUN:parseInputs:badEx[ 15 56 + [,] 57 57 + [.] 59 59 + [.] 60 60 + [.] 61 61 +L894 + ['The number of the exponents is in[ 13 59 + [)] 60 60 + [;] 61 61 +L895 + [end] 5 7 +L897 + [if] 5 6 + [(] 8 8 + [~] 10 10 + [isempty] 11 17 + [(] 18 18 + [data] 19 22 + [.] 23 23 + [exponents] 24 32 + [)] 33 33 + [)] 35 35 +L898 + [exps] 9 12 + [=] 14 14 + [data] 16 19 + [.] 20 20 + [exponents] 21 29 + [;] 30 30 +L899 + [nExps] 9 13 + [=] 15 15 + [numel] 17 21 + [(] 22 22 + [exps] 23 26 + [)] 27 27 + [;] 28 28 +L900 + [if] 9 10 + [(] 12 12 + [nExps] 14 18 + [==] 20 21 + [1] 23 23 + [)] 25 25 +L903 + [exps] 13 16 + [=] 18 18 + [exps] 20 23 + [*] 24 24 + [ones] 25 28 + [(] 29 29 + [1] 30 30 + [,] 31 31 + [2] 33 33 + [*] 34 34 + [numIntervals] 35 46 + [)] 47 47 + [;] 48 48 +L904 + [elseif] 9 14 + [(] 16 16 + [nExps] 18 22 + [==] 24 25 + [2] 27 27 + [)] 29 29 +L907 + [exps] 13 16 + [=] 18 18 + [\[] 20 20 + [exps] 21 24 + [(] 25 25 + [1] 26 26 + [)] 27 27 + [zeros] 29 33 + [(] 34 34 + [1] 35 35 + [,] 36 36 + [2] 38 38 + [*] 39 39 + [(] 40 40 + [numIntervals] 41 52 + [-] 53 53 + [1] 54 54 + [)] 55 55 + [)] 56 56 + [exps] 58 61 + [(] 62 62 + [2] 63 63 + [)] 64 64 + [\]] 65 65 + [;] 66 66 +L908 + [elseif] 9 14 + [(] 16 16 + [nExps] 18 22 + [==] 24 25 + [numIntervals] 27 38 + [+] 40 40 + [1] 42 42 + [)] 44 44 +L912 + [exps] 13 16 + [=] 18 18 + [exps] 20 23 + [(] 24 24 + [ceil] 25 28 + [(] 29 29 + [1] 30 30 + [:] 31 31 + [0.5] 32 34 + [:] 35 35 + [nExps] 36 40 + [-] 42 42 + [0.5] 44 46 + [)] 47 47 + [)] 48 48 + [;] 49 49 +L913 + [elseif] 9 14 + [(] 15 15 + [nExps] 17 21 + [~=] 23 24 + [2] 26 26 + [*] 27 27 + [numIntervals] 28 39 + [)] 41 41 +L915 + [error] 13 17 + [(] 18 18 + ['CHEBFUN:CHEBFUN:chebfun:parseInpu[ 19 55 + [,] 56 56 + [.] 58 58 + [.] 59 59 + [.] 60 60 +L916 + ['Invalid length for vector of expo[ 17 57 + [)] 58 58 + [;] 59 59 +L917 + [end] 9 11 +L918 + [data] 9 12 + [.] 13 13 + [exponents] 14 22 + [=] 24 24 + [exps] 26 29 + [;] 30 30 +L919 + [end] 5 7 +L922 + [dom] 5 7 + [=] 9 9 + [double] 11 16 + [(] 17 17 + [dom] 18 20 + [)] 21 21 + [;] 22 22 +L924 + [end] 1 3 +L926 + [function] 1 8 + [op] 10 11 + [=] 13 13 + [vectorCheck] 15 25 + [(] 26 26 + [op] 27 28 + [,] 29 29 + [dom] 31 33 + [,] 34 34 + [vectorize] 36 44 + [)] 45 45 +L932 + [y] 1 1 + [=] 3 3 + [dom] 5 7 + [(] 8 8 + [\[] 9 9 + [1] 10 10 + [end] 12 14 + [\]] 15 15 + [)] 16 16 + [;] 17 17 +L934 + [if] 1 2 + [(] 4 4 + [y] 6 6 + [(] 7 7 + [1] 8 8 + [)] 9 9 + [>] 11 11 + [0] 13 13 + [)] 15 15 +L935 + [y] 5 5 + [(] 6 6 + [1] 7 7 + [)] 8 8 + [=] 10 10 + [1.01] 12 15 + [*] 16 16 + [y] 17 17 + [(] 18 18 + [1] 19 19 + [)] 20 20 + [;] 21 21 +L936 + [else] 1 4 +L937 + [y] 5 5 + [(] 6 6 + [1] 7 7 + [)] 8 8 + [=] 10 10 + [.99] 12 14 + [*] 15 15 + [y] 16 16 + [(] 17 17 + [1] 18 18 + [)] 19 19 + [;] 20 20 +L938 + [end] 1 3 +L940 + [if] 1 2 + [(] 4 4 + [y] 6 6 + [(] 7 7 + [end] 8 10 + [)] 11 11 + [>] 13 13 + [0] 15 15 + [)] 17 17 +L941 + [y] 5 5 + [(] 6 6 + [end] 7 9 + [)] 10 10 + [=] 12 12 + [.99] 14 16 + [*] 17 17 + [y] 18 18 + [(] 19 19 + [end] 20 22 + [)] 23 23 + [;] 24 24 +L942 + [else] 1 4 +L943 + [y] 5 5 + [(] 6 6 + [end] 7 9 + [)] 10 10 + [=] 12 12 + [1.01] 14 17 + [*] 18 18 + [y] 19 19 + [(] 20 20 + [end] 21 23 + [)] 24 24 + [;] 25 25 +L944 + [end] 1 3 +L946 + [y] 1 1 + [=] 3 3 + [y] 5 5 + [(] 6 6 + [:] 7 7 + [)] 8 8 + [;] 9 9 +L948 + [if] 1 2 + [(] 4 4 + [vectorize] 6 14 + [)] 16 16 +L949 + [op] 5 6 + [=] 8 8 + [vec] 10 12 + [(] 13 13 + [op] 14 15 + [,] 16 16 + [y] 18 18 + [(] 19 19 + [1] 20 20 + [)] 21 21 + [)] 22 22 + [;] 23 23 +L950 + [end] 1 3 +L952 + [try] 1 3 +L954 + [v] 5 5 + [=] 7 7 + [op] 9 10 + [(] 11 11 + [y] 12 12 + [)] 13 13 + [;] 14 14 +L957 + [sv] 5 6 + [=] 8 8 + [size] 10 13 + [(] 14 14 + [v] 15 15 + [)] 16 16 + [;] 17 17 +L958 + [sy] 5 6 + [=] 8 8 + [size] 10 13 + [(] 14 14 + [y] 15 15 + [)] 16 16 + [;] 17 17 +L961 + [if] 5 6 + [(] 8 8 + [sv] 10 11 + [(] 12 12 + [1] 13 13 + [)] 14 14 + [==] 16 17 + [sy] 19 20 + [(] 21 21 + [1] 22 22 + [)] 23 23 + [)] 25 25 +L967 + [if] 9 10 + [(] 12 12 + [sv] 14 15 + [(] 16 16 + [2] 17 17 + [)] 18 18 + [==] 20 21 + [sy] 23 24 + [(] 25 25 + [1] 26 26 + [)] 27 27 + [)] 29 29 +L968 + [v] 13 13 + [=] 15 15 + [op] 17 18 + [(] 19 19 + [y] 20 20 + [(] 21 21 + [1] 22 22 + [)] 23 23 + [)] 24 24 + [;] 25 25 +L969 + [if] 13 14 + [(] 16 16 + [size] 18 21 + [(] 22 22 + [v] 23 23 + [,] 24 24 + [1] 26 26 + [)] 27 27 + [>] 29 29 + [1] 31 31 + [)] 33 33 +L970 + [op] 17 18 + [=] 20 20 + [@] 22 22 + [(] 23 23 + [x] 24 24 + [)] 25 25 + [op] 27 28 + [(] 29 29 + [x] 30 30 + [)] 31 31 + [.'] 32 33 + [;] 34 34 +L971 + [warning] 17 23 + [(] 24 24 + ['CHEBFUN:CHEBFUN:vectorCheck:trans[ 25 63 + [,] 64 64 + [.] 65 65 + [.] 66 66 + [.] 67 67 +L972 + [\[] 21 21 + ['Chebfun input should return a COL[ 22 68 + [,] 69 69 + [.] 71 71 + [.] 72 72 + [.] 73 73 +L973 + ['Attempting to transpose.'] 22 47 + [\]] 48 48 + [)] 49 49 +L974 + [end] 13 15 +L975 + [end] 9 11 +L977 + [elseif] 5 10 + [(] 12 12 + [all] 14 16 + [(] 17 17 + [sv] 19 20 + [==] 22 23 + [1] 25 25 + [)] 27 27 + [)] 29 29 +L979 + [op] 9 10 + [=] 12 12 + [@] 14 14 + [(] 15 15 + [x] 16 16 + [)] 17 17 + [repmat] 19 24 + [(] 25 25 + [op] 26 27 + [(] 28 28 + [x] 29 29 + [)] 30 30 + [,] 31 31 + [length] 33 38 + [(] 39 39 + [x] 40 40 + [)] 41 41 + [,] 42 42 + [1] 44 44 + [)] 45 45 + [;] 46 46 +L981 + [elseif] 5 10 + [(] 12 12 + [any] 14 16 + [(] 17 17 + [sv] 18 19 + [==] 21 22 + [sy] 24 25 + [(] 26 26 + [1] 27 27 + [)] 28 28 + [)] 29 29 + [)] 31 31 +L983 + [if] 9 10 + [(] 12 12 + [any] 14 16 + [(] 17 17 + [sv] 18 19 + [)] 20 20 + [==] 22 23 + [1] 25 25 + [)] 27 27 +L985 + [v] 13 13 + [=] 15 15 + [op] 17 18 + [(] 19 19 + [y] 20 20 + [(] 21 21 + [1] 22 22 + [)] 23 23 + [)] 24 24 + [;] 25 25 +L986 + [if] 13 14 + [(] 16 16 + [all] 18 20 + [(] 21 21 + [size] 22 25 + [(] 26 26 + [v] 27 27 + [)] 28 28 + [==] 30 31 + [sv] 33 34 + [)] 35 35 + [)] 37 37 +L988 + [op] 17 18 + [=] 20 20 + [@] 22 22 + [(] 23 23 + [x] 24 24 + [)] 25 25 + [repmat] 27 32 + [(] 33 33 + [op] 34 35 + [(] 36 36 + [x] 37 37 + [)] 38 38 + [,] 39 39 + [length] 41 46 + [(] 47 47 + [x] 48 48 + [)] 49 49 + [,] 50 50 + [1] 52 52 + [)] 53 53 + [;] 54 54 +L989 + [return] 17 22 +L990 + [end] 13 15 +L991 + [end] 9 11 +L994 + [op] 9 10 + [=] 12 12 + [@] 14 14 + [(] 15 15 + [x] 16 16 + [)] 17 17 + [op] 19 20 + [(] 21 21 + [x] 22 22 + [)] 23 23 + [.'] 24 25 + [;] 26 26 +L995 + [warning] 9 15 + [(] 16 16 + ['CHEBFUN:CHEBFUN:vectorCheck:trans[ 17 55 + [,] 56 56 + [.] 57 57 + [.] 58 58 + [.] 59 59 +L996 + [\[] 17 17 + ['Chebfun input should return a COL[ 18 64 + [,] 65 65 + [.] 67 67 + [.] 68 68 + [.] 69 69 +L997 + ['Attempting to transpose.'] 18 43 + [\]] 44 44 + [)] 45 45 +L999 + [elseif] 5 10 + [(] 12 12 + [any] 14 16 + [(] 17 17 + [sv] 18 19 + [==] 21 22 + [1] 24 24 + [)] 25 25 + [)] 27 27 +L1001 + [op] 9 10 + [=] 12 12 + [@] 14 14 + [(] 15 15 + [x] 16 16 + [)] 17 17 + [repmat] 19 24 + [(] 25 25 + [op] 26 27 + [(] 28 28 + [x] 29 29 + [)] 30 30 + [,] 31 31 + [length] 33 38 + [(] 39 39 + [x] 40 40 + [)] 41 41 + [,] 42 42 + [1] 44 44 + [)] 45 45 + [;] 46 46 +L1003 + [end] 5 7 +L1005 + [catch] 1 5 + [ME] 7 8 +L1008 + [if] 5 6 + [(] 8 8 + [vectorize] 10 18 + [)] 20 20 +L1010 + [rethrow] 9 15 + [(] 16 16 + [ME] 17 18 + [)] 19 19 +L1012 + [else] 5 8 +L1014 + [op] 9 10 + [=] 12 12 + [vectorCheck] 14 24 + [(] 25 25 + [op] 26 27 + [,] 28 28 + [dom] 30 32 + [,] 33 33 + [1] 35 35 + [)] 36 36 + [;] 37 37 +L1015 + [warning] 9 15 + [(] 16 16 + ['CHEBFUN:CHEBFUN:vectorcheck:vecto[ 17 55 + [,] 56 56 + [.] 57 57 + [.] 58 58 + [.] 59 59 +L1016 + [\[] 9 9 + ['Function failed to evaluate on ar[ 10 57 + [,] 58 58 + [.] 59 59 + [.] 60 60 + [.] 61 61 +L1017 + ['Vectorizing the function may spee[ 9 64 + [,] 65 65 + [.] 66 66 + [.] 67 67 + [.] 68 68 +L1018 + ['and avoid the need to loop over a[ 9 59 + [,] 60 60 + [.] 61 61 + [.] 62 62 + [.] 63 63 +L1019 + ['Use ''vectorize'' flag in the CHE[ 9 66 + [,] 67 67 + [.] 69 69 + [.] 70 70 + [.] 71 71 +L1020 + ['to avoid this warning message.'] 9 40 + [\]] 41 41 + [)] 42 42 +L1022 + [end] 5 7 +L1024 + [end] 1 3 +L1026 + [end] 1 3 +L1028 + [function] 1 8 + [g] 10 10 + [=] 12 12 + [vec] 14 16 + [(] 17 17 + [op] 18 19 + [,] 20 20 + [y] 22 22 + [)] 23 23 +L1036 + [opy] 5 7 + [=] 9 9 + [op] 11 12 + [(] 13 13 + [y] 14 14 + [)] 15 15 + [;] 16 16 +L1037 + [if] 5 6 + [(] 8 8 + [any] 10 12 + [(] 13 13 + [size] 14 17 + [(] 18 18 + [opy] 19 21 + [)] 22 22 + [>] 24 24 + [1] 26 26 + [)] 27 27 + [)] 29 29 +L1039 + [g] 9 9 + [=] 11 11 + [@] 13 13 + [loopWrapperArray] 14 29 + [;] 30 30 +L1040 + [else] 5 8 +L1042 + [g] 9 9 + [=] 11 11 + [@] 13 13 + [loopWrapperScalar] 14 30 + [;] 31 31 +L1043 + [end] 5 7 +L1048 + [function] 5 12 + [v] 14 14 + [=] 16 16 + [loopWrapperScalar] 18 34 + [(] 35 35 + [x] 36 36 + [)] 37 37 +L1049 + [v] 9 9 + [=] 11 11 + [zeros] 13 17 + [(] 18 18 + [size] 19 22 + [(] 23 23 + [x] 24 24 + [)] 25 25 + [)] 26 26 + [;] 27 27 +L1050 + [for] 9 11 + [j] 13 13 + [=] 15 15 + [1] 17 17 + [:] 18 18 + [numel] 19 23 + [(] 24 24 + [v] 25 25 + [)] 26 26 +L1051 + [v] 13 13 + [(] 14 14 + [j] 15 15 + [)] 16 16 + [=] 18 18 + [op] 20 21 + [(] 22 22 + [x] 23 23 + [(] 24 24 + [j] 25 25 + [)] 26 26 + [)] 27 27 + [;] 28 28 +L1052 + [end] 9 11 +L1053 + [end] 5 7 +L1056 + [function] 5 12 + [v] 14 14 + [=] 16 16 + [loopWrapperArray] 18 33 + [(] 34 34 + [x] 35 35 + [)] 36 36 +L1057 + [numCol] 9 14 + [=] 16 16 + [size] 18 21 + [(] 22 22 + [op] 23 24 + [(] 25 25 + [x] 26 26 + [(] 27 27 + [1] 28 28 + [)] 29 29 + [)] 30 30 + [,] 31 31 + [2] 33 33 + [)] 34 34 + [;] 35 35 +L1058 + [numRow] 9 14 + [=] 16 16 + [size] 18 21 + [(] 22 22 + [x] 23 23 + [,] 24 24 + [1] 26 26 + [)] 27 27 + [;] 28 28 +L1059 + [v] 9 9 + [=] 11 11 + [zeros] 13 17 + [(] 18 18 + [numRow] 19 24 + [,] 25 25 + [numCol] 27 32 + [)] 33 33 + [;] 34 34 +L1060 + [for] 9 11 + [j] 13 13 + [=] 15 15 + [1] 17 17 + [:] 18 18 + [numRow] 19 24 +L1061 + [v] 13 13 + [(] 14 14 + [j] 15 15 + [,] 16 16 + [:] 17 17 + [)] 18 18 + [=] 20 20 + [op] 22 23 + [(] 24 24 + [x] 25 25 + [(] 26 26 + [j] 27 27 + [)] 28 28 + [)] 29 29 + [;] 30 30 +L1062 + [end] 9 11 +L1063 + [end] 5 7 +L1065 + [end] 1 3 +EOF diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/specialComments.m b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/specialComments.m new file mode 100644 index 0000000000..14a6146f6f --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/specialComments.m @@ -0,0 +1,8 @@ +% CPD-OFF +function g = vec(op, y) + opy = op(y); + if ( any(size(opy) > 1) ) + g = @loopWrapperArray; + end + % CPD-ON +end \ No newline at end of file diff --git a/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/specialComments.txt b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/specialComments.txt new file mode 100644 index 0000000000..9c695de516 --- /dev/null +++ b/pmd-matlab/src/test/resources/net/sourceforge/pmd/lang/matlab/cpd/testdata/specialComments.txt @@ -0,0 +1,4 @@ + [Image] or [Truncated image[ Bcol Ecol +L8 + [end] 1 3 +EOF