Question: ASAP! #2 Please convert this code to flowchart! Please see attached pic theres code in the pic Thanks:) YXXXXXX:1:1:1XXXXXXXXXXXXXX:i. heatin.m :1XX:1XXXXXXXXXX: XXXXXXXXXXX. clear; c1c; c1f
YXXXXXX:1:1:1XXXXXXXXXXXXXX:i. heatin.m :1XX:1XXXXXXXXXX: XXXXXXXXXXX. clear; c1c; c1f ; Nx-12; x=1 inspace (0,1,#x); h x (2)-x(1); T-0.1; alpha-2; k-alpha* (h"2); Nt-round (T/k); u(: ,1)=sin(pjtx) ; for i=1:Nx-2 dd (i)-1+ 2 alpha; c()alpha; a(i)alpha; end for n-1:Nt d-dd; for i=1:Nx-2 end for i=2 : Nx-2 xmult- a(i-1)/d(i-1); d(i) d(i) -xmult * c(i-1); b(1) = b(1) -xmult*b (i-1); end u(Ax-1 ,n+1) = b(Mx-2)/d (NX-2); for i Nx-3:-1:1 end end plot (x, u, 'ko-') xlabel('x','FontSize',20); ylabel ('u(x,t), 'FontSize',20)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
