Vector mirror?

65 次查看(过去 30 天)
Steve
Steve 2011-10-8
Hello Experts,
Given, for example, vector x = [4,-3,5,6].
I want it to be mirrored - x = [6,5,-3,4]
How can I do it in Matlab?
Thanks in advance!

采纳的回答

Andrei Bobrov
Andrei Bobrov 2011-10-8
doc fliplr
x(end:-1:1)
or
fliplr(x)
  1 个评论
Steve
Steve 2011-10-8
Thank you Andrei!
It is a very simple and brilliant solution!
I am inviting you to share knowledge and learn on my blog: shareinfoblog.blogspot.com.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by