subtract two parameters with diff dimension
2 次查看(过去 30 天)
显示 更早的评论
i want to subtract two parameters x and y.X has dimension 100* 784, Y has dimension 784*784.Can anybody help
1 个评论
Walter Roberson
2013-11-22
If you have a particular position (J,K) in the output matrix, how would you calculate the value for that location?
OutMatrix(J,K) = ???
采纳的回答
Azzi Abdelmalek
2013-11-22
The size of Y is greater then the size of X, we can subtract the first 100 rows, but what about the remaining rows in Y? Look at this example, maybe this is what you want, if not, give more details
Y=rand(784);
X=rand(100,784);
Z=[X;zeros(784-100,784)]; % to make Y and X the same size
out=Y-Z;
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!