Fetching variable from another variable
조회 수: 31 (최근 30일)
이전 댓글 표시
I have two sets of variables
A=
'yar12' 'hi' 'hello' 'hi' 'hello'
'yar13' hello' 'hello' 'hi' 'hello'
'yar14' 'hi' 'hi' 'hi' 'hello'
'yar15' 'hello' 'hi' 'hi' 'hi'
'yar16' 'hello' 'hi' 'hi' 'hello'
'yar17' 'hi' 'hi' 'hi' 'hi'
and
B=
'yar13' hi' 'hello' 'hello' 'hello'
'yar16' 'hi' 'hello' 'hi' 'hello'
'yar17' 'hello' 'hi' 'hello' 'hi'
The size of both matrix are different by comparing first column,i want to fetch values(2nd to 5th column) from A correspnding to 1st column of B,So i need output as
C=
'yar13' hello' 'hello' 'hi' 'hello'
'yar16' 'hello' 'hi' 'hi' 'hello'
'yar17' 'hi' 'hi' 'hi' 'hi'
PLease provide assistance
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!