comma insertion in array
17 views (last 30 days)
Show older comments
I would like to add commas between array values.
for example, I have a array A.
A = [1 2 3];
I would like to get a list of B from A.
B = [1, 2, 3];
How can I do this?
4 Comments
Rik
on 23 Jun 2022
Just to clarify: A is a Matlab variable, and B should be the char vector '[1, 2, 3]'?
Answers (1)
See Also
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!