A general question about syntax regarding an Excel file's rows and columns in MATLAB
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
What is the proper syntax to find the mean average of some Excel file columns imported to MATLAB but let it ignore the top row and consider the rest of the columns?
The picture is an example I made, and I called the file "table", I put a box around the specific data I am trying to find the average of.
I know how to start it: tabledata = mean(table(?)), but the question mark is the syntax I am not sure about.
If anybody could give me guidance on this I would greatly appreciate it.
0 Kommentare
Antworten (1)
KSSV
am 29 Jan. 2023
Bearbeitet: Steven Lord
am 29 Jan. 2023
T = readtable(file,'HeaderLines',1) ;
data = table2array(T) ;
m = mean(data)
[SL: fixed typo]
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!