- higher level; easier to read and remember
- fliplr is faster for large vectors (R2018a)
What is the advantage of fliplr, flipud?
조회 수: 11 (최근 30일)
이전 댓글 표시
It's easy to flip along a dim using `end:-1:1`. So why design the builtin fliplr, flipud functions?
댓글 수: 0
답변 (1개)
per isakson
2018년 11월 28일
편집: per isakson
2018년 11월 28일
YMMV
댓글 수: 1
Sean de Wolski
2018년 11월 28일
- Works long any arbitrary dimensional array:
x = rand(3,3,3,3,3);
flipud(x)
Though flip() is now the preferred means.
- Easier for users not fluent in indexing.
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!