I have a vertical matrix like
names = {
11
22
33
44
55
}
and I want to concatenate same string to all like
names = {
11nere
22nere
33nere
44nere
55nere
}
how could I do it in matlab?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This one liner should do it
where I’ve assumed the
namescell array contains numeric entries not strings to start with – otherwise it’s even simpler,