- So you need a Matlab-Excel automation to fullfille this?
- Which exect Ecel function you want to use for the columns? (i.e. "STDEV.S" = "Estimates standard deviation based on a sample (ignores logical values and text in the sample")).
- So- the outcome for every CSV processed is a vector of the length of # of columns, each value = std of theat column. Correct?
How do i calculate the standard deviation from multiple csv files where i would like the standard deviation for each second?
4 次查看(过去 30 天)
显示 更早的评论
This is what one of my many csv files look like, i would like to get the standard deviation for the temperatures at the different depths (0,2 and 4 mm) for each second. Thanks in advance!

2 个评论
Matlab Pro
2025-1-30
Few unclear issues:
回答(1 个)
Star Strider
2025-1-30
编辑:Star Strider
2025-1-30
Perhaps this —
Time = datetime('now')+seconds(0:2).';
Time.Format = 'H:mm:ss';
Temperature = [20.754 19.219 19.338 20.89; 20.75 19.186 19.323 20.882; 20.784 19.186 19.312 20.857];
T1 = array2table(Temperature);
T1 = addvars(T1, Time, Before=1);
T1.Properties.VariableNames={'Time (Seconds)','(2mm_1)','(0mm)','(4mm)','(2mm_2)'}
T1.StdDev = std(T1{:,2:end},[],2)
.
EDIT — (30 Jan 2024 at 11:18)
.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
