What is the output of the following MATLAB code? 1 2 3 4 5 6 7 counter
Question:
What is the output of the following MATLAB code?
Transcribed Image Text:
1 2 3 4 5 6 7 counter = 3; 8 stop = 0; 9 10 11 12 N 13 function out = 15 16 17 for i = 4:-1:1 x(i) = 1^2; end while stop == 0; end problem1_36 if x (counter) > 5 else end out= x(counter-1)-1; stop stop + 1; out = 1;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (6 reviews)
The MATLAB code provided has a few issues in its syntax but I will assume you want to understand the ...View the full answer
Answered By
Aysha Ali
my name is ayesha ali. i have done my matriculation in science topics with a+ . then i got admission in the field of computer science and technology in punjab college, lahore. i have passed my final examination of college with a+ also. after that, i got admission in the biggest university of pakistan which is university of the punjab. i am studying business and information technology in my university. i always stand first in my class. i am very brilliant client. my experts always appreciate my work. my projects are very popular in my university because i always complete my work with extreme devotion. i have a great knowledge about all major science topics. science topics always remain my favorite topics. i am also a home expert. i teach many clients at my home ranging from pre-school level to university level. my clients always show excellent result. i am expert in writing essays, reports, speeches, researches and all type of projects. i also have a vast knowledge about business, marketing, cost accounting and finance. i am also expert in making presentations on powerpoint and microsoft word. if you need any sort of help in any topic, please dont hesitate to consult with me. i will provide you the best work at a very reasonable price. i am quality oriented and i have 5 year experience in the following field.
matriculation in science topics; inter in computer science; bachelors in business and information technology
_embed src=http://www.clocklink.com/clocks/0018-orange.swf?timezone=usa_albany& width=200 height=200 wmode=transparent type=application/x-shockwave-flash_
4.40+
11+ Reviews
14+ Question Solved
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted:
Students also viewed these Engineering questions
-
What are the top 2 operational challenges in your industry? What differentiates the most competitive organizations from the laggards in your industry? What do you hope to get out of this course as it...
-
If the United Nations took over control of the oceans, what steps could they take to improve the condition of the oceans? If you were working on this project, how could you provide equal access and...
-
A potter's wheel - thick stone disk of radius 0.55 m and mass 75 kg is freely rotating at 58 rev/min. The potter can stop the wheel by pressing a wet rag against the rim and exerting a radially...
-
Part A Light has both a wave and a particle nature. Particles have a wave nature as well, and therefore All particles decay with a certain characteristic lifetime. Their position can not be specified...
-
What managers are involved in managing an IT portfolio, and why?
-
If you were to audit an existing performance-appraisal system, what criteria would you use to judge its effectiveness?
-
Clearly explain the differences among VP, VE, and VA, with an example of each.
-
Farina Bays computer system generated the following trial balance on December 31, 2013. The companys manager knows something is wrong with the trial balance because it does not show any balance for...
-
You take out a $200,000 mortgage for 30 years at 6%. What isyour monthly payment? Solve Below 200000 Fill out the ammortizationtable to answer the following questions. 30 What is the principleand...
-
In numerical methods, there are often many ways to make a calculation that give the same answer but have vastly different efficiencies. In this problem, we are going to consider a common calculation...
-
Consider a slab of thickness 2W that is initially at a temperature TH. The slab is in contact with a cold reservoir at some temperature TC < TH. The slab has a thermal conductivity k and the heat...
-
A Styrofoam ball has just been shot straight up. Air resistance is not negligible. Describe a situation. For each problem, draw a motion diagram, a force identification diagram, and a free body...
-
Write Advantages how principals encourage personal self-efficacy
-
Explain in bullet points an organisational policy/procedure for a customer complaint, such as a coffee shop
-
What does the term 'attribute' refer to in relation to developing a table?
-
Explain the conflict resolution techniques with Examples
-
What steps can you take to make sure all relevant colleagues' voices are heard when discussing budget outcomes ?
-
The accounting firm described in Exercise 28 is interested in providing opportunities for its auditors to gain more expertise in statistical sampling methods. They wish to compare traditional...
-
Write the expression in radical notation. Then evaluate the expression when the result is an integer. 23 -1/2
-
Chemists and engineers must be able to predict the changes in chemical concentration in a reaction. A model used for many single-reactant processes is Rate of change of concentration = -kC n where C...
-
Chemists and engineers must be able to predict the changes in chemical concentration in a reaction. A model used for many singlereactant processes is Rate of change of concentration = -kC n where C...
-
The following list gives the measured gas mileage in miles per gallon for 22 cars of the same model. Plot the absolute frequency histogram and the relative frequency histogram. 23 25 26 25 27 25 24...
-
1. A circular disk of radius 3.0 cm has a uniform surface charge density of 47 nC/m'. What is the total charge on the disk? 2. A sphere of radius 2.4 cm has a uniform volume charge density of 354...
-
Republic Services (RS) Submit high bid Submit low bid RS: $1.7 billion RS: $2.1 billion WM: $2.5 billion WM: $1.2 billion Submit low bid RS: $0.3 billion RS: $0.4 billion WM: $3.7 billion WM: $1.7...
-
The standard cost of Product B manufactured by Oriole Company includes 3.8 units of direct materials at $6.30 per unit. During June, 27,000 units of direct materials are purchased at a cost of $6.20...
Study smarter with the SolutionInn App