For a two samples t-test in Matlab, you can use the ttest2 function. Here's an example of how you can perform a two-sample t-test:
main.m86 chars5 lines
For a paired t-test, you can use the ttest function in Matlab. Here's an example:
main.m134 chars5 lines
gistlibby LogSnag