time domain analysis from pressure sensor - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

time domain analysis from pressure sensor

netthameenetthamee Posts: 1Member
i am now detecting the leak from pipeline. i am a very new user for matlab.

i am now facing some difficulties to do time domain analysis from the pressure sensor. i have already done for frequency domain analysis but still need to analyse with time domain.

here is my frequency domain analysis. pls help me how to write the code for time domain analysis. thanks to all.

directory = cd;
c = [0.0018441793 34.3574964587]; % stn-15
filelist = ls(['STN_15*.raw']);
allpressure =[];
fs = 1000;
for ii= 252:253
prid = fopen(char(filelist(ii,:)));
pressure = fread(prid, inf, 'int16');
allpressure = [allpressure; pressure];
t = linspace(0,length(allpressure)/fs,length(allpressure));

plot (t,allpressure);
xlabel('time (sec)');
ylabel ('pressure (psi)');
Sign In or Register to comment.