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

5 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by