필터 지우기
필터 지우기

What means ':' in strcat ?

조회 수: 1 (최근 30일)
Ioannis Vourvachakis
Ioannis Vourvachakis 2021년 9월 21일
댓글: Ioannis Vourvachakis 2021년 9월 21일
Can someone explain me what happens in the code below?
Thank you
for j=1:length(a)
for k=1:length(b)
c=strcat(a{j},':',b{k});

답변 (1개)

Image Analyst
Image Analyst 2021년 9월 21일
It's taking whatever is in a{j} and adding a colon and then whatever is in b{k}. For example if a{j} is 'A1' and b{k} is 'H15' then c would be 'A1:H15'.
  댓글 수: 1
Ioannis Vourvachakis
Ioannis Vourvachakis 2021년 9월 21일
aaah, thank you. I expected it more complicated :'(

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by