Use a symfun as index of a matrix

7 次查看(过去 30 天)
DZ AI
DZ AI 2015-12-15
回答: amin ya 2018-12-25
Hi everybody, I have a notation problem.
syms f(t) g(t)
v lxmxn 3d matrix
I am to write an equation like:
eq = diff(f) == v(f(t),g(t),t)
but i get a sym/subsindex error.
how can I access elements of a matrix indexed by a function?

回答(1 个)

amin ya
amin ya 2018-12-25
use formula to convert symfun to a matrix:
matrix=formula()

类别

Help CenterFile Exchange 中查找有关 Numeric Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by