Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

a numeric to string conversion in MATLAB

I need a code which receive a 1xn number array like [2 , 6, 9] and converts it to a 1x1 string data in this way :

2, 6, 9

or this way :

2, 6, 9,

like image 819
Mohamad Pishdad Avatar asked Sep 10 '26 20:09

Mohamad Pishdad


1 Answers

s = sprintf('%d,', a)

where a is your vector.

like image 167
AGS Avatar answered Sep 14 '26 00:09

AGS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!