What means ':' in strcat ?

2 ビュー (過去 30 日間)
Ioannis Vourvachakis
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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by