What it is means 'Params = zeros(15,3); Params(15,3) = 1;'
7 次查看(过去 30 天)
显示 更早的评论
Hi all...
Can anyone help me..what is the function of
Params = zeros(15,3); Params(15,3) = 1;
thanks
0 个评论
采纳的回答
Walter Roberson
2013-6-7
create a 15 row and 3 column numeric array that is all zero, and assign the array to the variable named Params (which does not happen to be a special variable to MATLAB)
Then, assign 1 to the single array location which is at the 15th row at the 3rd column.
更多回答(1 个)
Jan
2013-6-7
编辑:Jan
2013-6-7
You can find this outby yourself: Simply omit the trailing semicolons to let Matlab show the results, when you type this inot the command line:
Params = zeros(15,3)
Params(15,3) = 1
4 个评论
Walter Roberson
2013-6-13
... and which consists of letters chosen from A to Z or a to z or the 10 digits or the underscore.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!