I have a cell array 1x7 and every matrix contains 5844x4double and they're all same size. Now i need to extract data from each cell array and each matrixe(5844x4double ) and t
Show older comments
I have a cell array 1x7 and every matrix contains 5844x4double and they're all same size. Now i need to extract data from each cell array and each matrixe(5844x4double ) and the create other matrix containing the data from each cell array and each matrixe(5844x4double ). how can i do that ?
for i=1:length(cellarrray)
for j = 1:5844
dy_strfr1= rfdata_tsstrfr1{1,i}(1:j,4)
elv_strfr1= ellnlt_stallrfr1{1,i}(1:j,1)
lon_strfr1= ellnlt_stallrfr1{1,i}(1:j,2)
lat_strfr1= ellnlt_stallrfr1{1,i}(1:j,3)
end
end
4 Comments
Arif Hoq
on 7 Apr 2022
can you please attach your data ?
David Hill
on 7 Apr 2022
Your question is not clear. Are the matrices in the your cell array? Describe how you want to extract the data from each matrix within your cell array and how you want to store the extracted data.
Habtamu Tsegaye
on 7 Apr 2022
Stephen23
on 7 Apr 2022
"how can I attached the mat data?"
Save all relevant variables in one mat file. Then click the paperclip button in your answer/comment to upload it.
Accepted Answer
More Answers (0)
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!