Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I make an array with a function that defines every element?
1 次查看(过去 30 天)
显示 更早的评论
I would like to make an array theta_i=(theta_1, theta_2, .., theta_n) such that I can define a function theta_j=1/j for all j. So the result would be: theta_i=(1, 1/2, 1/3, ..., 1/n) for some n.
0 个评论
回答(2 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!