Comparing column vector of different length

Good afternoon, Please, how do I compare the values of 3 by 1 column vector with the values of 4 by 1 column vector one after the other and then take decision in matlab

2 Comments

I meant, I would like to to a decision that if the value in one column vector falls within the range of values of the other column vector and at certain distance then perform arithmetic operation.
Thank you.
give an example and your desired output

Sign in to comment.

Answers (1)

Jan
Jan on 8 Nov 2018
This seems to be a job for ismember, setdiff, union or intersect depending on what "compare" means. If this does not help, please post an example of what you want to achieve.

3 Comments

The issues is I have 9 regular grid of 4 degree by 4 degree (i.e 4.447797065782349e+02 by 4.447797065782349e+02)
Latitude Longitude 4, 2.5000 8, 6.5000 12, 10.5000 16, 14.5000
Within each grid falls some shifts (ΔN, ΔE) values for Delaunay triangle ΔN ΔE 116.5762, -68.0833 116.7845, -69.2392 113.9097, -71.2181
which I will like to use to compute shift at each Grid intersection and I can have more than one triangle in a grid. Then to be able to interpolate between grid points with any given Latitude and Longitude using the nearest grid point shift value.
Please, I am awaiting your response. Somebody should be help.

Sign in to comment.

Categories

Asked:

on 8 Nov 2018

Commented:

on 13 Nov 2018

Community Treasure Hunt

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

Start Hunting!