can i obtain this vector ?

조회 수: 2 (최근 30일)
diadalina
diadalina 2017년 10월 20일
답변: Jan 2017년 10월 20일
can anyone help me to obtain this vector: v=[1 2 5 6 9 10]; i want to know, if we can obtain a relation beteween the vector's elements ?

채택된 답변

Stephen23
Stephen23 2017년 10월 20일
편집: Stephen23 2017년 10월 20일
>> V = 0:5;
>> 2*V + mod(1+V,2)
ans =
1 2 5 6 9 10
See also:

추가 답변 (1개)

Jan
Jan 2017년 10월 20일
V = cumsum([3, 1, 3, 1, 3, 1]) - 2

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by