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

Click For 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
 
The book claims the answer is that all the magnitudes are the same because "the gravitational force on the penguin is the same". I'm having trouble understanding this. I thought the buoyant force was equal to the weight of the fluid displaced. Weight depends on mass which depends on density. Therefore, due to the differing densities the buoyant force will be different in each case? Is this incorrect?

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
583
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K