15· If A-11:3 :81, then A(3) returns: c. 7 16. (\'a-A) returns: a. 32 b. -32 c.
ID: 3595182 • Letter: 1
Question
15· If A-11:3 :81, then A(3) returns: c. 7 16. ('a-A) returns: a. 32 b. -32 c. Error d. None of the above. 17· If s-rHello','world'], then length( 1 ) returns: a. 10 d. None of the above. 18 If a 12.453, then which of the following condition will not present it as 12.45: a. format bank displa) e fprintls.2r, a) d. None of the above. 19. When use fprintf, which of the following is not a proper format: d. 7.3F e None of the 20 abe-returs a 101 c12 b 11 d. None of the above Part ii.Short answers. (10 Point -2 Each) Set A 17-2:0; 1:3 21. sizel A' 22. A(2, end) 23 A( :, 4:-1:2) 24. If A( , 2:3)1 1, then A·Explanation / Answer
I assume language here is matlab
15.
A = [1:3:8]
will produce a list
A = [1 4 7]
that is start from 1, add 3 to it unless you exceed 8
so A[3] = 7
16. ('a' - 'A') will return ascii difference of these two character which is 32
17. It will be 5, length of max length string
18 . fprintf(".2f", a) will print it as 12.45
Asnwered first 4 as per policy
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.