필터 지우기
필터 지우기

MATlab wont do integrate command

조회 수: 1 (최근 30일)
Olivia Hagedorn
Olivia Hagedorn 2019년 2월 24일
편집: Asad Mirza 2019년 2월 24일
Matlab only gives errors when the script is:
int(x)
%or
int(x,x)
%or
int(x+5,x)
I just want to get answers such as .5x^2, or .5x^2+5x.
The error is: Undefined function 'int' for input arguments of type 'double'.
I have Symbolic Math Toolbox Version8.2 (R2018b) running

채택된 답변

Asad Mirza
Asad Mirza 2019년 2월 24일
편집: Asad Mirza 2019년 2월 24일
You have to first initialize x as a symbolic variable. You can find more information and examples here.
syms x
f = .5*x^2
int(f)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by