필터 지우기
필터 지우기

How to compute an indefinite integral?

조회 수: 3 (최근 30일)
Tiffany Kocis
Tiffany Kocis 2013년 9월 16일
I am trying to have MATLAB solve
2,241.1 = integral (from 0 to t) of (1000dt).
For whatever reason, I cannot get the integral to work even if I take out the solve and such.
syms x t
int(1000, [0,t])
returns the following error:
??? Error using ==> mupadmex Error in MuPAD command: Second argument must be either of form x or x=a..b [int]
Error in ==> sym.int at 40 r = mupadmex('symobj::intindef',f.s,x.s);
Error in ==> Kocis_hw1_problem4 at 54 int(1000,[0,t])
Can anyone tell me how to do this?
Thanks, Tiffany

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 9월 16일
>> int(1000,t,0,t)
The limits go in as the 3rd and the 4th arguments seperately:
  댓글 수: 2
Tiffany Kocis
Tiffany Kocis 2013년 9월 16일
편집: Azzi Abdelmalek 2013년 9월 16일
That worked! but the link says this:
int(expr,var,[a,b]), int(expr,var,[a b]), and int(expr,var,[a;b]) are equivalent to int(expr,var,a,b).
Whats the difference?
Shashank Prasanna
Shashank Prasanna 2013년 9월 16일

댓글을 달려면 로그인하십시오.

카테고리

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