Info
此问题已关闭。 请重新打开它进行编辑或回答。
what does this line mean
1 次查看(过去 30 天)
显示 更早的评论
t= [ones(1,10) 1+ones(1,10) 2+ones(1,15) 3+ones(1,10) ];
1 个评论
回答(1 个)
Benjamin Großmann
2020-2-26
ones(r, c) creates an array of ones with r rows and c columns. That said, ones(1, c) creates a line vector with c elements. Here, four line vectors are created and written side by side in one line vector. Therefore, t is a line vector containing 10 ones, 10 twos, 15 threes and 10 fours.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!