作者Portentera (SupP)
看板MATLAB
标题[讨论] 三维矩阵 范围给值
时间Sun Sep 6 16:37:41 2015
大家好
小弟有个问题想请教各位
A矩阵为100x100x3 B矩阵为40x40x3
想将B矩阵值放入A矩阵(30:70,30:70,:)中
一直显示
Subscripted assignment dimension mismatch.
希望高手可以帮个忙 感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 218.161.96.192
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MATLAB/M.1441528663.A.8BD.html
※ 编辑: Portentera (218.161.96.192), 09/06/2015 16:42:54
1F:→ celestialgod: 因为A(30:70,30:70,:)是41 x 41 x 3 09/06 16:43
2F:→ celestialgod: 当然大小不一样大阿 09/06 16:43
3F:→ Portentera: 感谢celestialgod大大 已解决 耍笨没注意到 09/06 16:44
※ 编辑: Portentera (218.161.96.192), 09/06/2015 16:45:28
4F:→ celestialgod: :) 09/06 16:49