What is the size of i after the following ?code is run in MATLAB for i=5:1 i=i-2; end i=-1 O 0*0 O Error O No output

Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)
5th Edition
ISBN:9781305084766
Author:Saeed Moaveni
Publisher:Saeed Moaveni
Chapter15: Computational Engineering Tools Matlab
Section: Chapter Questions
Problem 33P
icon
Related questions
icon
Concept explainers
Question
What is the size of i after the following
?code is run in MATLAB
for i=5:1
i=i-2;
end
i=-1
0*0 O
Error O
No output
Transcribed Image Text:What is the size of i after the following ?code is run in MATLAB for i=5:1 i=i-2; end i=-1 0*0 O Error O No output
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
MATLAB
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, civil-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Engineering Fundamentals: An Introduction to Engi…
Engineering Fundamentals: An Introduction to Engi…
Civil Engineering
ISBN:
9781305084766
Author:
Saeed Moaveni
Publisher:
Cengage Learning