フィルターのクリア

how to take different parts of a vactor

2 ビュー (過去 30 日間)
Daniel Barzegar
Daniel Barzegar 2014 年 8 月 2 日
回答済み: Star Strider 2014 年 8 月 2 日
Hi all, i have a vector v, which size(v) = 100. (1 row, 100 columns). I want to save in a new vector n, the values of v between columns 3 to 40, 45 to 60 and 70 to 100. In other words, i want to save in a new vector parts of the first vector. Any ideas?
thanks in advance.

採用された回答

Star Strider
Star Strider 2014 年 8 月 2 日
My idea:
v = randi(75, 1, 100); % Create Data Vector ‘v’
n = [v(30:50) v(45:60) v(70:100)];
Vector n is (1x68).

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGain Scheduling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by