필터 지우기
필터 지우기

matlab에서 적분을 하고 싶습니다.

조회 수: 6 (최근 30일)
상원 안
상원 안 2024년 2월 22일
답변: Dyuman Joshi 2024년 2월 22일
syms x;
expr = 150/(0.06009x^2+9.607);
F = int(expr)
F =
(500000*57728463^(1/2)*atan((57728463^(1/2)*x)/96070))/19242821
여기서 이제 F를 이용해 그래프를 그리고 싶습니다.
>> plot(F,x); plot을 이용해 F를 그래프를 그리려고 했는데, 다음과 같은 오류가 발생합니다.
/다음 사용 중 오류가 발생함: plot
데이터는 숫자형, datetime형, duration형 또는 categorical형이거
나, double형으로 변환될 수 있는 배열이어야 합니다./
이럴땐 어떻게 해야 그래프를 그릴 수 있나요??

답변 (1개)

Dyuman Joshi
Dyuman Joshi 2024년 2월 22일
Use fplot -
syms x;
expr = 150/(0.06009*x^2+9.607);
F = int(expr)
F = 
%call fplot for the expression F, for x values in the range [-20 25]
fplot(F, [-20 25])
Adjust the x range according to need/requirement.

카테고리

Help CenterFile Exchange에서 빅 데이터 처리에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!