|
Jari Kokkonen schreef:
> Hello all!
>
> I've got a problem I've been working on. I have unspecified amount of cells and I want to make one string from the array.I've made the array (AB) with cells (strings):
>
> ab1 -cell 1
> , -cell 2
> ab2 -cell 3
> , -cell 4
> .
> .
> abn -cell n
>
> I would like to convert this array to string:
> ab1,ab2,...,abn -cell 1
>
> which I will input to mintersect (intersect, which accepts multiple inputs).
>
> Same_coordinates=mintersect(ab1,ab2,...,abn);
>
> I've tried strcat, which will not work because I can't make an input of
>
> AB_string=strcat(AB(1,:));
>
> because strcat does not understand it and I can't just tell strcat which to concenetate because I don't know exact amount of cells.
>
> Hopefully someone can give me a hand.
>
> With best regards
> Jari Kokkonen
>
>
Hi Jari
It is not clear to me what you want to do.
Maybe something similar to?:
cat(2, AB{:})
cat(2, AB{1,:}
sprintf ('%s,',t{2,:})
Hope this helps.
Regards
K.
|