Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Need help in trying to find abs(W)

3 Ansichten (letzte 30 Tage)
matthew choo
matthew choo am 8 Nov. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
%A nonstationary physiological signal given in sr.txt.
%first column is the time in seconds
%second column is the physilogical signal
%This signal is sampled at a nonuniform rate that resulted in
%different sampling interval as the data is being collected.
%Develop an algorithmto determine the power spectral density
%%
clearvars;
close all;
clc;
load sr.txt;
time=sr(:,1)-sr(1,1);
sig=sr(:,2);
fs=10;
timeI=[[0:1:length(sig)-1]*(1/fs)];
sigI=interp1(time,sig,timeI);
[W,f]=cwt(sigI,'amor',fs);
%Find the average of W
%x-axis frequency
%y-axis power
A=[abs(W)];
M=mean(A)
figure(1)
plot(M,sigI);
hold on;
plot(timeI,sigI,'r')
xlabel('frequency');
%ylabel('power spectrum')

Antworten (0)

Diese Frage ist geschlossen.

Tags

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by