variable interpolation in meshgrid

Is there any way to do variable interpolation for different points in the row depending on which row they are in?
for example , point A which has coordinates(4,0) would have more interpolation at 4 times than a point B in row (2,0) which would have 2 times the interpolation similarly can this be extended to, if point A is brighter than B, can it have different amount of interpolation?
Thanks

3 件のコメント

dpb
dpb 2022 年 7 月 12 日
You're going to have to 'splain what you're trying to do more better than this...give us an example of available inputs and what expected outputs are to be...
AAS
AAS 2022 年 7 月 12 日
Sure! lets make it 1D for ease. Imagine I have an array
a=[0,1,0,0,0,1,0] which is a 1X7 array
I want to expand the array to 1x9 size. However, I only want to interpolate (expand) the points that are of value 0..
so I want somehting like this
a'=[0,1,0,0,0,0,0,1,0] which could use the condition, "if its surrounded by 0 on either side , interpolate" otherwise leave alone.
Thanks
dpb
dpb 2022 年 7 月 13 日
That's pretty heuristic expectation -- what limits are placed on the possible input vector? For example, your above could also be
a=[0,0,1,0,0,0,1]
a=[1,0,0,1,0,0,1]
...
or an infinite number of other possibilities that match the above.

サインインしてコメントする。

回答 (0 件)

カテゴリ

製品

リリース

R2021b

質問済み:

AAS
2022 年 7 月 12 日

コメント済み:

dpb
2022 年 7 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by