derivative at various points in symbolic math toolbox
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mesbahose Salekeen
am 2 Okt. 2019
Beantwortet: Stephan
am 2 Okt. 2019
let say i have a vector.
A=[1 2 4 6]
now i am declaring a function using symbolic toolbox
syms x
f=x^2
how do you evaluate f at every elements of A?
0 Kommentare
Akzeptierte Antwort
Stephan
am 2 Okt. 2019
A = [1 2 4 6];
syms x
f(x) = x^2
sol = f(A)
gives:
f(x) =
x^2
sol =
[ 1, 4, 16, 36]
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!