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: 60% (5 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?
-
Miles, Inc. is considering the purchase of a new machine for $600,000 that has an estimated useful life of 5 years and no salvage value . The machine will generate net annual cash flows of $105,000....
-
Air at \(200^{\circ} \mathrm{F}\) and 60 psia flows in a 4-in.-diameter pipe at a rate of \(0.52 \mathrm{lb} / \mathrm{s}\). Determine the pressure at the 2-in.-diameter throat of a Venturi meter...
-
The Park Plaza Hotel awarded its valet and laundry concession to Larson for a three-year term. The contract contained the following provision: It is distinctly understood and agreed that the services...
-
Using the following table, calculate the missing values for Jake's 15year student loan for $13,000.00. The annual interest rate is 7.288%, compounded each month. Find the data missing from the table...
-
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...
-
Compute todays American put option price in this two- period tree if the strike price is $70. Does early exercise occur?
-
Suppose an airline operates a fleet of 50 aircraft with varying seat configurations, ranging from 100 to 300 seats per aircraft. The airline operates an average of ten flights per day, with flight...
-
What is normal profit?
-
Suppose a freeway has one lane that is devoted only to people with important business (as defined by the people themselves). Do you think that lane would be any less crowded than the other lanes?
-
What are the implications for the regulatory authorities of the existence of contestable markets?
-
What is a real-life example of a monopsony?
-
If you were a commercial credit analyst charged with the responsibility of making an accept/reject decision on a companys loan request, with which financial statement would you be most concerned?...
-
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...
-
What role do advanced mindfulness-based practices play in modulating the activity of stress-related neural circuits, and how can their integration into daily routines optimize resilience to chronic...
-
a TQM plan consisting of a summary of Total Quality Management as a concept. Explain the choice to invest in TQM as competitive and operational to the survival of the company. Review the initiatives...
-
Mickley Company's plantwide predetermined overhead rate is $22.00 per direct labor-hour and its direct labor wage rate is $16.00 per hour. The following information pertains to Job A-500: Direct...
Study smarter with the SolutionInn App