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 ExchangeResizing and Reshaping 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