basic questions how to find x

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

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 23 Jun. 2013
Bearbeitet: Azzi Abdelmalek am 23 Jun. 2013

1 Stimme

y=@(x) 5*x+2
y(2)

Weitere Antworten (1)

Amir Ghasemiyan
Amir Ghasemiyan am 24 Jun. 2013

0 Stimmen

and this is another way:
function y=y(x)
y=5*x+2;
and in command window:
y(2)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by