Get in touch with us
Send us an e-mail
Question
For the following for loop:
x = [4 8 2.1 3 9 7 1];
c = 0;
for k = 1:2:length(x)-2
if x(k) + x(k+1) > c
c = x(k) + x(k+1);
end
end
a) How many times does the for loop loop?
b) What are the values that k takes on in the loop? Ie, first time through the for loop k is --â€, second time through k is -, etc.
c) What is the value of c after the for loop ends?
Summary
This question belongs to MATLAB software and discusses about FOR loops and to compute value of the given equation.
Answer is in MATLAB format
Download Full Solution
The topic I had selected for my dissertation required to include a report on the local markets of New South Wales. It was difficult getting help online as the data available are mostly generic and difficult to understand cohesively. Moreover, the majority of the online dissertation writing services online are located abroad somewhere in USA or UK. I was happy to see that HwA has dissertation writing helpers from not only Australia, but New South Wales itself and they cater specifically to students like us, who are from or studying in Australia.
I was a bad place with my electricity assignment and was not sure how to apply the laws to get the numerical assignments done. Then I came in contact of one of my seniors in my college who told me about HwA. The service I got here was awesome and more than giving me a A in my assignment they also treated me with respect and helped me learn a lot.
I was stuck with my fault detection in logic circuit assignment when I looked up in the net for help. Luckily I came across HwA and it was all so quick. Within 5 minutes of me enquiring for help, they mailed me back letting me know about the process. The assignment went well and since then I always consult HwA for any of my assignments.
The PowerPoint presentation with speaker notes prepared for my world cuisines assignment by the PowerPoint presentation help expert at HwA was absolutely as I had requested for. It was interesting, structured, and not overladen with text content.
Material provided by the online mechanical engineering tutor at HwA was absolutely fantastic and just the thing I needed to write my mechanical engineering term paper on Fluid Mechanics. The online mechanical engineering tutor assigned to me helped me understand the crucial details of the topic and that along with the reference material and notes provided helped me to write my term paper and get an A in it!
Comments
this is a very good website
I have 50 questions for the same test your page is showing only 28
hi can you please help or guide me to answer my assignments. thanks
hi can anyone help or guide me to my assignments. thanks
This solution is perfect ...thanks
Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes
Perfect bank of solution.
great !
thanks for the quick response. the solution looks good. :)
thnx for the answer. it was perfect. just the way i wanted it.
works fine.