how can divide vector with some function like that

Hello
A small problem , is there any function that can do that for me ... I want divide the vector 1 in two verctos like bellow ...
Thanks
vector 1 vector 2 vector 3 -112 -112 7371000 7371000 -25.6 200600 -25.6 60.8 15000 200600 60.8 15000

回答 (1 件)

Adam
Adam 2015 年 3 月 24 日

0 投票

vector2 = vector1(1:2:end);
vector3 = vector1(2:2:end);

カテゴリ

ヘルプ センター および File ExchangeFinancial Toolbox についてさらに検索

質問済み:

2015 年 3 月 24 日

回答済み:

2015 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by