/
One-sample t-test
One-sample t-test
Here are the steps to do a one-sample t-test using data in Excel and MATLAB. Excel does not provide this option.
Copy the data from a row or column in Excel
Paste into a variable in MATLAB:
Go to the Command Window
Type
Paste
Type “]”
Hit Enter; you’ve now created a variable “y” in MATLAB
Run the ttest function in MATLAB:
p returns the p-value, and h is 1 (p<0.05) or 0.
See MATLAB’s help on ttest.
, multiple selections available,
Related content
Statistics
Statistics
More like this
Jupyter notebook
Jupyter notebook
More like this
15 Mean SaO2
15 Mean SaO2
More like this
Extract data from plot
Extract data from plot
More like this
Make image from Excel
Make image from Excel
More like this
Metrics - Import from Excel
Metrics - Import from Excel
More like this