필터 지우기
필터 지우기

subtract two parameters with diff dimension

조회 수: 1 (최근 30일)
subha
subha 2013년 11월 22일
답변: Azzi Abdelmalek 2013년 11월 22일
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
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
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개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by