Use a symfun as index of a matrix

8 views (last 30 days)
DZ AI on 15 Dec 2015
Answered: amin ya on 25 Dec 2018
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?

Answers (1)

amin ya
amin ya on 25 Dec 2018
use formula to convert symfun to a matrix:


Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!