Show older comments
k=1;201;
What dose this mean in english?
Accepted Answer
More Answers (1)
Matt Fig
on 1 Mar 2011
It means: set the variable k to equal 1, then set the variable ans to 201, displaying nothing.
You can see this by executing these lines at the command window:
clear all,clc
k=1;201;
whos
k
ans
Now, if you had put this:
k=1:201; % Note the colon.
that would mean: set the variable k to a vector of length 201 with the elements 1 through 201, inclusive.
Categories
Find more on Operators and Elementary Operations 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!