-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readin11DASC.m
43 lines (33 loc) · 2.25 KB
/
Readin11DASC.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%% Import data from spreadsheet
% Script for importing data from the following spreadsheet:
%
% Auto-generated by MATLAB on 30-Jan-2023 00:11:48
%% Set source location
sourcefolder = ["/Users/marthanarinemrihavenith/Desktop/Manuscripts/Submitted/2023-10 Breathwork CO2/Source Excels/11DASC.xlsx"];
%% Setup the Import Options
opts = spreadsheetImportOptions("NumVariables", 11);
% Specify sheet and range
opts.Sheet = "Sheet1";
opts.DataRange = "A2:K62";
% Specify column names and types
opts.VariableNames = ["ExpofUnityEoU", "SpiritualExpSE", "BlissfulStateBS", "InsightfullnessI", "DisembodimntD", "ImpairedControlandCognitionICaC", "AnxietyA", "CompleyImageryCI", "ElementaryImageryEI", "AudioVisualSynesthesiaeAVS", "ChangedMeanungofPerceptsCMoP"];
opts.SelectedVariableNames = ["ExpofUnityEoU", "SpiritualExpSE", "BlissfulStateBS", "InsightfullnessI", "DisembodimntD", "ImpairedControlandCognitionICaC", "AnxietyA", "CompleyImageryCI", "ElementaryImageryEI", "AudioVisualSynesthesiaeAVS", "ChangedMeanungofPerceptsCMoP"];
opts.VariableTypes = ["double", "double", "double", "double", "double", "double", "double", "double", "double", "double", "double"];
% Import the data
tbl = readtable(sourcefolder, opts, "UseExcel", false);
%% Convert to output type
DASC_ExperienceOfUnity = tbl.ExpofUnityEoU;
DASC_SpiritualExperience = tbl.SpiritualExpSE;
DASC_BlissfulState = tbl.BlissfulStateBS;
DASC_Insightfulness = tbl.InsightfullnessI;
DASC_Disembodiment = tbl.DisembodimntD;
DASC_ImpairedControlandCognition = tbl.ImpairedControlandCognitionICaC;
DASC_Anxiety = tbl.AnxietyA;
DASC_ComplexImagery = tbl.CompleyImageryCI;
DASC_ElementaryImagery = tbl.ElementaryImageryEI;
DASC_AudioVisualSynesthesia = tbl.AudioVisualSynesthesiaeAVS;
DASC_ChangedMeaningofPercepts = tbl.ChangedMeanungofPerceptsCMoP;
DASCmatrix =[DASC_ExperienceOfUnity, DASC_SpiritualExperience, DASC_BlissfulState,DASC_Insightfulness,DASC_Disembodiment,DASC_ImpairedControlandCognition,DASC_Anxiety, DASC_ComplexImagery, DASC_ElementaryImagery, DASC_AudioVisualSynesthesia, DASC_ChangedMeaningofPercepts];
DASCnames = {'Unity';'Spiritual';'Bliss';'Insight';'Disembodiment';'Impaired Control'; 'Anxiety';'Complex Imagery'; 'Simple Imagery'; 'Synaesthesia'; 'Changed meaning'};
%% Clear temporary variables
clear opts tbl DASC_*