Hi,
I have a function that concatenates two matrices, size of 100000 X 90 for an outcome of 100000 X 180.
This is a significant bottleneck as the function has to repeat many times.
Pre-allocating the outcome does not seem to make any difference, and using cat() or [] also seems to make no difference.
Does anyone have suggestions on how to speed this up?
Thank you.
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636445-concatenate-large-matrices-a-bottleneck-in-function#comment_1110210
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636445-concatenate-large-matrices-a-bottleneck-in-function#comment_1110210
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636445-concatenate-large-matrices-a-bottleneck-in-function#comment_1110240
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/636445-concatenate-large-matrices-a-bottleneck-in-function#comment_1110240
Sign in to comment.