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

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -