This example shows how to continue a statement to the next line using ellipsis (...
).
s = 1 - 1/2 + 1/3 - 1/4 + 1/5 ... - 1/6 + 1/7 - 1/8 + 1/9;
Build a long character string by concatenating shorter strings together:
mystring = ['Accelerating the pace of ' ... 'engineering and science'];
The start and end quotation marks for a string must appear on the same line. For example, this code returns an error, because each line contains only one quotation mark:
mystring = 'Accelerating the pace of ... engineering and science'
An ellipsis outside a quoted string is equivalent to a space. For example,
x = [1.23... 4.56];
is the same as
x = [1.23 4.56];
Read More:
- Vue More than 1 blank line not allowed
- Unexpected token o in JSON at p
- When websocket transmits JSON text, the parse method reports an error
- How to wrap a long string in MATLAB
- Python EOL error
- How to use matlab to solve equation
- Eslint error reporting and resolution
- Three methods of referencing DLL in Visual Studio 2015
- @Value sets the default value
- Keras Model AttributeError:’str‘ object has no attribute ’call‘
- Golang Warning: Error string should not be capitalized or end with punctuation mark
- Error: the solution of “241” and “343” in program
- Copy Xcode project encountered MAC error code – 8058 (error code – 8058)
- How to solve the problem of “unable to open source file XXXXX. H” in VS development?
- Strange exception 001: invalid or unexpected token
- The Java command could not find or load the main class
- Err: error parsing query: found name, expected identifier, string
- Usage of NVL in SQL
- Common faults and solutions of sylixos IDE (1)