changeset 28:7ffb686ca060

Spearman for matlab
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 16 Nov 2022 17:29:55 +0000
parents 21da4d6521db
children 669a0b120d34
files bin/spearman.sh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/spearman.sh	Wed Nov 16 17:29:55 2022 +0000
@@ -0,0 +1,8 @@
+#!/usr/bin/bash
+matlab -batch '%' <<EOF
+disp("running")
+m=load("$1");
+[r,p]=corr(m,'Type','Spearman')
+disp(r)
+disp(p)
+EOF