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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by