Borrar filtros
Borrar filtros

How can I get input of function when the output is constant?

1 visualización (últimos 30 días)
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.

Respuesta aceptada

Matt J
Matt J el 5 de Mayo de 2022
fzero(@(x)y-f(x), xInitial)
  2 comentarios
kkh1897
kkh1897 el 5 de Mayo de 2022
how can I apply fzero function when x is vector with more than two values?
Walter Roberson
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))

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by