I need help plotting the data I have below in a user-friendly figure so that it is possible to scroll and view such a large-scale data easily.
I have 4 different biological signals A, B, C and D. I would like to plot them in one figure with 4 subplots that has a y-axis scroll bar and auto adjusts x axis limits so as you scroll you only can view ranges that have data. The figure should show a 15-minute window per scroll.
The y axis has the same unit time for all (seconds). A and C have sampling frequency of 1sample/sec. B and D have sampling frequency of 125 samples/sec.
You can find the code I have for this bellow. I just cannot seem to get it to work properly. I would appreciate any help on this.
Thanks in advance!
A,C=83550x1 double, data range= min 50, max 110
B,D=7231045x1 double , data range= min 1000, max 3000
T0=1:(length(A)); % this is in secods
axis 'auto y'
T=1:(length(B)); % I would like it to be in seconds
T1=T./125; % Im trying to adjust for the sampling frequency
%axis 'auto y'
samexaxis('abc','xmt','on','ytac','join','yld',1); % This will allow you to have the same y axis. You also need parseArgs.m before running it
%I have tried using : scrollplot('axis','xy', 'minx',0, 'miny',900) and 'scrollplotdemo' but was not succesfull