Use a symfun as index of a matrix

2 vues (au cours des 30 derniers jours)
DZ AI
DZ AI le 15 Déc 2015
Réponse apportée : amin ya le 25 Déc 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?

Réponses (1)

amin ya
amin ya le 25 Déc 2018
use formula to convert symfun to a matrix:
matrix=formula()

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by