Symbolic substitution for variable subscripts
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How should I perform the following substitution: ? Can the subs function be used? Or do I have to take a manual approach and use sprintf into a char representation of the expression before converting it to symbolic form?
1 Commento
Walter Roberson
il 5 Set 2019
Supposing your a is to be 17 x 3, then
a = sym('a', [17 3]);
and then for any given numeric subscript j, sum(a(j,:))
However it is not possible to create the sum when j is symbolic
Risposte (0)
Vedere anche
Categorie
Scopri di più su Assumptions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!