photo

Elisee Yanna


2017년부터 활동

Followers: 0   Following: 0

메시지

%Aufgabe5 teil a Trapezregel
function[A]=trapzregel(a,b,N)

dt=((b-a)/N )% dt=h= (b-a) ist die Trapezbreite
x=a:dt:b; % Schritte
f=@(x){10*sin(x)./x}; %gegebene Funktion
%a,b sind die Integrationsgrenzen
%plot(fx,'r')
% N ist die Zahl der Intervallen
A=0;
for(n=1:1:N)

%plot(fx,'r')

A=A+{dt/2}*{f(a)+f(a+dt)}
a=a+dt;

end

i get this failed after plotting my Code.
what is wrong in my Code? i can t fund the faillure now 2 days.I need some Help.
Thank You

Undefined operator '+' for input arguments of type 'cell'.

Error in trapzregel (line 15)
A=A+{dt/2}*{f(a)+f(a+dt)}

통계

MATLAB Answers

1 질문
0 답변

순위
105,543
of 300,338

평판
0

참여
1 질문
0 답변

답변 채택
100.0%

획득한 표
0

순위
 of 20,922

평판
N/A

평균 평점
0.00

참여
0 파일

다운로드 수
0

ALL TIME 다운로드 수
0

순위

of 168,149

참여
0 문제
0 답안

점수
0

배지 수
0

참여
0 게시물

참여
0 공개 채널

평균 평점

참여
0 하이라이트

평균 좋아요 수

  • Thankful Level 1

배지 보기

Feeds

보기 기준

질문


what is wrong in my code trapezoidal rule
%Aufgabe5 teil a Trapezregel function[A]=trapzregel(a,b,N) dt=((b-a)/N )% dt=h= (b-a) ist die Trapezbreite x=a:dt:b; % Sch...

거의 8년 전 | 답변 수: 1 | 0

1

답변