how do I index within symfun matrix?
Ältere Kommentare anzeigen
syms A(t) [20,300];
%I want to use A(i,j)=f(t)
Antworten (1)
syms f(x) [1 2]
f
f(1)
Therefore what it created was a single function that has an array result. f(1) is interpreted as applying argument 1 to each of the functions inside the array, instead of as indexing the first location in the array.
In short: What you want is impossible in MATLAB.
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

