2

My question is so simple~ code is :

name={'ab','ac','ad','ae'};
xlswrite('outex1',name);

what I get :

a b a c a d a e

but I want:

ab ac ad ae

I try many different way, but I still not get what I want. I am using 2013b version of matlab

1 Answer 1

2
name={'ab','ac','ad','ae'};
name = strjoin(name);
xlswrite('outex1',name);

Try this.

xlswrite in MATLAB in Mac has a issue. If you execute what you typed in Windows, it is working fine.

Sign up to request clarification or add additional context in comments.

3 Comments

don't work, I got "a b blankcell a c blankcell a d blankcell a e" just separated by blank cell between two of them.
are you using Matlab in Mac?
OK, I will try, i believe this is OK!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.