필터 지우기
필터 지우기

How to mapping and return target data ?

조회 수: 1 (최근 30일)
Pradya Panyainkaew
Pradya Panyainkaew 2018년 2월 14일
I have 2 matrix:
A=IndivCellof1000customers_Export and
B=DayTpe
I try to map A.Var2 and B.Var1, if they are same value
they should return B.Var2 into A.Var5 in the same row.
It look like vlookup function in excel,
I try to use this code
if A.Var2==B.Var1
A.Var5=B.Var2;
end
but I face a problem with this error "Data inputs must be the same size, or any of them can be a scalar."
How can I fix it ?
thank you in advance

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by