Borrar filtros
Borrar filtros

interpol1 or composite function

3 visualizaciones (últimos 30 días)
adam
adam el 30 de Mayo de 2012
I have two vectors A and B. I plotted B versus of the A.
I have a function C as a function of a parameter d. I plotyed (d,C)
The values of column vector A is varying from 0 to maximum of C [max(C)]. C is a function.
I'd like plot A as a fucntion of d.
I used interpl1 but that doesn't give good result.
Thank you in advance,
Adam
[Merged information from duplicate question]
I have a values of vector A for different values of vector B (the corresponding value).the values of A is plotted as a function of the values of B.
C is a function of d (C=f(d)). we can plot C as a function of d. it is function like sin or cos.
There is a connection between C and B : the values of B is varying from 0 to max(C).
Now, I would like plot A as a function of d.
Thank you in advance,
Adam
  2 comentarios
Titus Edelhofer
Titus Edelhofer el 30 de Mayo de 2012
Hi Adam,
I don't understand: C is a function of d. But you don't write of any connection between A and C (except for the range), so how should the relation be between A and d?
Titus
adam
adam el 31 de Mayo de 2012
Hi Titus
Thank you for your answer. I'll try to explain you more.
I have a values of vector A for different values of vector B (the corresponding value).the values of A is plotted as a function of the values of B.
C is a function of d (C=f(d)). we can plot C as a function of d. it is function like sin or cos.
There is a connection between C and B : the values of B is varying from 0 to max(C).
Now, I would like plot A as a function of d.
Thank you in advance,
Adam

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 31 de Mayo de 2012
You have each element of the discrete vector B is in the range 0 to the maximum of C(d) . Now what if some element of B is less than the minimum value of C(d) ? For example if C(d) is 1 + d^2 then the minimum value of C(d) over reals would be 1, but you allow elements of B to assume the value 0 even though no C(d) might happen to be 0.
More generally, you can construct C such that C(d) has a limited set of values, such as by letting C(d) be 0^d, a function whose domain is only 1 (for d = 0) and 0 (for all other d). If an element of B was 1/2, then it would not be present in C(d) for any d, and yet 1/2 would be in the range 0 to max(C(d)).
Now suppose the range of C(d) goes negative as well as positive. You use sin as an example; very well, sin(d) for real d is in the range -1 to 1, but you restrict B to 0 to max(C(d)) . This issue does not in itself lead to contradiction, but it does make it more difficult to define the mapping of d to A, is it implies that A cannot map all of the original domain for d.
Now think about sin again. sin(x) is the same as sin(x + 2*Pi) so if the domain for d is large enough, there may be multiple d that map to the same C(d). Which of those multiple possibilities do you want to use when you construct the function mapping d to A ?
Once you have ironed out these obstacles, we can proceed to the proof that what you want to do is not generally possible.

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by