ORing of two Cell arrays.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I know this may be a basic question. I have two Cell arrays. For example, 'A1' as <1000x1 cell> 'A2' as <1000x1 cell> Now, I'd like to OR both of them in to a single Cell.
like C = A1 | A2;
if A1 = 23, A2 = 56, then I want C = 2356;
Can anyone tell how do I do that?
Thanks
1 Kommentar
Geoff
am 16 Mär. 2012
That's not what the logical OR operator does. You mean concatenate. Is the data in each array numeric, or is it strings?
Antworten (3)
Walter Roberson
am 16 Mär. 2012
That does not look like "or" to me. That looks like concatenation of decimal numbers.
What if the numbers stored have fractions? What if some of them are negative?
What if some of the cells have strings? Or NaN? Or contain structures? Or contain further cell arrays?
What if the cell arrays are not the same length?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!