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: 57% (7 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?
-
The following data were extracted from the income statement of Brecca Systems Inc.: a. Determine for each year (1) the inventory turnover and (2) the number of days?? sales in inventory. Round to...
-
Write a noun phrase and a verb phrase. How are they different?
-
The San Francisco Chronicle is a large newspaper published daily. What is the level of measurement for each of the following variables? a. The number of papers sold each Sunday during 2014. b. The...
-
11. Which of the following sections is NOT required in the Comprehensive Annual Financial Report of a City? a) Statistical section Ob) Financial section OC) Historical section d) Introductory
-
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...
-
Goh Corporation changed its method of reporting operating activities from the indirect method to the direct method in order to make its statement of cash flows more informative to its readers. Will...
-
Q4. Johnny's Burger is a family-run fast food joint. In addition to its famous hamburger, Johnny's Burger has just launched a new "Organic Beef burger. The owner, Johnny, would like to know if his...
-
Compute ScholarPak's break-even point in sales dollars for the year. 2. Compute the number of sales units required to earn a net income of $540,000 during the year. 3. ScholarPak's variable...
-
41-44 Find fogoh. 41. f(x)=3x-2, g(x) = sin x, 42. f(x)=|x4|, g(x) = 2, 43. f(x)=x-3, g(x) = x, h(x) = x h(x) = x h(x) = x + 2 44. f(x) = tan x, g(x) == X x-1' h(x) = x
-
8. [1.5 pts] We want to design a plastic bottle. It will have inner diameter d1 and outer diameter d2 so that the thickness becomes t=(d2-d1)/2. The inner diameter is determined as 10 cm. The...
-
The perimeter of the rectangle below is 106 units. Find the value of y. 3y+3 2y | y-0
-
The input voltage to a rectifier is the continuous uniform(0,1) random variable U. The rectifier output is a random variable W defined by Find the CDF Fw(w) and the expected value E[W]. U < 0, U U>0....
-
Fill in each blank so that the resulting statement is true. 83 + 103 = ______ .
-
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 is excluded from income even when cancellation of debt income must be recognized?
-
1. Explain globalization. 2. in what ways has globalization help the united state? How has the globalization hurt the United States 3. take an emerging market economy like jamaica, the dominican...
-
1. Annual wage: $54,500. If to contribute to company 401(k) plan per biweekly paycheck. What is the effect of the pre-tax deduction regarding the contributions listed below, a) $50 per paycheck b) 5%...
Study smarter with the SolutionInn App