Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1494
Number of posts: 2174

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
time domain analysis from pressure sensor Posted by netthamee on 18 Mar 2010 at 11:42 AM
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');
fclose(prid);
allpressure = [allpressure; pressure];
end
t = linspace(0,length(allpressure)/fs,length(allpressure));

figure;
plot (t,allpressure);
xlabel('time (sec)');
ylabel ('pressure (psi)');
specgramdemo(allpressure,2000);



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.