How do I create a matrix/vector according to a formula?
이전 댓글 표시
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
2016년 10월 24일
jj = (1:10)';
ro = 2*(1-cos(23*pi/51))*sin(23*pi*jj/51);
카테고리
도움말 센터 및 File Exchange에서 Vector Spaces and Subspaces에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!