Como se evalúa y grafica una función en App Designer
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ANDRÉS MAURICIO DÍAZ BELTRÁN
el 16 de Mzo. de 2021
Respondida: Asvin Kumar
el 19 de Mzo. de 2021
Tengo mi codigo asi
Quiero evaluar esta funcion "sign(cos(2*pi*x))"
funcion =@(x) eval(app.FxEditField.Value);
f = funcion;
maxn = app.HarmonicsSpinner.Value;
xmin = str2double(app.StartEditField.Value);
xmax = str2double(app.EndEditField.Value);
x = linspace(xmin, xmax, 100);
y = polyval(f,x);
plot(app.UIAxes,x,y);
app.UIAxes.XLim = [xmin, xmax];
0 comentarios
Respuestas (1)
Asvin Kumar
el 19 de Mzo. de 2021
y = f(x);
This should work.
Esto debería funcionar (Spanish from Google Translate)
0 comentarios
Ver también
Categorías
Más información sobre Develop Apps Using App Designer 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!