Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 10 5 2. 16. If str=['hello'; 'kitty'), then size(str) returns: a. 10 1 b. 25 d. 17. If A=[10:-2:1], then A(4) returns: a. 8

image text in transcribed
image text in transcribed
1 10 5 2. 16. If str=['hello'; 'kitty'), then size(str) returns: a. 10 1 b. 25 d. 17. If A=[10:-2:1], then A(4) returns: a. 8 b. 65 d. None of the above. -101 None of the above. 18. (abc-'a') returns: a. 0 1 2 b. 101 d. 19. If A=(2, 4; 3,5; 1,6], then size(A(:)) returns: a. 16 b. 6 1 d. 23 3 2. 20. If a='A' and b=1, then a+b returns: a. "B b. 66 C. d. 98 None of the above. Part III. Short Answers. (4 Point) 21. A is an m-by-n matrix with m>n>1. Circle all the legible expressions in the following list: A A A. A A. A A^2 A/A A /A A. 2 Part IV. Short Answers. (15 Point - 3 Each) Let A = [1:4; 5:8; 9:12] 22. A( : ) = 23. A(:, end ) = 24. length( A(:)) - 25. If we set A(3, 3)=[ 1, then A= 26. If Al :)=12:-1:1, then A= Part V. Short Answers. (6 Points - 3 Each) 27. If a=(1:5), then a(2)=( ) returns 28. If a [4, 2, -3) and b=(1, 2, 3), then a*b'. Part VI. Short Answers. (24 Points) 29. (3 Each) According to the precedence of the operators, use parentheses to isolate them in their operating orders. For example: 2-5^3*4 will be presented as (2-(543)*4)). Part VI. Short Answers. (24 Points) 29. (3 Each) According to the precedence of the operators, use parentheses to isolate them in their operating orders. For example: 2-513*4 will be presented as (2-((543)*4)). a) 5^3+31514/2*6-312: b) 2/4+5^3* sin(a+b^2/2): 30. (3 Each) if x is a m-by-n matrix, then transfer the following expressions into MATLAB statements a) 5x +3x-2* in b) (x-3x)/(3x+7X-4) = 31. (3 Each) If x=6.345 then ceil(x)= and round(x)= and bw123, then write a statement that makes a new string as 'value 32. (3 Points) If a 'value b ba123'. Specify the MATLAB statement: 33. (3 Points) If x3.1415927 then the MATLAB statement of fprintf("var x = %010.4f ',x) returns: Part VIII. Short Answers. (11 Points) 34. elements with n-th element valued as V2 35. (7 Points) How to create the given matrix by using functions ones(), zeros(), eye() and arithmetic operators only 3 0044 0 0 3 0 4 4 0 1 1 3 4 4 0 1 1 2 2 2 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

ISBN: 1489982175, 978-1489982179

More Books

Students also viewed these Databases questions