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

4 Ansichten (letzte 30 Tage)
Kini
Kini am 24 Okt. 2016
Beantwortet: Andrei Bobrov am 24 Okt. 2016
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

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 24 Okt. 2016
jj = (1:10)';
ro = 2*(1-cos(23*pi/51))*sin(23*pi*jj/51);

Community Treasure Hunt

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

Start Hunting!

Translated by