【 MATLAB 】fliplr 函数介绍(从左到右翻转阵列)
fliplr
Flip array left to right
Syntax
B = fliplr(A)
Description
B = fliplr(
A) returns A
with its columns flipped in the left-right direction (that is, about a vertical axis).
B = fliplr (a) 返回 A, 其列在左右方向 (即关于垂直轴) 反转。
If A
is a row vector, then fliplr(A)
returns a vector of the same length with the order of its elements reversed. If A
is a column vector, then fliplr(A)
simply returns A
. For multidimensional arrays, fliplr
operates on the planes formed by the first and second dimensions.
如果 a 是行向量, 则 fliplr (a) 返回与其元素的顺序反转的相同长度的向量。如果 a 是列向量, 则 fliplr (a) 只是返回 a。对于多维数组, fliplr 在由第一个和第二个维度形成的平面上运行。
Flip Row Vector
Create a row vector.
A = 1:10
A = 1×101 2 3 4 5 6 7 8 9 10
Use fliplr
to flip the elements of A
in the horizontal direction.
B = fliplr(A)
B = 1×1010 9 8 7 6 5 4 3 2 1
The order of the elements in B
is reversed compared to A
.
Flip Cell Array of Characters
Create a 3-by-3 cell array of characters.
A = {'a' 'b' 'c'; 'd' 'e' 'f'; 'g' 'h' 'i'}
A = 3x3 cell array{'a'} {'b'} {'c'}{'d'} {'e'} {'f'}{'g'} {'h'} {'i'}
Change the order of the columns in the horizontal direction by using fliplr
.
B = fliplr(A)
B = 3x3 cell array{'c'} {'b'} {'a'}{'f'} {'e'} {'d'}{'i'} {'h'} {'g'}
The order of the first and third columns of A
is switched in B
, while the second column remains unchanged.
Flip Multidimensional Array
Create a multidimensional array.
A = cat(3, [1 2; 3 4], [5 6; 7 8])
A = A(:,:,1) =1 23 4A(:,:,2) =5 67 8
A
is an array of size 2-by-2-by-2.
Flip the elements on each page of A
in the horizontal direction.
B = fliplr(A)
B = B(:,:,1) =2 14 3B(:,:,2) =6 58 7
结果 B 与 A 的大小相同, 但元素的水平顺序被翻转。操作会单独翻转每个页面上的元素。
【 MATLAB 】fliplr 函数介绍(从左到右翻转阵列)相关推荐
- matlab histeq cy源代码,matlab histeq函数介绍(示例代码)
Histeq Enhance contrast using histogram equalization 该函数通过直方图均衡化来添加对照度 Syntax J = histeq(I,hgram) De ...
- matlab histequ,matlab histeq函数介绍
Histeq Enhance contrast using histogram equalization 该函数通过直方图均衡化来增加对比度 Syntax J = histeq(I,hgram) De ...
- matlab doc函数,matlab常用函数.doc
matlab常用函数.doc MatLab 常用函数 1. 特殊变量与常数 ans 计算结果的变量名 computer 确定运行的计算机 eps 浮点相对精度 Inf 无穷大 I 虚数单位 name ...
- matlab常用函数与常用指令大全
matlab常用函数与常用指令大全 matlab常用函数- - 1.特殊变量与常数 ans 计算结果的变量名 computer 确定运行的计算机 eps 浮点相对精度 Inf 无穷大 I 虚数单位 i ...
- matlab histequ,matlab histeq函数引见
matlab histeq函数介绍 Histeq Enhance contrast using histogram equalization 该函数通过直方图均衡化来增加对比度 Syntax J = ...
- 左值/右值/左值引用/右值引用/move的用法介绍
目录 问题 左值和右值 概念总结: 需要用到左值的运算符: 引用分类 左值引用 右值引用 右值引用到底什么用? std::move()函数介绍 问题 什么是左值和右值? 什么是左/右值引用? 左/右值 ...
- 【 MATLAB 】rem 函数介绍
rem函数和mod函数很相似,二者认真看一个,另一个看一下区别即可. mod函数介绍:[ MATLAB ]mod 函数介绍 rem Remainder after division Syntax r ...
- 【 MATLAB 】filter 函数介绍 之 Filter Data in Sections
[ MATLAB ]filter 函数介绍(一维数字滤波器) 在上篇博文中,里面有一个例子,就是过滤部分中的数据,这个部分中的数据的意思是如果有一个向量需要过滤,我们可以把它分为几段,然后分段过滤. ...
- pythonrandint函数左闭右开_Python容器类型公共方法总结
以下公共方法支持列表,元组,字典,字符串. 内置函数 Python 包含了以下内置函数: 函数 描述 备注 len(item) 计算容器中元素个数 del(item) 删除变量 del 有两种方式 m ...
最新文章
- mysql 查看blob字段大小_MYSQL BLOB 字段大小以及个数的限制测试。
- linux error log 换行,日志提示
- 大厂前实习生被威胁,“关闭开源项目,不然就告你”
- 原创 | 工业场景中的预测性维护
- Kafka manager安装 (支持0.10以后版本consumer)
- Arduino学习笔记35
- 从一个路口转向另一个路口需要多少步
- java进入编程界面_java – 编程到界面是什么意思?
- python - socket模块1
- elasticsearch-head 谷歌插件以及安装和使用说明
- 2019基金行业变革之年
- java调用vba代码合成Excel
- ps写php,ps怎么做立体效果文字
- oracle 播布客 视频,播布客视频-Managing Indexes笔记
- 帝国时代2战役php文件,帝国时代各种类型文件使用说明
- libc_database 库文件下载
- FTP网络主机间文件传输指令
- 网络安全:包过滤防火墙和代理防火墙(应用网关防火墙)
- 20 个 JavaScript 单行代码杀手锏
- conda error unable to create prefix directory check that you have sufficient permissions
热门文章
- ASP.NET页面进行GZIP压缩优化的几款压缩模块的使用简介及应用测试!(附源码)
- python自动登录教程_python实现校园网自动登录的示例讲解
- java 反射深度克隆_C#使用反射(Reflection)实现深复制与浅复制
- jtable如何从表格中定位_Java Swing组件编程之JTable表格用法实例详解
- 果园机器人能干什么_24* 果园机器人优秀教学实录
- 电子与通信工程专硕考分_2021西安电子科技大学电子与通信工程考研经验分享...
- idea java编译报错_intellij-idea,java_idea 编译报错,intellij-idea,java - phpStudy
- 小波包分解 matlab_多尺度一维小波分解
- 现在使用计算机的工作原理是,计算机的工作原理是什么
- java让用户输入3个随机数_3-流程控制、随机数、键盘输入