필터 지우기
필터 지우기

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