![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensor matlab
waiting不是违停
张量分解 欢迎相关方向同行私信交流,ouweiting321
展开
-
matlab字符串中间裁切,选取两个字符中间
例如我想裁切100_10.jpg中的_和.中间的那个10,可以用该语句regexp('100_10.jpg', '(?<=_).*(?=\.)', 'match')其中.在正则表达式里得用.来转义表示。原创 2022-03-27 18:30:55 · 1272 阅读 · 0 评论 -
matlab单位张量identity tensor创建
identity tensor就是除了(:,:,1,1,1,1,…)是单位矩阵(单位矩阵即对角线为1的方阵)外,张量的其它切片都为0.tensor toolbox提供的单位张量并不是该定义下的张量,所以我重新写了个,输入为order阶dimension维度,就获得相对应的单位张量。my_teneye.m文件function[I]=my_teneye(order,dimension) size1 = repelem(dimension,order); I = zeros(size1)原创 2022-03-14 21:21:19 · 2018 阅读 · 0 评论