how i can get the first column ?

am trying to get the first column from these data and save it in normal cell

 Accepted Answer

madhan ravi
madhan ravi on 24 Oct 2018
Edited: madhan ravi on 24 Oct 2018
load matlab.mat
for i = 1:7
c.datas(i,:)=mydata{1,i}(1:end,1)
end
datas=c.datas %each row represents first column of each cell

8 Comments

all the file not just one
check edited
am new user in matlab that why am asking here ?
upload your file for testing
load matlab.mat
for i = 1:7
c.datas(i,:)=mydata{1,i}(1:end,1)
end
datas=c.datas %each row represents first column of each cell
problem solved!
thank you so much yeah it works , hero
Anytime buddy :)

Sign in to comment.

More Answers (1)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!