MATLAB: Basic questions how to find x

numerical symbolical x and y

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

Best Answer

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