Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Does anyone here know how to use matlab? I have a few questions that I can't seem to find answers to.

OpenStudy (anonymous):

Hello dude, I've used Matlab for some time. Send your question and I'll try to help you.

OpenStudy (anonymous):

What question do you have in Matlab? @zordoloom

OpenStudy (anonymous):

I have a project that involves signals. For the most part it's done, but I just need it to output a few more results. Here is what it does so far: It scans a row vector (signal file) and find the first highest point (this is where the tone is) then it continues to scan the row vector (signal file). I need it to save a part of this row vector( signal file) into a new vector. So after it has finished finding the highest point in the tone, it needs to store the all of the next data points until it finds another huge spike in the data. This is kinda hard to explain. If someone is willing to take a look at my code, that would be great.

OpenStudy (anonymous):

Post the code please.

OpenStudy (anonymous):

OpenStudy (anonymous):

Thank you, I will take a look a little later tonight.

OpenStudy (anonymous):

Here is what the remaining of the code has to do:

OpenStudy (anonymous):

If you can help in anyway, I'll be forever grateful!

OpenStudy (anonymous):

Having a look now, I am pretty burnt out... it does seem straight forward tho.

OpenStudy (anonymous):

OpenStudy (anonymous):

OpenStudy (anonymous):

OpenStudy (anonymous):

Here is file d2 when I run it through the same code: I have changed line 38 in the calpule file so that it doesn't skip over a fixed period, but instead Fs*21.5. But this doesn't seem to work with the other files (d1 and d2).

OpenStudy (anonymous):

OpenStudy (anonymous):

^The image that I posted didn't use Fs in line 38 of the code, but the same code that was posted above^

OpenStudy (anonymous):

If anything is confusing, or what I have to do, please ask.

OpenStudy (anonymous):

* correction, the first vertical line that I pointed out in the above image is not C, but tone_end. Sorry about that. C is the second vertical line in the image.

OpenStudy (anonymous):

Right, you need to scan along the signal using some function of time, correct?

OpenStudy (anonymous):

yes. every d file corresponds with a t file. (t,d) or (t1,d1) and (t2,d2)

OpenStudy (anonymous):

@celmata

OpenStudy (anonymous):

@celmata

OpenStudy (anonymous):

OpenStudy (anonymous):

OpenStudy (anonymous):

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!