フィルターのクリア

derivative at various points in symbolic math toolbox

1 回表示 (過去 30 日間)
Mesbahose Salekeen
Mesbahose Salekeen 2019 年 10 月 2 日
回答済み: Stephan 2019 年 10 月 2 日
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?

採用された回答

Stephan
Stephan 2019 年 10 月 2 日
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 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by