diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-11-29 22:30:01 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-11-29 22:30:01 +0100 |
commit | a44b9ed57ffebfa5b13b29e94c7da97bed99911b (patch) | |
tree | 1a21706314e684cc35ac74e28d364236da161cf2 /Year_3/MMS/corr_data.m | |
parent | 12eb2dc3d43e0a24e7713e1f470587ba97f3f2a0 (diff) |
mms: add lecture
Diffstat (limited to 'Year_3/MMS/corr_data.m')
-rw-r--r-- | Year_3/MMS/corr_data.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Year_3/MMS/corr_data.m b/Year_3/MMS/corr_data.m new file mode 100644 index 0000000..0309e05 --- /dev/null +++ b/Year_3/MMS/corr_data.m @@ -0,0 +1,7 @@ +function f = corr_data(data1, data2) + f = corrcoef(data1, data2); + disp("Matrix " + f) + plot(data1, data2, "x") + xlabel("Data1") + ylabel("Data2") +end
\ No newline at end of file |