Functions in matlab -


this looks simple. want define function:

syms x

f = x^2

i want able f(4) , spits out 16. want avoid having write new m-file.

when dealing symbolic variables, substitute in numeric value, use subs(), i.e. symbolic substitution:

syms x f = x^2  subs(f,4) 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -