Filter löschen
Filter löschen

Create vector from elements of other vectors

13 Ansichten (letzte 30 Tage)
Carver Nabb
Carver Nabb am 28 Dez. 2018
Beantwortet: madhan ravi am 29 Dez. 2018
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!

Akzeptierte Antwort

madhan ravi
madhan ravi am 29 Dez. 2018
v = [a(:) b(:) c(:) d(:)] % no loops needed

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by