char array to pick

조회 수: 2 (최근 30일)
dmfwlansejr
dmfwlansejr 2021년 7월 29일
답변: Akira Agata 2021년 7월 29일
a =
5×3 char array
'25A'
'107'
'28E'
'2B1'
'2EC'
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I want to pick
a(1,2:3)
a(2,2:3)
:
:
a(5,2:3)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I want to convert to following. No 'for', 'while' etc... use
'5A'
'07'
'8E'
'B1'
'EC'

채택된 답변

Akira Agata
Akira Agata 2021년 7월 29일
The solution should be:
b = a(:,2:3);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by