필터 지우기
필터 지우기

Increasing numerator and denominator of vectors

조회 수: 3 (최근 30일)
Seba.V
Seba.V 2019년 7월 24일
댓글: Stephen23 2019년 7월 24일
How do I generate a vector of the form 0, 1/2, 2/3, 3/4, 4/5...9/10?

채택된 답변

madhan ravi
madhan ravi 2019년 7월 24일
[0,(1:9) ./ (2:10)]
  댓글 수: 2
Stephen23
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 CenterFile Exchange에서 MATLAB Code Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by