Relative Content

Tag Archive for matlab

MATLAB var() function not working after another script is run

A = [4 -7 3; 1 4 -2; 10 7 9]; var(A) Here is my code (taken straight from variance documentation. When I open matlab and run the code, it works fine. BUT, when I run another script (lets call it script_2) and then go back and try to run the code again, I get […]

What am I doing wrong with my MATLAB script calculating PRx (pressure reactivity index)?

I need to calculate PRx (pressure reactivity index) using ICP (intracranial pressure) and mean ABP/MAP (mean arterial blood pressure) data. PRx is known as “pressure reactivity index is calculated as the degree of statistical correlation between the slow wave components of mean arterial pressure (ABP or MAP) and intracranial pressure (ICP)”. I need to do this in order to calculate a different hypothetical reactivity index. I have PRx data- so my idea was to use the given PRx data and compare it to the calculated PRx data to ensure it is correct.