Increasing numerator and denominator of vectors
조회 수: 3 (최근 30일)
이전 댓글 표시
How do I generate a vector of the form 0, 1/2, 2/3, 3/4, 4/5...9/10?
댓글 수: 0
채택된 답변
madhan ravi
2019년 7월 24일
[0,(1:9) ./ (2:10)]
댓글 수: 2
Stephen23
2019년 7월 24일
Also:
>> (0:9)./(1:10)
ans =
0 0.5 0.66667 0.75 0.8 0.83333 0.85714 0.875 0.88889 0.9
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Code Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!