What means ':' in strcat ?

2 Ansichten (letzte 30 Tage)
Ioannis Vourvachakis
Ioannis Vourvachakis am 21 Sep. 2021
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});

Antworten (1)

Image Analyst
Image Analyst am 21 Sep. 2021
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 Kommentar
Ioannis Vourvachakis
Ioannis Vourvachakis am 21 Sep. 2021
aaah, thank you. I expected it more complicated :'(

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by