Question: need help rewriting this as a while loop insstead of a for loop 1- - COM Editor - C:Users17017DocumentsMATLABExample03_04b.m +45 Example03_04a.m Example03_04b.mExample03_05a.mx Example03_05b.mx] Exan clear
1- - COM Editor - C:\Users\17017\Documents\MATLAB\Example03_04b.m +45 Example03_04a.m Example03_04b.mExample03_05a.mx Example03_05b.mx] Exan clear x - linspace(0,1,30); y - linspace(0, 1, 40); [X, Y] - meshgrid(x, y): Phi = zeros (40,30); tic for i 1:40 for 3 - 1:30 for k=1:20 10 Phi (i,j). Phi(1,3)+4* (1-os (k*pi))/(k*pi)*3 11 *exp(-k X (1,3) pi)*sin (k*Y(1,3) *pi): end 13 end 14 end toc surf (x, y, Phi) 17 xlabel('\itx') 18 ylabel('\ity) 19 zlabel('\phi (\itx\mm, \ity\zm))|| I 9 1 1 12 - 15 16 Command Window
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
