|
Darren,
B = (0, 1.5, 3, 4.5, 6) is what I am looking for.
Basically A is an output of a sensor, and I need to create from that output the output that that sensor would have created if it had m points of sampling. So assuming that the values in A were taken in equaly spaced intervals, I need B to represent that same output (which is real data) given that there were m points of samping and not n (where n=numel(A))
thanks
"Darren Rowland" <darrenjremovethisrowland@hotmail.com> wrote in message <grk5l5$ah8$1@fred.mathworks.com>...
>
> > I cannot define beforehand the relationship between m and n. Basically I have a source vector with n values and a number m that defines the number of elements in a new vector, and these values should be deduced from the source values in a way, that if you would visualize both the source and the target vector, their plot would look the same (ignoring the differences on the x axis) - is this explanation clearer?
>
> Yoav,
> I agree with Roger's sentiment that you are probably not taking the correct approach to your problem. Maybe to clear things up you can provide an answer to these queries.
> If A = (0,3,6) and m=5, will the answer be
> B = (0, 1, 2, 3, 6),
> B = (0, 1.5, 3, 4.5, 6) or
> B = (0, 3, 4, 5, 6) ? And why?
>
> What would the answer be when m=6?
> Darren
|