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

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
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