Is it possible to declare a symbolic function in terms of two other variables without specifying the function body in MATLAB?
I want to have a function $\\theta(x,t)$ where $x,t$ are variables. Just declaring $theta$ as a variable makes it $0$ when I take the partial derivatives with respect to $x$ or $y$.
syms f(x)
diff(f,x)
returns
ans(x) =
diff(f(x), x)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.