What does '...' mean in MATLAB?
Show older comments
I came across this script and I've seen h = ... what does it mean?
axis(1.2*[-1 1 -1 1])
axis square
box on
hold on
x = 0;
y = 1;
h = ...
n = 2*pi/h;
plot(x,y,’.’)
for k = 1:n
x = x + h*y;
y = y - h*x;
plot(x,y,’.’)
Accepted Answer
More Answers (1)
per isakson
on 13 May 2014
Edited: per isakson
on 13 May 2014
Continuation. Three or more periods [...] at the end of a line continue the current function on the next line. Three or more periods before the end of a line cause the MATLAB® software to ignore the remaining text on the current line and continue the function on the next line. This effectively makes a comment out of anything on the current line that follows the three periods. For an example, see Continue Long Statements on Multiple Lines.
1 Comment
Douglas Alves
on 13 May 2014
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!