Create vector from elements of other vectors

20 ビュー (過去 30 日間)
Carver Nabb
Carver Nabb 2018 年 12 月 28 日
回答済み: madhan ravi 2018 年 12 月 29 日
I have 4 vectors a, b, c and d. I would like to create a vector v which in the first iteration i want to use the first element of a, b, c and d and in the second I want to create the v by the second element of a, b, c and d , and so on. How can I do this in matlab? If this has already been answered could someone direct me to the link? I wasn't able to find anything. Thanks!

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 29 日
v = [a(:) b(:) c(:) d(:)] % no loops needed

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by