How can I get input of function when the output is constant?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
kkh1897
el 5 de Mayo de 2022
Comentada: Walter Roberson
el 5 de Mayo de 2022
Hi,
How can I get input of function when the output is constant?
In this function, output = f(input)
output is constant and input should be controlled to match the output.
Thank you.
0 comentarios
Respuesta aceptada
Matt J
el 5 de Mayo de 2022
fzero(@(x)y-f(x), xInitial)
2 comentarios
Walter Roberson
el 5 de Mayo de 2022
When it is a vector, do you want to return a scalar output or do you want to return one copy of the constant for each input?
F = @(x) constant * ones(size(x))
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!