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일

4 개 추천

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개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2011년 10월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by