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일

2 개 추천

>> V = 0:5;
>> 2*V + mod(1+V,2)
ans =
1 2 5 6 9 10
See also:

추가 답변 (1개)

Jan
Jan 2017년 10월 20일

0 개 추천

V = cumsum([3, 1, 3, 1, 3, 1]) - 2

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2017년 10월 20일

답변:

Jan
2017년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by