How can I concatenate two or more arrays without using num2str?
Show older comments
For example if I have two vertical arrays:
A = [1;2] B = [3;4]
I need this output:
C = [13; 24]
The problem is that my arrays have many rows, thus num2str is too slow. What can I do? Thanks!!!
2 Comments
Adam
on 20 Feb 2017
I can't help but think of the joke of someone asking for directions to somewhere and being told 'Well, if I were you I wouldn't start from here'.
There may be better suggestions based on the wider context of the code than already having A and B defined.
John D'Errico
on 20 Feb 2017
Good response by Adam.
Accepted Answer
More Answers (1)
Adriano
on 21 Feb 2017
0 votes
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!