Downsample data preserving regions with high curvature
up vote
1
down vote
favorite
I want to do the following:
- Plot some two-dimensional data wich uses way too many mesh points.
- Reduce the number of mesh points by a factor of three.
- In this plot are some regions with high curvature and some with low curvature, and I cannot remove the data in high-curvature regions but I can live without some data in low-curvature regions.
Is there any simple way to do this?
I tried the MATLAB functions downsample
, interpolate
, resample
, interp
, interp1
, and upfirdn
but none of them seems to solve my problem since they all have something to do with signal and frequency, but my problem is not of this kind.
matlab plot resampling
New contributor
add a comment |
up vote
1
down vote
favorite
I want to do the following:
- Plot some two-dimensional data wich uses way too many mesh points.
- Reduce the number of mesh points by a factor of three.
- In this plot are some regions with high curvature and some with low curvature, and I cannot remove the data in high-curvature regions but I can live without some data in low-curvature regions.
Is there any simple way to do this?
I tried the MATLAB functions downsample
, interpolate
, resample
, interp
, interp1
, and upfirdn
but none of them seems to solve my problem since they all have something to do with signal and frequency, but my problem is not of this kind.
matlab plot resampling
New contributor
2
It would be useful if you added an example data set or function with this behaviour, so we can easily suggest solutions (a Minimal, Complete, and Verifiable example). Do you have a function (i.e. which you could differentiate) or just discrete data points?
– Wolfie
Nov 19 at 12:18
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to do the following:
- Plot some two-dimensional data wich uses way too many mesh points.
- Reduce the number of mesh points by a factor of three.
- In this plot are some regions with high curvature and some with low curvature, and I cannot remove the data in high-curvature regions but I can live without some data in low-curvature regions.
Is there any simple way to do this?
I tried the MATLAB functions downsample
, interpolate
, resample
, interp
, interp1
, and upfirdn
but none of them seems to solve my problem since they all have something to do with signal and frequency, but my problem is not of this kind.
matlab plot resampling
New contributor
I want to do the following:
- Plot some two-dimensional data wich uses way too many mesh points.
- Reduce the number of mesh points by a factor of three.
- In this plot are some regions with high curvature and some with low curvature, and I cannot remove the data in high-curvature regions but I can live without some data in low-curvature regions.
Is there any simple way to do this?
I tried the MATLAB functions downsample
, interpolate
, resample
, interp
, interp1
, and upfirdn
but none of them seems to solve my problem since they all have something to do with signal and frequency, but my problem is not of this kind.
matlab plot resampling
matlab plot resampling
New contributor
New contributor
edited Nov 19 at 12:14
Wolfie
14.5k51741
14.5k51741
New contributor
asked Nov 19 at 12:04
user449911
61
61
New contributor
New contributor
2
It would be useful if you added an example data set or function with this behaviour, so we can easily suggest solutions (a Minimal, Complete, and Verifiable example). Do you have a function (i.e. which you could differentiate) or just discrete data points?
– Wolfie
Nov 19 at 12:18
add a comment |
2
It would be useful if you added an example data set or function with this behaviour, so we can easily suggest solutions (a Minimal, Complete, and Verifiable example). Do you have a function (i.e. which you could differentiate) or just discrete data points?
– Wolfie
Nov 19 at 12:18
2
2
It would be useful if you added an example data set or function with this behaviour, so we can easily suggest solutions (a Minimal, Complete, and Verifiable example). Do you have a function (i.e. which you could differentiate) or just discrete data points?
– Wolfie
Nov 19 at 12:18
It would be useful if you added an example data set or function with this behaviour, so we can easily suggest solutions (a Minimal, Complete, and Verifiable example). Do you have a function (i.e. which you could differentiate) or just discrete data points?
– Wolfie
Nov 19 at 12:18
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
user449911 is a new contributor. Be nice, and check out our Code of Conduct.
user449911 is a new contributor. Be nice, and check out our Code of Conduct.
user449911 is a new contributor. Be nice, and check out our Code of Conduct.
user449911 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53374266%2fdownsample-data-preserving-regions-with-high-curvature%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
It would be useful if you added an example data set or function with this behaviour, so we can easily suggest solutions (a Minimal, Complete, and Verifiable example). Do you have a function (i.e. which you could differentiate) or just discrete data points?
– Wolfie
Nov 19 at 12:18