analyzing biosignals in Matlab
Ältere Kommentare anzeigen
Hi, I am having a project where I have to open a signal from muscles in matlab and use to it find a few parameters. I'm a beginner in matlab so I apologize if my questions might sound too simple. first, the file for my signal is a .mat file. I know how to load it in matlab but how can I open it as a figure? (a plot of my signal) I mean I wanna see my signal in matlab. second, I need to find the median frequency for this signal which is in the time domain itself so it has to turn into freq domain first. I need the median frequecy for 2 parts of signal, from the beginning to near the middle, and then middle to end. How do I do that? I know about the functions in matlab that take median freq etc but I need the exact code as an example. any help would be really appreciated.
Akzeptierte Antwort
Weitere Antworten (4)
Rick Rosson
am 2 Jul. 2011
Hi Mary,
When you load the file into MATLAB, what are the names and sizes of the variables that appear in the MATLAB Workspace? To find out, please try the following:
filename = 'myfile.mat'; % or whatever the file is called
load(filename);
whos
Then please copy and paste the table from the Command Window to this forum.
Thanks.
Rick Rosson
am 3 Jul. 2011
Hi Mary,
The easiest way to visualize a signal in MATLAB is to simply plot it. Please try:
plot(x);
where x is the name of the variable containing the samples of the signal.
HTH.
Rick
Mary G
am 4 Jul. 2011
0 Stimmen
Mary G
am 16 Jul. 2011
0 Stimmen
2 Kommentare
Walter Roberson
am 16 Jul. 2011
Is there a name for the data file format you are using? If not, then what kind of device produced it?
Mary G
am 17 Jul. 2011
Kategorien
Mehr zu Get Started with Signal Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!