Info
此问题已关闭。 请重新打开它进行编辑或回答。
Please can somebody help on this
1 次查看(过去 30 天)
显示 更早的评论
I came across a function i intended to use, and it started by creating arrays of ones like this
zn = ones(n,1)*10^100.
Please can somebody tell me the meaning and the benefits. thanks
2 个评论
Geoff Hayes
2015-11-7
Tijjani - all that line of code
zn = ones(n,1)*10^100;
is doing is creating an nx1 array of ones and multiplying each element by 10^100. Try doing the above and go through different values of n to see the above work. Perhaps the author of the code is just assigning some max value to all elements in this array.
But, like Stephen said, we cannot tell why the author may want to do this without seeing the code.
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!