basic questions how to find x
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hello
if i have a function y=f(x) and x is given. What function do I use to calculte the corresponding y?
- symbolical - numerical
example: y=5x+2 and x=2 question give y? thanks
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 23 de Jun. de 2013
Editada: Azzi Abdelmalek
el 23 de Jun. de 2013
y=@(x) 5*x+2
y(2)
0 comentarios
Más respuestas (1)
Amir Ghasemiyan
el 24 de Jun. de 2013
and this is another way:
function y=y(x)
y=5*x+2;
and in command window:
y(2)
0 comentarios
Ver también
Categorías
Más información sobre Symbolic Math Toolbox 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!