Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Run the Matlab code: x = -12 + i* 3; y = 5 - i*12; result = x 60)) will give the

ID: 3582956 • Letter: R

Question

Run the Matlab code: x = -12 + i* 3; y = 5 - i*12; result = x 60)) will give the value 1 2 3 4 5. Which one of the following commands will generate a random number from 6 to 10? rand(6, 10) 6+rand (10) 10+rand(6) rand(10, 6) 6+4* rand Let x= ['CS101', 'A']. How many bytes does x take? 1 5 6 12 error Let X = char('CCS101', 'A'). How many bytes does x take? 1 5 20 12 10 Let [a B] = strtok('eee gh ii', 'g'). What is b? eee gh ii gh h ii eee gh ii Let str1 = 'AB';str2 = 'C'; res = strcat(str1, str2); What is res AB C ABC illegal abc

Explanation / Answer

15. (b) 1

16. (b) 4

17 (c) because only three values are greater than 60

18. (e) 6+4*rand will gnerate random no from 6 to 10

19. (d) 12 bytes because character take 2 bytes

20. (c) 20 bytes because x has size of 2x5

21. (b)

22. undefined function strcati()