How to invert the index of a vector in Simulink?
21 views (last 30 days)
Show older comments
Dani Tormo
on 6 May 2013
Answered: Ajay Pattassery
on 17 Dec 2025 at 5:30
It is a simple question but I've been looking for a solution without luck!
Let's say I have this vector:
v = [1 2 3]
And I want this:
v = [3 2 1]
Is there any block that makes that?
Thanks!
0 Comments
Accepted Answer
Kaustubha Govind
on 6 May 2013
3 Comments
Rafael Cordero
on 17 Jun 2020
This doesn't work for me. I get the input replicated identically at the output - it's not being flipped.
More Answers (1)
Ajay Pattassery
ungefär 7 timmar ago
You can use "Math Function" block and select "Function" as "transpose".
This block is available in base MATLAB.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!