Find the product of every fourth integer between 4 and 44 (i.e., 4×8×12×…×44), storing the result as a
조회 수: 1 (최근 30일)
이전 댓글 표시
So I generated this array to get every fourth integer from 4 to 44,
4:4:44;
but I am confused as to how I would multiply every fourth integer (4x8x12... x44) together so I could store the result as a.
I also have to use only one line of code so I don't know how to find the product and store it as a when I first needed to generate the array,
댓글 수: 1
per isakson
2020년 1월 22일
편집: per isakson
2020년 1월 22일
Is that homework? Search for an appropriate function.
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!