How to plot events over a signal?
Mostra commenti meno recenti
Hi all,
I have a signal collected over a 10 sec period (attached ‘signal’ and ‘time’ mat files).
I havetwo types of events (attached ‘a’, ‘b’, which are time points), each occurring multiple time over this 10 sec period.
1. First, I want to plot the signal and indicate over it at what time points each of these events occurred. For example, as indicated below in the figure .

2. Then I want to indicate a window between first time event A occurs and a second time event A occurs. The same for event b as indicated in the figure below.

3. Finally, I would like to plot the signal separately for each window having instead of time on x axis , percentage from 0-100%.
Could you please help?
clear
load ('Signal') % load signal
load ('Time') % load time variable
load('a'); % load event type 1
load('b'); % load event type 2
load('c'); % load event type 3
load('d'); % load event type 4
plot (time, gas_lat_env);
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
