i need to subtract two arrays of different sizes

조회 수: 6 (최근 30일)
Omar Almahallawy
Omar Almahallawy 2019년 5월 7일
답변: KSSV 2019년 5월 7일
A= 10 15 20 25
11 12 17 16
12 11 17 19
B= 5 4 3
C=A-B
i need the first row in A with the first element in B
second row in A with second element in B
AND SO ON...
i need the answer to be like this
C=5 10 15 20
7 8 13 12
9 8 14 16

답변 (2개)

KSSV
KSSV 2019년 5월 7일

madhan ravi
madhan ravi 2019년 5월 7일

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by