Hi Sadiq,
In MATLAB, the "xcorr()" function is generally used for discrete signals rather than continuous ones. However, if you sample your continuous signal, you can use "xcorr()" to find the cross-correlation between them.
Coherence
[Cxy,F] = mscohere(x,y)
Coherence is a frequency-domain measure that shows how well two signals are linearly related at different frequencies, "Cxy" stores the magnitude-squared coherence between signals "x" and "y".
"F" is the vector of frequencies at which the coherence is computed. However, it doesn't directly provide information about the starting points of signals.
Cross-correlation
[r,lags] = xcorr(x,y)
Cross-correlation ("r") can give information about the time delay (lag) between two signals ("x" and "y"), showing their similarity as a function of the lag. "lags" are the time-delays at which the cross-correlation is computed.
While it doesn't directly store starting points or frequencies, you can analyze the cross-correlation sequence (r) and lags to understand the time-domain relationship.
In summary, the starting points of signals are not directly stored in either "mscohere()" or "xcorr()". To determine the starting points of signals, you would need to analyze them separately.
You can learn more about the Coherence and Cross-correlation by going through the following MathWorks documentaion links: