필터 지우기
필터 지우기

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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by