Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

need help rewriting this as a while loop insstead of a for loop image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions