the first non singleton dimension of a matrix的意思

本文解释了Matlab中非单一维度的概念,并详细说明了如何在多维度矩阵中利用这一特性,特别关注了非单一维度在函数应用中的角色。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文:http://answers.yahoo.com/question/index?qid=20080610030617AAymrnC

Matlab works on first non-singleton dimension of multidimensional matrices in some builtin functions. But how is it defined?

matlab的一些函数经常对于多维度矩阵中第一个non-singletion维度起作用,可是non-singleton到底是什么含义呢?


A singleton dimension is one with size = 1. For example,
Singleton维度就是该维度下的size值为1,比如

if Z is a 1-by-2-by-3-by-4 four-dimensional array, then the second dimension is the first non-singleton dimension.
Z是一个1*2*3*4的四位矩阵,则它的第二维为第一个non-singleton维度

In Matlab, arrays have at least two dimensions, so to represent a vector you use a N-by-1 or 1-by-N dimensional array. Because it is inconvenient to keep transposing these things to get the non-singleton dimension in the right place, a lot of library functions will figure it out automatically - using the first non-singleton dimension.

matlab中,数组至少有两个维度。所以表达一个矢量时,可使用N*1或1*N维度的数组。 后面的好绕口,查找些资料在翻译
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值