A for / end loop repeats a statement, or a group of statements, a specific number of times. Its generic form is for i =

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

A for / end loop repeats a statement, or a group of statements, a specific number of times. Its generic form is for i =

Post by answerhappygod »

A For End Loop Repeats A Statement Or A Group Of Statements A Specific Number Of Times Its Generic Form Is For I 1
A For End Loop Repeats A Statement Or A Group Of Statements A Specific Number Of Times Its Generic Form Is For I 1 (29.43 KiB) Viewed 42 times
A for / end loop repeats a statement, or a group of statements, a specific number of times. Its generic form is for i = first: increment: last, statements end Given the Matlab script: A =zeros (5,5); for i A(i,i) end for i =1:4, A(i,i+1) 2; end a) Explain the program. b) After the execution, what is the value of A? = 1:5, = 1;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply