JavaScript is required

 Kết quả đoạn lệnh sau >>a = [1:3]' ;>> size(a)

A.

3 1

B.

1 3

C.

31

D.

Báo lỗi

Trả lời:

Đáp án đúng: A


The code `a = [1:3]'` creates a row vector `[1, 2, 3]` and then transposes it into a column vector. The `size(a)` function returns the dimensions of the matrix `a`, which in this case is a column vector with 3 rows and 1 column. Therefore, the result is `3 1`.

Câu hỏi liên quan