필터 지우기
필터 지우기

Am I overwriting data?

조회 수: 1 (최근 30일)
Felix Lauwaert
Felix Lauwaert 2015년 7월 16일
댓글: Felix Lauwaert 2015년 7월 16일
Hi,
I need to get three different orbits and I think I might be overwriting data because when I plot them together I just get one line, but when I delete all the code related to two of the orbits and introduce the data and execute one by one I get different plots. I might have the problem in this part of my code:
C=C1;
[ resu1 ] = nInt( fun , ab , tspan, titol, rotulacio,C );
C=C2;
[ resu2 ] = nInt( fun , ab , tspan, titol, rotulacio,C );
C=C3;
[ resu3 ] = nInt( fun , ab , tspan, titol, rotulacio,C );
rD1=resu1(2,:)./d;
rpD1=resu1(4,:)./d;
rD2=resu2(2,:)./d;
rpD2=resu2(4,:)./d;
rD3=resu3(2,:)./d;
rpD3=resu3(4,:)./d;
I think each pair 'rDi' and 'rpDi' are being the same while they shouldn't. Where is my mistake? Thanks for your help.

채택된 답변

Walter Roberson
Walter Roberson 2015년 7월 16일
  댓글 수: 1
Felix Lauwaert
Felix Lauwaert 2015년 7월 16일
Thanks and sorry for this extra post. It's my first time in Matlab ANSWERS.

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by