What means ':' in strcat ?

1 次查看(过去 30 天)
Ioannis Vourvachakis
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'.

类别

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