MATLAB Answers


8 views (last 30 days)
adam on 31 May 2012
Can we use compose -functional composition with column vectors instead of function?
  1 Comment
Oleg Komarov
Oleg Komarov on 31 May 2012
Sorry your question doesn't ring a bell to me, can you please give an example?

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 31 May 2012
No, you cannot do this.
Your series of (mostly duplicated) questions along these lines has assumed that you can generalize from a finite set of sample values to get "the" formula for the function and use 'the" formula in calculate the function composition. This is a false premise. There are (literally) an infinite number of different functions that fit any finite set of sample values and there is no way of distinguishing between the "correctness" of the members of that infinite set. The "real" function might oscillate 319 times between each of the sample values that you know, but unless you know about the precise form of that oscillation you cannot do function composition except right at the exact points you know.
Assuming linearity or cubic fitting between the points you know is mathematically unsupportable in the general case -- it doesn't even work for the sin() function you mentioned as an example in your other copies of this thread.
  1 Comment
adam on 31 May 2012
Hello roberson,
Thank you for your answer.
I couldn't find a solution to my example posted before. For that, I posted this question.
Any idea!! Thanks in adavance.

Sign in to comment.

More Answers (0)



Community Treasure Hunt

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

Start Hunting!