how i can get the first column ?

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

 Risposta accettata

madhan ravi
madhan ravi il 24 Ott 2018
Modificato: madhan ravi il 24 Ott 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 Commenti

sam aldoss
sam aldoss il 24 Ott 2018
all the file not just one
check edited
sam aldoss
sam aldoss il 24 Ott 2018
am new user in matlab that why am asking here ?
upload your file for testing
madhan ravi
madhan ravi il 24 Ott 2018
Modificato: madhan ravi il 24 Ott 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
problem solved!
sam aldoss
sam aldoss il 24 Ott 2018
thank you so much yeah it works , hero
Anytime buddy :)

Accedi per commentare.

Più risposte (1)

Categorie

Scopri di più su Data Import and Analysis in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by