How can I create an array of 100 elements

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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

SP
2018년 10월 15일

편집:

2018년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by