How do I create a matrix/vector according to a formula?

3 ビュー (過去 30 日間)
Kini
Kini 2016 年 10 月 24 日
回答済み: Andrei Bobrov 2016 年 10 月 24 日
I am just starting to learn MATLAB, and I'm stuck. How do I create a vector ρ according to the formula ρ_j = 2(1−cos(23π/51))sin(23πj/51)?
Thanks

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2016 年 10 月 24 日
jj = (1:10)';
ro = 2*(1-cos(23*pi/51))*sin(23*pi*jj/51);

カテゴリ

Help Center および File ExchangeVector Spaces and Subspaces についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by