How to convert a '40*1 double' variable into '40*1 cell' variable?

I have to append a new data column into my existing excel sheet. when I tried the method given on matlab answers, I am facing this problem. I have created a 40*1 double variable because data read from my excel sheet is of 40*1 cell. But concatenation fails with error message 'Error using horzcat Dimensions of matrices being concatenated are not consistent.'

댓글 수: 2

I do not know, what "when I tried the method given on matlab answers" exactly means. Please post the code. Otherwise " concatenation fails" could have a variety of reasons.

댓글을 달려면 로그인하십시오.

 채택된 답변

추가 답변 (1개)

SYED AQEEL HAIDER
SYED AQEEL HAIDER 2018년 1월 29일

0 개 추천

Thanks Star Strider

댓글 수: 1

My pleasure.
If my Answer helped you solve your problem, please Accept it!

댓글을 달려면 로그인하십시오.

카테고리

질문:

2018년 1월 27일

댓글:

2018년 1월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by