MATLAB Answers

0

How to: Raise Cell array

Asked by Hello kity on 29 Jan 2013

I use xlsread to read an excel file

[num txt]= xlsread(xxx);

num and txt arent alligned so I need to raise txt cell array 3 rows to have the same rows/indices with num.

how can i do this?

  0 Comments

Products

No products are associated with this question.

2 Answers

Answer by Azzi Abdelmalek
on 29 Jan 2013
Edited by Azzi Abdelmalek
on 29 Jan 2013
[n,m]=size(num);
txt(end+1:n,:)={''}

  0 Comments


Answer by Hello kity on 29 Jan 2013
newtxt=txt(3:end,1)

found answer :)

i look to your answer too

  1 Comment

Look at edited answer


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!