I have an array which contains 75 numeric elements. I want to write these numbers as a string separated by a comma. If there were few numbers, I could use 'sprintf' as follows:
A=[1,2]; str=sprintf('%d,%d',A(1:end));
I need an efficient way to do it when there are many entries in A.
Best Answer