Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Getting an error "INDEX OUT OF BOUNDS" in my matlab program. Please help.

조회 수: 2 (최근 30일)
Virajan Verma
Virajan Verma 2018년 10월 2일
댓글: Stephan 2018년 10월 2일
for i=1:3 fepsn(i)=i; end %%Loop for epsilon values for icounter=1:3 epsn=fepsn(icounter) end
%%Shape function for axial effect N1(epsn)=(-1/2)*epsn*(1-epsn) N2(epsn)=(1+epsn)*(1-epsn) N3(epsn)=(1/2)*epsn*(1+epsn)
%%First Derivatives of Shape Function N1=diff(N1(epsn),epsn) N2=diff(N2(epsn),epsn) N3=diff(N3(epsn),epsn)
%%%%Second Derivatives of Shape Function N11=diff(N1(epsn),epsn,2); Attempted to access N1(3); index out of bounds because numel(N1)=0.(ERROR HERE) N22=diff(N2(epsn),epsn,2); N33=diff(N3(epsn),epsn,2);
  댓글 수: 3
Virajan Verma
Virajan Verma 2018년 10월 2일
The problem was solved for that particular portion but not in this part. I rather suggest you to give solutions and not pin pointing and arguing with people Mr. Stephen
Stephan
Stephan 2018년 10월 2일
Usually duplicate questions will be closed. To get more help my suggestion is to unaccept the answer and tell the contributer who tried to help what went wrong by leaving a comment to the answer.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by