photo

Matthew Williams


Last seen: 대략 1개월 전 2020년부터 활동

Followers: 0   Following: 0

통계학

  • Thankful Level 1

배지 보기

Feeds

보기 기준

질문


I was wondering how to set up the backwards sweep (i=M:-1:1) to handle the values from the forward sweep. The matrix Tn1 updates to Tn, but then for the updated matrix after the backwards sweep the data isn't connected at all to the forward sweep.
function TwoDTriangularFinProject() %% Geometry information L= 0.10; %Length of Fin, meters w= 0.20; %Width of Fin, meters...

거의 4년 전 | 답변 수: 0 | 0

0

답변

질문


I'm getting the error "Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-31." The function Tn1(:,i)=tridiagonal(b,a,c,d); where there error lies, Can someone help me with this.
%% Geometry information L= 0.10; %Length of Fin, meters w= 0.20; %Width of Fin, meters tt=0.01; %Full thickness of the Fi...

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

1

답변

질문


I'm getting the error "Array indices must be positive integers or logical values." and it seems like I structures the for loop to handle the equations. Can anyone help me with this?
ds=zeros(length(y),1); dAs=zeros(length(y),1); Ac=zeros(length(y),1); for j=1:N t1=(t(y(j))+t(y(j+1/2)))/2; %average thickn...

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

1

답변