How can I create an array of 100 elements

16 次查看(过去 30 天)
How can I create an array of 100 elements with n-th element valued as 1 / √(2n^2)

采纳的回答

madhan ravi
madhan ravi 2018-10-15
编辑:madhan ravi 2018-10-15
n=1:100
sequence = 1 ./ sqrt(2*n.^2)
Or
syms n
s=1:99
sequence = 1 ./ sqrt(2*n.^2)
array =[ s sequence ]
array = subs(array,n,3)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by