Clear Filters
Clear Filters

if i consider i=1:1000, what does ':' mean in x(i,:)

5 views (last 30 days)
In a for loop what does : mean in x(i,:) if i consider i=1:1000??
my coding is:
t=20
for i=1:t
error(i,:)= errornew
end
Please help.
Thank you.

Accepted Answer

Torsten
Torsten on 17 Aug 2015
It means that the first 20 rows of the matrix "error" are set to the vector "errornew".
Best wishes
Torsten.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!