Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Lab_MATLAB_English_Part2.doc
Скачиваний:
2
Добавлен:
19.11.2019
Размер:
421.89 Кб
Скачать

Variant 3

1. The integer m, n and matrix A(m,n) are given. For each row calculate the sum of all negative elements.

2. The integer n and square matrix A(n,n) are given. Count up the amount of odd elements which are placed

1) higher than main diagonal;

2) below than main diagonal;

3) on the main diagonal.

Create on the form the List box control which, allows user to select one or more items of task. (Set property Multiselected=2 Extended). Your program has to perform only selected items.

Variant 4

1. The integer m,n and matrix A(m,n) are given. Print elements of matrix, which are divided by 3 without rest.

2. The integer n and square matrix A(n,n) are given. Count up the amount of elements which, are the squares of integers which are placed

1) higher than main diagonal;

2) below than main diagonal;

3) on the main diagonal.

Create on the form the List box control which allows user to select one or more items of task. (Set property Multiselected=2 Extended). Your program has to perform only selected items.

Variant 5

1. The integer m, n and matrix A(m,n) are given. Print elements of the matrix, which divided by 5 without rest.

2. The integer n and square matrix A(n,n) are given. Count up the average value of positive elements which are placed

1) higher than main diagonal;

2) below than main diagonal;

3) on the main diagonal.

Create on the form the List box control which allows user to select one or more items of task. (Set property Multiselected=2 Extended). Your program has to perform only selected items.

Variant 6

1. The integer m, n and matrix A(m,n) are given. For each row calculate the sum of positive elements.

2. The integer n and square matrix A(n,n) are given. Count up the sum of even elements, which are placed

1) higher than main diagonal;

2) below than main diagonal;

3) on the main diagonal.

Create on the form the List box control which allows user to select one or more items of task. (Set property Multiselected=2 Extended). Your program has to perform only selected items.

Variant 7

1. The integer m, n and matrix A(m,n) are given. Find a row in which there are more then 2 negative elements.

2. The integer n and square matrix A(n,n) are given. Count up the average value of negative elements, which are placed

1) higher than side diagonal;

2) below than side diagonal;

3) on the side diagonal.

Create on the form the List box control which allows user to select one or more items of task. (Set property Multiselected=2 Extended). Your program has to perform only selected items.

Variant 8

1. The integer m,n and matrix A(m,n) are given. Redouble all negative elements.

2. The integer n and square matrix A(n,n) is given. Count up the average value of odd elements which are placed in

1) columns, which begin with negative elements;

2) columns, which begin with positive elements;

3) columns which begin with 0.

Create on the form the List box control which allows user to select one or more items of task. (Set property Multiselected=2 Extended). Your program has to perform only selected items.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]