Reading in the values from excel
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I have made a program the reads in values from an excel table and in order to find the average of n number of values in a column. The problem that I am having is I only know how to find the average of all the values in a column, not just the first 10 values in the column. If someone could help I'd appreciate it.
if true
if y == 0.2
column = 3;
x = mean(data_in(:,3));
s = std(data_in(:,3));
end
0 件のコメント
回答 (1 件)
KL
2017 年 12 月 5 日
replace
x = mean(data_in(:,3));
with
x = mean(data_in(1:10,3));
1:10 could be any number indices within its limits
2 件のコメント
soyfrijole
2017 年 12 月 5 日
n should be a vector, like in my example,
n = 1:10
if they are not continuous then,
n = [1 3 8 9 15 ...]
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!