MATLAB中的'(单引号)运算符是什么? [英] What is the ' (single quote) operator in MATLAB?

查看:1965
本文介绍了MATLAB中的'(单引号)运算符是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[code that does not change the question snipped]
M = M';

什么是M = M';?

推荐答案

它是矩阵M的转置.请参见此处.

It is the transpose of the matrix M. See here.

如Edric所述,'是CTRANSPOSE,即伴随矩阵或(复数)共轭转置",当应用于实数矩阵时,其结果相同,但应用于复数矩阵

As Edric specified, ' it's the CTRANSPOSE, i.e. the "adjoint matrix or (complex) conjugate transpose", which gives the same result when applied on real matrices, but on complex matrices

取反A中复杂元素的虚部的符号

negates the sign of the imaginary part of the complex elements in A

如果您只需要

交换每个元素的行和列索引

interchanges the row and column index for each element

然后您将使用.'.

这篇关于MATLAB中的'(单引号)运算符是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆