本答案对应课程为:点我自动跳转查看
本课程起止时间为:2020-10-12到2021-01-10
本篇答案更新状态:已完结

Chapter 1 Basic Knowledge of MATLAB Unit Test 1

1、 问题:When executing a command in command window, if you do not want to output the result immediately in the command window, you can add (    ).
选项:
A:colon (:)
B:comma (,)
C:semicolon (;)
D:percent (%)
答案: 【semicolon (;)

2、 问题:The value of the expression fix(exp(1))+mod(264,10)*10 is (    ).
选项:
A:86
B:62
C:423
D:42
答案: 【42

3、 问题:After the following command is executed, the value of x is (    ). >> clear
>> 5i;
>> ansj
选项:
A:5i
B:-5
C:5
D:5i
j
答案: 【-5

4、 问题:The statement x=linspace(1,10,6) will generate a vector of (    ) elements.
选项:
A:1
B:5
C:6
D:10
答案: 【6

5、 问题:The result of function floor(-2.1) is (    ).
选项:
A:-3
B:-2
C:1
D:2
答案: 【-3

6、 问题:The format option that would result in the following output format is (    ).>> 2/5 + 3/11
ans =
      37/55
选项:
A:long
B:short
C:hex
D:rat
答案: 【rat

7、 问题:If it is known that A is a 3×5 matrix, after executing A(:,1:2:3)=[], (    ).
选项:
A:A becomes row vector
B:A becomes 3 rows and 3 columns
C:A becomes 3 rows and 2 columns
D:A becomes 2 rows and 3 columns
答案: 【A becomes 3 rows and 3 columns

8、 问题:Input the following command in command window:>> A=[1:3;4:6];
>> D=sub2ind(size(A),[1,1],[2,3])The value of D is(      )。
选项:
A:3  6
B:2  5
C:4  5
D:3  5
答案: 【3  5

9、 问题:If the fpp.m file exists in both the current folder and search path, the wrong options in the following statement are (    ) when entering fpp in the command window.
选项:
A:execute the fpp.m file in the search path at first, then execute the fpp.m file in the current folder
B:only execute the fpp.m file in search path
C:executes the fpp.m file of the current folder at first, then execute the fpp.m file in the search path
D:only execute fpp.m file in current folder
答案: 【execute the fpp.m file in the search path at first, then execute the fpp.m file in the current folder;
only execute the fpp.m file in search path;
executes the fpp.m file of the current folder at first, then execute the fpp.m file in the search path

10、 问题:The MATLAB expression for the following mathematical expression are (    ).(Here π and e are all mathematical constants.)
选项:
A:pi-exp(pi)
B:pi-power(exp(1),pi)
C:pi-e^pi
D:pi-exp(1)^pi
答案: 【pi-exp(pi);
pi-power(exp(1),pi);
pi-exp(1)^pi

11、 问题:When x = 0.1, 0.3, 0.5, 0.7, 0.9, use the following expression to find the value of y = sin‍‍‍‍‍x cos‍x respectively.>> x=0.1:0.2:0.9;
>> y=sin(x)*cos(x);
选项:
A:正确
B:错误
答案: 【错误

12、 问题:The format command not only affects the data output format, but also affects the calculation and storage of data.
选项:
A:正确
B:错误
答案: 【错误

13、 问题:In a matrix A with 3 rows and 3 columns, A(4) represents the element in the second row and the first column of matrix A.
选项:
A:正确
B:错误
答案: 【错误

14、 问题:The value of expression ~(5|3) is not equal to the value of expression ~5|3.
选项:
A:正确
B:错误
答案: 【正确

Chapter 2 MATLAB Matrix Manipulation Unit Test 2

1、 问题:The statement which can create the third order magic matrix is (    ).
选项:
A:M=magic(3)
B:M=MAGIC(3)
C:M=Magic(3)
D:M=magic(1,3)
答案: 【M=magic(3)

2、 问题:The statement which can create the 5th order matrix A composed of double-digit random integers is (    ).
选项:
A:A= fix(10+89rand(5))
B:A= fix(20+90
rand(5,5))
C:A= fix(10+90rand(5))
D:A=fix(10+100
rand(5))
答案: 【A= fix(10+90*rand(5))

3、 问题:The statement which can create the diagonal matrix P with (x+y)^5 expansion coefficient is (    ).
选项:
A:P=diag(flipud(pascal(6)))
B:P=diag(diag(flipud(pascal(6))))
C:P=diag(flipud(pascal(5)))
D:P=diag(diag(flipud(pascal(5))))
答案: 【P=diag(diag(flipud(pascal(6))))

4、 问题:The expression which can make the diagonal elements of matrix A plus 30 is (    ).
选项:
A:A+30eye(size(A))
B:A+30
eye(A)
C:A+30ones(size(A))
D:A+30
eye(4)
答案: 【A+30*eye(size(A))

5、 问题:After the statement [X,D]=eig(A) is executed, D is a (    ).
选项:
A:triangular matrix
B:diagonal matrix
C:scalar matrix
D:identity matrix
答案: 【diagonal matrix

6、 问题:The main purpose of using sparse storage is (    ).
选项:
A:change storage order
B:improve operation precision
C:save memory space
D:design efficient algorithm
答案: 【save memory space

7、 问题:After executing statement A=sparse([0,2,5;2,0,1]), the last line of the output result is (    ).
选项:
A:(2,1)        2
B:(1,2)        2
C:(1,3)        5
D:(2,3)        1
答案: 【(2,3)        1

8、 问题:The statement which can create the third order matrix of ones A are (    ).
选项:
A:A=[ones(3,1), ones(3,1), ones(3,1)]
B:A=ones(3)
C:A=diag(eye(3))ones(1,3)
D:A=ones(3,3)
答案: 【A=[ones(3,1), ones(3,1), ones(3,1)];
A=ones(3);
A=diag(eye(3))
ones(1,3);
A=ones(3,3)】

本门课程剩余章节答案为付费内容
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦

   

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注