Ramp Function in MATLAB? also window adjustments (MATLAB Help)

AI Thread Summary
A user is seeking assistance in MATLAB to create a ramp function that gradually transitions from 0 to 1, which is needed to filter an earthquake chirp signal for a project related to nuclear bomb detection. They have attempted to modify a unit step function using conditional statements but have not achieved the desired outcome. Additionally, they are struggling with adjusting the graph window, as outliers in their data skew the range, complicating visualization. The user expresses frustration over the manual process of removing outliers. Overall, the discussion focuses on creating a ramp function and managing data visualization challenges in MATLAB.
Luongo
Messages
119
Reaction score
0
1. I produced a unit set function in MATLAB however my professor requires me to use a ramp function to be multiplied to a signal to filter out unnecessary parts of an earthquake chirp, this is being used in my project to determine whether the chirp was caused by a nuclear bomb.



2. ideally i'd like something similar to a unit step function but it doesn't go from 0 to 1 immediately, preferably in a linear fashion.



3. I tried modifying my unit step function but i haven't had any luck using conditional statements yet... I get the same result.
Just an aside question for MATLAB, how do i adjust the window. i can set the domain, however the range gets skewed if there's an outlier in my data that goes off to infinity my entire graph gets screwed up unless i delete the outliers by hand, which is a pain especially since there are many of them. Thanks!
 
Physics news on Phys.org
well i have the unit function but it goes from 0 to 1 with a ramp between that range
 
thanks a lot for the help, assholes
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
Thread 'Trying to understand the logic behind adding vectors with an angle between them'
My initial calculation was to subtract V1 from V2 to show that from the perspective of the second aircraft the first one is -300km/h. So i checked with ChatGPT and it said I cant just subtract them because I have an angle between them. So I dont understand the reasoning of it. Like why should a velocity be dependent on an angle? I was thinking about how it would look like if the planes where parallel to each other, and then how it look like if one is turning away and I dont see it. Since...
Thread 'Correct statement about a reservoir with an outlet pipe'
The answer to this question is statements (ii) and (iv) are correct. (i) This is FALSE because the speed of water in the tap is greater than speed at the water surface (ii) I don't even understand this statement. What does the "seal" part have to do with water flowing out? Won't the water still flow out through the tap until the tank is empty whether the reservoir is sealed or not? (iii) In my opinion, this statement would be correct. Increasing the gravitational potential energy of the...
Back
Top