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

Click For Summary
SUMMARY

The discussion centers on creating a ramp function in MATLAB to filter out unnecessary parts of an earthquake chirp signal for a project analyzing potential nuclear bomb activity. The user seeks a linear ramp function that transitions gradually from 0 to 1, similar to a unit step function, but has encountered difficulties modifying their existing code. Additionally, they express frustration with adjusting the graph window in MATLAB, particularly when dealing with outliers that distort the visual representation of their data.

PREREQUISITES
  • Familiarity with MATLAB programming and syntax
  • Understanding of signal processing concepts, specifically ramp and step functions
  • Knowledge of data visualization techniques in MATLAB
  • Experience with handling outliers in datasets
NEXT STEPS
  • Research how to implement a custom ramp function in MATLAB
  • Explore MATLAB's built-in functions for data filtering and outlier detection
  • Learn about MATLAB's plotting functions and how to adjust axes limits dynamically
  • Investigate signal processing techniques for analyzing earthquake data
USEFUL FOR

This discussion is beneficial for MATLAB users, signal processing engineers, and researchers analyzing seismic data, particularly those dealing with data visualization and outlier management.

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
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
774
  • · 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
3K