€•mŒdocutils.nodes”Œdocument”“”)}”’”}”(Œ attributes”}”(Œbackrefs”]”Œids”]”Œclasses”]”Œsource”Œ>D:\Mariano\misc\ecg-kit\help\sphinx\source\plot_ecg_mosaic.rst”Œnames”]”Œdupnames”]”uŒids”}”(Œsee-also”hŒsection”“”)}”’”}”(h}”(h]”Œsee also”ah]”h ]”hah ]”h]”uŒtagname”hŒsource”hhhŒ rawsource”Œ”Œline”K°Œchildren”]”(hŒtitle”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h*h$hhhh%ŒSee Also”h'K°h(]”hŒText”“”ŒSee Also”…”}”’”}”(h%h5Œparent”h-ubah>hubhŒ block_quote”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h?h$hhhh%h&h'Nh(]”hŒ paragraph”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ&:doc:`Plot ECG strip `”h'K²h(]”Œsphinx.addnodes”Œ pending_xref”“”)}”’”}”(h}”(h]”Œrefwarn”ˆh ]”h ]”Œreftype”Œdoc”Œrefdoc”Œplot_ecg_mosaic”h]”Œ refexplicit”ˆh]”Œ refdomain”h&Œ reftarget”Œplot_ecg_strip”uh#hYh$hh%hVh'K²h(]”hŒliteral”“”)}”’”}”(h}”(h]”h]”h ]”h ]”(Œxref”hdeh]”uh#hnh%hVh(]”h8ŒPlot ECG strip”…”}”’”}”(h%h&h>hqubah>h\ubah>hNubah>hBubah>hubeh>h)}”’”}”(h}”(h]”Œplotting signal mosaics”ah]”h ]”Œplotting-signal-mosaics”ah ]”h]”uh#hh$hhhh%h&h'Kh(]”(h+)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h*h$hhhh%ŒPlotting signal mosaics”h'Kh(]”h8ŒPlotting signal mosaics”…”}”’”}”(h%h•h>h�ubah>h�ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%XLow level function to produce mosaic charts of signals and annotations. This function plots several subplots in the same figure in order to do a mosaic with the different leads available in ECG. Annotations can be provided individually or for all the mosaics.”h'Kh(]”h8XLow level function to produce mosaic charts of signals and annotations. This function plots several subplots in the same figure in order to do a mosaic with the different leads available in ECG. Annotations can be provided individually or for all the mosaics.”…”}”’”}”(h%h¥h>h�ubah>h�ubh)}”’”}”(h}”(h]”Œ prototype”ah]”h ]”Œ prototype”ah ]”h]”uh#hh$hhhh%h&h'K h(]”(h+)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h*h$hhhh%Œ Prototype”h'K h(]”h8Œ Prototype”…”}”’”}”(h%hÁh>h¹ubah>h­ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%Œ(The function prototype is the following.”h'K h(]”h8Œ(The function prototype is the following.”…”}”’”}”(h%hÑh>hÉubah>h­ubhŒ literal_block”“”)}”’”}”(h}”(h]”h ]”h ]”Œcode”ah]”h]”Œ xml:space”Œpreserve”uh#hØh$hhhh%ŒK[ ECG_hdl axes_hdl fig_hdl all_yranges ] = plot_ecg_mosaic( ECG, varargin )”h'Kh(]”h8ŒK[ ECG_hdl axes_hdl fig_hdl all_yranges ] = plot_ecg_mosaic( ECG, varargin )”…”}”’”}”(h%hæh>hÛubah>h­ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%ŒOThis function accepts as arguments the arg_name/arg_val method described below.”h'Kh(]”h8ŒOThis function accepts as arguments the arg_name/arg_val method described below.”…”}”’”}”(h%höh>hîubah>h­ubeh>h�ubh)}”’”}”(h}”(h]”Œ arguments”ah]”h ]”Œ arguments”ah ]”h]”uh#hh$hhhh%h&h'Kh(]”(h+)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h*h$hhhh%Œ Arguments”h'Kh(]”h8Œ Arguments”…”}”’”}”(h%jh>j ubah>hþubhŒ bullet_list”“”)}”’”}”(h}”(h]”h ]”h ]”h]”Œbullet”Œ-”h]”uh#jh$hhhh%h&h'Kh(]”(hŒ list_item”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%XECG: [numeric or cell] REQUIRED - [numeric]: signal matrix of dimension ``[sig_length sig_size repetitions_size]`` where: - sig_length: time length in samples - sig_size: number of ECG leads or number of signals. - repetitions_size: number of repetitions of the same signals. Typically used when time-synchronized events, like heartbeats. - [cell]: cell array of length repetitions_size, where each cell is (probably a time alligned event) a signal of dimension ``[sig_length sig_size]`` ”h'Nh(]”(hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒECG: [numeric or cell] REQUIRED”h'Kh(]”h8ŒECG: [numeric or cell] REQUIRED”…”}”’”}”(h%j=h>j5ubah>j*ubh@)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h?h%h&h(]”j)}”’”}”(h}”(h]”h ]”h ]”h]”j#j$h]”uh#jh%h&h(]”(j()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h%XL[numeric]: signal matrix of dimension ``[sig_length sig_size repetitions_size]`` where: - sig_length: time length in samples - sig_size: number of ECG leads or number of signals. - repetitions_size: number of repetitions of the same signals. Typically used when time-synchronized events, like heartbeats. ”h(]”(hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒW[numeric]: signal matrix of dimension ``[sig_length sig_size repetitions_size]`` where:”h'Kh(]”(h8Œ&[numeric]: signal matrix of dimension ”…”}”’”}”(h%Œ&[numeric]: signal matrix of dimension ”h>jdubho)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hnh%Œ*``[sig_length sig_size repetitions_size]``”h(]”h8Œ&[sig_length sig_size repetitions_size]”…”}”’”}”(h%h&h>juubah>jdubh8Œ where:”…”}”’”}”(h%Œ where:”h>jdubeh>jYubh@)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h?h%h&h(]”j)}”’”}”(h}”(h]”h ]”h ]”h]”j#j$h]”uh#jh%h&h(]”(j()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h%Œ#sig_length: time length in samples ”h(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ"sig_length: time length in samples”h'Kh(]”h8Œ"sig_length: time length in samples”…”}”’”}”(h%j²h>jªubah>jŸubah>j•ubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h%Œ4sig_size: number of ECG leads or number of signals. ”h(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ3sig_size: number of ECG leads or number of signals.”h'Kh(]”h8Œ3sig_size: number of ECG leads or number of signals.”…”}”’”}”(h%jÍh>jÅubah>jºubah>j•ubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h%Œ|repetitions_size: number of repetitions of the same signals. Typically used when time-synchronized events, like heartbeats. ”h(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ{repetitions_size: number of repetitions of the same signals. Typically used when time-synchronized events, like heartbeats.”h'K!h(]”h8Œ{repetitions_size: number of repetitions of the same signals. Typically used when time-synchronized events, like heartbeats.”…”}”’”}”(h%jèh>jàubah>jÕubah>j•ubeh>j‹ubah>jYubeh>jOubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h%Œ“[cell]: cell array of length repetitions_size, where each cell is (probably a time alligned event) a signal of dimension ``[sig_length sig_size]`` ”h(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ’[cell]: cell array of length repetitions_size, where each cell is (probably a time alligned event) a signal of dimension ``[sig_length sig_size]``”h'K%h(]”(h8Œy[cell]: cell array of length repetitions_size, where each cell is (probably a time alligned event) a signal of dimension ”…”}”’”}”(h%Œy[cell]: cell array of length repetitions_size, where each cell is (probably a time alligned event) a signal of dimension ”h>jûubho)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hnh%Œ``[sig_length sig_size]``”h(]”h8Œ[sig_length sig_size]”…”}”’”}”(h%h&h>j ubah>jûubeh>jðubah>jOubeh>jEubah>j*ubeh>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%Œ„QRS_locations: [numeric] OPTIONAL. Synchronization sample. In ECG context, this values are the QRS fiducial point. ``[] (default)`` ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒƒQRS_locations: [numeric] OPTIONAL. Synchronization sample. In ECG context, this values are the QRS fiducial point. ``[] (default)``”h'K)h(]”(h8ŒsQRS_locations: [numeric] OPTIONAL. Synchronization sample. In ECG context, this values are the QRS fiducial point. ”…”}”’”}”(h%ŒsQRS_locations: [numeric] OPTIONAL. Synchronization sample. In ECG context, this values are the QRS fiducial point. ”h>j'ubho)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hnh%Œ``[] (default)``”h(]”h8Œ [] (default)”…”}”’”}”(h%h&h>j8ubah>j'ubeh>jubah>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%ŒxWinSize: [numeric] OPTIONAL. Width of the window around each fiducial point provided in QRS_locations. ``[] (default)`` ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒwWinSize: [numeric] OPTIONAL. Width of the window around each fiducial point provided in QRS_locations. ``[] (default)``”h'K,h(]”(h8ŒgWinSize: [numeric] OPTIONAL. Width of the window around each fiducial point provided in QRS_locations. ”…”}”’”}”(h%ŒgWinSize: [numeric] OPTIONAL. Width of the window around each fiducial point provided in QRS_locations. ”h>jSubho)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hnh%Œ``[] (default)``”h(]”h8Œ [] (default)”…”}”’”}”(h%h&h>jdubah>jSubeh>jHubah>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%ŒŽECG_header: [struct] OPTIONAL. Description of the ECG typically available in the ECG_header as described :ref:`here`. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ�ECG_header: [struct] OPTIONAL. Description of the ECG typically available in the ECG_header as described :ref:`here`.”h'K/h(]”(h8ŒiECG_header: [struct] OPTIONAL. Description of the ECG typically available in the ECG_header as described ”…”}”’”}”(h%ŒiECG_header: [struct] OPTIONAL. Description of the ECG typically available in the ECG_header as described ”h>jubhZ)}”’”}”(h}”(h]”h`ˆh ]”h ]”Œreftype”Œref”hehfh]”Œ refexplicit”ˆh]”Œ refdomain”Œstd”hkŒecg_header_description”uh#hYh$hh%Œ#:ref:`here`”h'K/h(]”hŒinline”“”)}”’”}”(h}”(h]”h]”h ]”h ]”(hxjœŒstd-ref”eh]”uh#j h%jžh(]”h8Œhere”…”}”’”}”(h%h&h>j£ubah>j�ubah>jubh8Œ.”…”}”’”}”(h%Œ.”h>jubeh>jtubah>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%XRMaxECGrange: [numeric or string] OPTIONAL. Force a vertial range in order to ease visual comparison of signals in the mosaic. [string] 'max': force the maximum range to be the range for all mosaics. 'min', 'mean', 'median': are also available options. 'none': Each mosaic with a different range. (Default). ”h'Nh(]”(hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ}MaxECGrange: [numeric or string] OPTIONAL. Force a vertial range in order to ease visual comparison of signals in the mosaic.”h'K2h(]”h8Œ}MaxECGrange: [numeric or string] OPTIONAL. Force a vertial range in order to ease visual comparison of signals in the mosaic.”…”}”’”}”(h%jÌh>jÄubah>j¹ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ[string]”h'K5h(]”h8Œ[string]”…”}”’”}”(h%jÜh>jÔubah>j¹ubh@)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h?h%h&h(]”(h@)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h?h%h&h(]”hŒdefinition_list”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j÷h%h&h(]”hŒdefinition_list_item”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#jh$hh%Œ@'max': force the maximum range to be the range for all mosaics. ”h'K8h(]”(hŒterm”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#jh$hh%Œ.'max': force the maximum range to be the range”h'K8h(]”h8Œ.'max': force the maximum range to be the range”…”}”’”}”(h%jh>jubah>jubhŒ definition”“”)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j"h%h&h(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œfor all mosaics.”h'K8h(]”h8Œfor all mosaics.”…”}”’”}”(h%j7h>j/ubah>j%ubah>jubeh>júubah>jîubah>jäubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ4'min', 'mean', 'median': are also available options.”h'K:h(]”h8Œ4'min', 'mean', 'median': are also available options.”…”}”’”}”(h%jGh>j?ubah>jäubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ6'none': Each mosaic with a different range. (Default).”h'KjOubah>jäubeh>j¹ubeh>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%ŒêRowsCols: [numeric] OPTIONAL. Number of rows and columns of the mosaic. If ommited or if ``rows * cols ~= ECG_header.nsig``, these values are automatically adapted to the best fit mosaic in relation to the aspect ratio of the screen. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒéRowsCols: [numeric] OPTIONAL. Number of rows and columns of the mosaic. If ommited or if ``rows * cols ~= ECG_header.nsig``, these values are automatically adapted to the best fit mosaic in relation to the aspect ratio of the screen.”h'K>h(]”(h8ŒYRowsCols: [numeric] OPTIONAL. Number of rows and columns of the mosaic. If ommited or if ”…”}”’”}”(h%ŒYRowsCols: [numeric] OPTIONAL. Number of rows and columns of the mosaic. If ommited or if ”h>jjubho)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hnh%Œ"``rows * cols ~= ECG_header.nsig``”h(]”h8Œrows * cols ~= ECG_header.nsig”…”}”’”}”(h%h&h>j{ubah>jjubh8Œn, these values are automatically adapted to the best fit mosaic in relation to the aspect ratio of the screen.”…”}”’”}”(h%Œn, these values are automatically adapted to the best fit mosaic in relation to the aspect ratio of the screen.”h>jjubeh>j_ubah>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%ŒdFigureHdl: [figure handle] OPTIONAL. Choose the figure to be produced the mosaic. ``gcf (default)`` ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒcFigureHdl: [figure handle] OPTIONAL. Choose the figure to be produced the mosaic. ``gcf (default)``”h'KBh(]”(h8ŒRFigureHdl: [figure handle] OPTIONAL. Choose the figure to be produced the mosaic. ”…”}”’”}”(h%ŒRFigureHdl: [figure handle] OPTIONAL. Choose the figure to be produced the mosaic. ”h>jœubho)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hnh%Œ``gcf (default)``”h(]”h8Œ gcf (default)”…”}”’”}”(h%h&h>j­ubah>jœubeh>j‘ubah>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%ŒaECG_delineation: [struct] OPTIONAL. Annotation struct described :ref:`here`. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ`ECG_delineation: [struct] OPTIONAL. Annotation struct described :ref:`here`.”h'KDh(]”(h8Œ@ECG_delineation: [struct] OPTIONAL. Annotation struct described ”…”}”’”}”(h%Œ@ECG_delineation: [struct] OPTIONAL. Annotation struct described ”h>jÈubhZ)}”’”}”(h}”(h]”h`ˆh ]”h ]”Œreftype”Œref”hehfh]”Œ refexplicit”ˆh]”Œ refdomain”Œstd”hkŒdelineation_struct”uh#hYh$hh%Œ:ref:`here`”h'KDh(]”j¡)}”’”}”(h}”(h]”h]”h ]”h ]”(hxjåŒstd-ref”eh]”uh#j h%jçh(]”h8Œhere”…”}”’”}”(h%h&h>jêubah>jÙubah>jÈubh8Œ.”…”}”’”}”(h%j·h>jÈubeh>j½ubah>jubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%ŒÂECG_annotations: [cell] OPTIONAL. Annotations to be included in the mosaic. The function accepts 2 type of annotations: points and lines. An example below shows how to define both annotations. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%ŒÀECG_annotations: [cell] OPTIONAL. Annotations to be included in the mosaic. The function accepts 2 type of annotations: points and lines. An example below shows how to define both annotations.”h'KFh(]”h8ŒÀECG_annotations: [cell] OPTIONAL. Annotations to be included in the mosaic. The function accepts 2 type of annotations: points and lines. An example below shows how to define both annotations.”…”}”’”}”(h%jh>j ubah>jÿubah>jubeh>hþubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%ŒOutput:”h'KJh(]”h8ŒOutput:”…”}”’”}”(h%j"h>jubah>hþubj)}”’”}”(h}”(h]”h ]”h ]”h]”j#j$h]”uh#jh$hhhh%h&h'KMh(]”(j()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%Œ(ECG_hdl: handle to the plotted signals. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ'ECG_hdl: handle to the plotted signals.”h'KMh(]”h8Œ'ECG_hdl: handle to the plotted signals.”…”}”’”}”(h%jGh>j?ubah>j4ubah>j*ubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%Œaxes_hdl: handle to the axes. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œaxes_hdl: handle to the axes.”h'KOh(]”h8Œaxes_hdl: handle to the axes.”…”}”’”}”(h%jbh>jZubah>jOubah>j*ubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%Œfig_hdl: handle to fig. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œfig_hdl: handle to fig.”h'KQh(]”h8Œfig_hdl: handle to fig.”…”}”’”}”(h%j}h>juubah>jjubah>j*ubj()}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#j'h$hhhh%Œ6all_yranges: vertical ranges of the plotted signals. ”h'Nh(]”hL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hh%Œ4all_yranges: vertical ranges of the plotted signals.”h'KSh(]”h8Œ4all_yranges: vertical ranges of the plotted signals.”…”}”’”}”(h%j˜h>j�ubah>j…ubah>j*ubeh>hþubeh>h�ubh)}”’”}”(h}”(h]”Œexample”ah]”h ]”Œexample”ah ]”h]”uh#hh$hhhh%h&h'KWh(]”(h+)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#h*h$hhhh%ŒExample”h'KWh(]”h8ŒExample”…”}”’”}”(h%j´h>j¬ubah>j ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%Œj¼ubah>j ubhÙ)}”’”}”(h}”(h]”h ]”h ]”háah]”h]”hähåuh#hØh$hhhh%X£win_size = 100; sig_samp = 10000; sig_size = 12; event_size = 50; x = 0.1*randn(sig_samp,sig_size); event_locations = randsample(win_size:sig_samp-win_size, event_size); x(event_locations-1,:) = x(event_locations-1,:) + 1; x(event_locations+1,:) = x(event_locations+1,:) - 1; x_packed = pack_signal(x, event_locations, win_size); figure(1) % estimation of the signal averaged event plot_ecg_mosaic( mean(x_packed,3) );”h'Kkh(]”h8X£win_size = 100; sig_samp = 10000; sig_size = 12; event_size = 50; x = 0.1*randn(sig_samp,sig_size); event_locations = randsample(win_size:sig_samp-win_size, event_size); x(event_locations-1,:) = x(event_locations-1,:) + 1; x(event_locations+1,:) = x(event_locations+1,:) - 1; x_packed = pack_signal(x, event_locations, win_size); figure(1) % estimation of the signal averaged event plot_ecg_mosaic( mean(x_packed,3) );”…”}”’”}”(h%X£win_size = 100; sig_samp = 10000; sig_size = 12; event_size = 50; x = 0.1*randn(sig_samp,sig_size); event_locations = randsample(win_size:sig_samp-win_size, event_size); x(event_locations-1,:) = x(event_locations-1,:) + 1; x(event_locations+1,:) = x(event_locations+1,:) - 1; x_packed = pack_signal(x, event_locations, win_size); figure(1) % estimation of the signal averaged event plot_ecg_mosaic( mean(x_packed,3) );”h>jÌubah>j ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%ŒHere ,,,”h'Klh(]”h8ŒHere ,,,”…”}”’”}”(h%jåh>jÝubah>j ubhŒimage”“”)}”’”}”(h}”(h]”h ]”h ]”Œuri”Œ mosaic1.png”Œ candidates”}”Œ*”jösh]”h]”uh#jìh$hhhh%Œ.. image:: mosaic1.png ”h'Koh(]”h>j ubhÙ)}”’”}”(h}”(h]”h ]”h ]”háah]”h]”hähåuh#hØh$hhhh%Œ«figure(2) % visualization of all events. In this case previous pack_signal call is % not needed. plot_ecg_mosaic(x, 'QRS_locations', event_locations, 'WinSize', win_size);”h'Kvh(]”h8Œ«figure(2) % visualization of all events. In this case previous pack_signal call is % not needed. plot_ecg_mosaic(x, 'QRS_locations', event_locations, 'WinSize', win_size);”…”}”’”}”(h%Œ«figure(2) % visualization of all events. In this case previous pack_signal call is % not needed. plot_ecg_mosaic(x, 'QRS_locations', event_locations, 'WinSize', win_size);”h>jÿubah>j ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%ŒHere ,,,”h'Kwh(]”h8ŒHere ,,,”…”}”’”}”(h%jh>jubah>j ubjí)}”’”}”(h}”(h]”h ]”h ]”Œuri”Œ mosaic2.png”j÷}”jùj'sh]”h]”uh#jìh$hhhh%Œ.. image:: mosaic2.png ”h'Kzh(]”h>j ubhÙ)}”’”}”(h}”(h]”h ]”h ]”háah]”h]”hähåuh#hØh$hhhh%X�figure(3) % introducing several kind of marks to the plot h_line = cell(sig_size,7); h2_line = cell(sig_size,7); v_line = cell(sig_size,7); v2_line = cell(sig_size,7); point = cell(sig_size,7); a_line = cell(sig_size,7); h_line(:,1) = {'line'}; h_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'horizontal line text' '--' 1.5 'r' 'r' } ]'}; h_line(1:sig_size, [6 7]) = num2cell( repmat(-0.5,sig_size,2) ); h2_line(:,1) = {'line'}; h2_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'other h-line' '--' 1.5 'm' 'm' } ]'}; h2_line(1:sig_size, 4:7) = num2cell( [ repmat(60,sig_size,1) repmat(70,sig_size,1) repmat(0.5,sig_size,2) ] ); v_line(:,1) = {'line'}; v_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'vertical line text' '--' 1.5 'g' 'g' } ]'}; v_line(1:sig_size, [4 5]) = num2cell( repmat(20,sig_size,2) ); v2_line(:,1) = {'line'}; v2_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'other v-line' '--' 1.5 'b' 'b' } ]'}; v2_line(1:sig_size, 4:7) = num2cell( [ repmat(80,sig_size,2) repmat(-0.8,sig_size,1) repmat(-0.3,sig_size,1) ] ); point(:,1) = {'point'}; point(:,2) = { [ { 'String' 'Color' 'TextColor' }; ... { 'one-point' [0.2 0.3 0.4] [0.2 0.3 0.4] } ]'}; point(1:sig_size,4) = num2cell( repmat(50,sig_size,1) ); a_line(:,1) = {'line'}; a_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'line text' '--' 1.5 'k' 'k' } ]'}; a_line(1:sig_size,4:7) = num2cell( [ repmat(30,sig_size,1) repmat(40,sig_size,1) repmat(0.5,sig_size,1) repmat(-0.5,sig_size,1) ] ); aux_anns = cat(3,h_line,v_line,h2_line,v2_line,point,a_line); plot_ecg_mosaic(mean(x_packed,3), 'ECG_annotations', aux_anns );”h'K©h(]”h8X�figure(3) % introducing several kind of marks to the plot h_line = cell(sig_size,7); h2_line = cell(sig_size,7); v_line = cell(sig_size,7); v2_line = cell(sig_size,7); point = cell(sig_size,7); a_line = cell(sig_size,7); h_line(:,1) = {'line'}; h_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'horizontal line text' '--' 1.5 'r' 'r' } ]'}; h_line(1:sig_size, [6 7]) = num2cell( repmat(-0.5,sig_size,2) ); h2_line(:,1) = {'line'}; h2_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'other h-line' '--' 1.5 'm' 'm' } ]'}; h2_line(1:sig_size, 4:7) = num2cell( [ repmat(60,sig_size,1) repmat(70,sig_size,1) repmat(0.5,sig_size,2) ] ); v_line(:,1) = {'line'}; v_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'vertical line text' '--' 1.5 'g' 'g' } ]'}; v_line(1:sig_size, [4 5]) = num2cell( repmat(20,sig_size,2) ); v2_line(:,1) = {'line'}; v2_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'other v-line' '--' 1.5 'b' 'b' } ]'}; v2_line(1:sig_size, 4:7) = num2cell( [ repmat(80,sig_size,2) repmat(-0.8,sig_size,1) repmat(-0.3,sig_size,1) ] ); point(:,1) = {'point'}; point(:,2) = { [ { 'String' 'Color' 'TextColor' }; ... { 'one-point' [0.2 0.3 0.4] [0.2 0.3 0.4] } ]'}; point(1:sig_size,4) = num2cell( repmat(50,sig_size,1) ); a_line(:,1) = {'line'}; a_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'line text' '--' 1.5 'k' 'k' } ]'}; a_line(1:sig_size,4:7) = num2cell( [ repmat(30,sig_size,1) repmat(40,sig_size,1) repmat(0.5,sig_size,1) repmat(-0.5,sig_size,1) ] ); aux_anns = cat(3,h_line,v_line,h2_line,v2_line,point,a_line); plot_ecg_mosaic(mean(x_packed,3), 'ECG_annotations', aux_anns );”…”}”’”}”(h%X�figure(3) % introducing several kind of marks to the plot h_line = cell(sig_size,7); h2_line = cell(sig_size,7); v_line = cell(sig_size,7); v2_line = cell(sig_size,7); point = cell(sig_size,7); a_line = cell(sig_size,7); h_line(:,1) = {'line'}; h_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'horizontal line text' '--' 1.5 'r' 'r' } ]'}; h_line(1:sig_size, [6 7]) = num2cell( repmat(-0.5,sig_size,2) ); h2_line(:,1) = {'line'}; h2_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'other h-line' '--' 1.5 'm' 'm' } ]'}; h2_line(1:sig_size, 4:7) = num2cell( [ repmat(60,sig_size,1) repmat(70,sig_size,1) repmat(0.5,sig_size,2) ] ); v_line(:,1) = {'line'}; v_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'vertical line text' '--' 1.5 'g' 'g' } ]'}; v_line(1:sig_size, [4 5]) = num2cell( repmat(20,sig_size,2) ); v2_line(:,1) = {'line'}; v2_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'other v-line' '--' 1.5 'b' 'b' } ]'}; v2_line(1:sig_size, 4:7) = num2cell( [ repmat(80,sig_size,2) repmat(-0.8,sig_size,1) repmat(-0.3,sig_size,1) ] ); point(:,1) = {'point'}; point(:,2) = { [ { 'String' 'Color' 'TextColor' }; ... { 'one-point' [0.2 0.3 0.4] [0.2 0.3 0.4] } ]'}; point(1:sig_size,4) = num2cell( repmat(50,sig_size,1) ); a_line(:,1) = {'line'}; a_line(:,2) = { [ { 'String' 'LineStyle' 'LineWidth' 'Color' 'TextColor' }; ... { 'line text' '--' 1.5 'k' 'k' } ]'}; a_line(1:sig_size,4:7) = num2cell( [ repmat(30,sig_size,1) repmat(40,sig_size,1) repmat(0.5,sig_size,1) repmat(-0.5,sig_size,1) ] ); aux_anns = cat(3,h_line,v_line,h2_line,v2_line,point,a_line); plot_ecg_mosaic(mean(x_packed,3), 'ECG_annotations', aux_anns );”h>j.ubah>j ubhL)}”’”}”(h}”(h]”h]”h ]”h ]”h]”uh#hKh$hhhh%ŒHere ,,,”h'Kªh(]”h8ŒHere ,,,”…”}”’”}”(h%jGh>j?ubah>j ubjí)}”’”}”(h}”(h]”h ]”h ]”Œuri”Œ mosaic3.png”j÷}”jùjVsh]”h]”uh#jìh$hhhh%Œ.. image:: mosaic3.png ”h'K®h(]”h>j ubeh>h�ubheh>hububhˆh�j§j h´h­jhþuŒautofootnote_refs”]”Œcurrent_source”NŒrefnames”}”Œid_start”KŒtransform_messages”]”Œsettings”Œdocutils.frontend”ŒValues”“”)}”’”}”(Œ pep_base_url”Œ https://www.python.org/dev/peps/”Œembed_stylesheet”‰Œexpose_internals”NŒinput_encoding_error_handler”Œstrict”Œdebug”NŒstrip_comments”NŒ_disable_config”NŒpep_references”NŒ source_link”NŒfootnote_backlinks”KŒrfc_references”NŒsyntax_highlight”Œlong”Œstrict_visitor”NŒfile_insertion_enabled”ˆŒ _config_files”]”Œinput_encoding”Œ utf-8-sig”Œ language_code”Œen”Œdump_internals”NŒ_source”hŒwarning_stream”NŒoutput_encoding_error_handler”jpŒ strip_classes”NŒ datestamp”NŒ raw_enabled”KŒ generator”NŒrecord_dependencies”NŒ sectnum_xform”KŒgettext_compact”ˆŒcloak_email_addresses”ˆŒ smart_quotes”‰Œ rfc_base_url”Œhttps://tools.ietf.org/html/”Œ docinfo_xform”KŒerror_encoding_error_handler”Œbackslashreplace”Œpep_file_url_template”Œpep-%04d”Œerror_encoding”Œcp850”Œconfig”NŒ halt_level”KŒ dump_settings”NŒdump_transforms”NŒ _destination”NŒauto_id_prefix”Œid”Œ toc_backlinks”Œentry”Œsectsubtitle_xform”‰Œ id_prefix”h&Œoutput_encoding”Œutf-8”Œ tab_width”KŒtrim_footnote_reference_space”‰Œexit_status_level”KŒstrip_elements_with_classes”NŒ source_url”Nh*NŒ traceback”ˆŒdump_pseudo_xml”NŒ report_level”KŒdoctitle_xform”‰Œenv”NubŒ footnote_refs”}”Œsubstitution_names”}”Œ nametypes”}”(h…NhNj¤Nh±NjNuŒsymbol_footnote_refs”]”Œ current_line”NŒindirect_targets”]”hhŒsubstitution_defs”}”Œnameids”}”(h…hˆhhj¤j§h±h´jjuŒsymbol_footnotes”]”h#hŒparse_messages”]”Œrefids”}”Œreporter”Nh%h&Œsymbol_footnote_start”KŒ transformer”NŒ footnotes”]”Œ citation_refs”}”Œ citations”]”Œ autofootnotes”]”Œautofootnote_start”KŒ decoration”Nh(]”h�aub.