Creating a struct with means and standard deviations
1 次查看(过去 30 天)
显示 更早的评论
I'd like to create a script that loops through multiple subjects and creates a new structure with doubles in it.
First Column of Master Table: I want the SubjectID but I only want it once, I don't want it repeating like it is in the dataset I've attached.
Second Column of Master Table: I want it to lead to a struct with the means of each of the six events. So in the new struct, I want the first column of the first row to be for event 1_a, second column first row event 2_a, etc.
Third Column of Master Table: I want it to lead to a struct with the standard deviation of each of the six events.
Here's an example of what I want it to look like:

The examples of mean and standard deviation doubles are only for one subject. I'd like to loop this for every subject in the data table to create a master struct.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
Find more on Tables 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!