Current location - Training Enrollment Network - Mathematics courses - Mathematical modeling software problems -matlab
Mathematical modeling software problems -matlab
1.Matlab has six data types and writes four: int short long double logical char. Choose for yourself.

2. A=_ and _ _ 5 _ _ are known.

8. It is known that A is a matrix, the diagonal matrix function of A is _ _ diag (a) _, and the lower triangular matrix function of A is _ tril (a) _ _ _.

two

1. describes the composition of Matlab function files. Code.

2. How to get help on how to use Matlab functions? Please write three songs.

Enter the name of the help function in the command window.

Search for the function name in the help window.

Calculate the results of the following procedure.

1.my sum = 0; For m= 1: 1000

if(my sum & gt; 1000)

Break;

end

mysum=mysum+m

end

m

m=46

2.a =;

c =[A; [ 10, 1 1, 12]],

D=C( 1:3,[2 ^ 3])

E=C( 1:3,)

Write the result of c, d, e c = [1, 2, 3; 4,5,6; 7,8,9; 10, 1 1, 12],

d =[2 ^ 3; 5 6; 8 9]

E=

3.A= upper function image. (Write out commands and operation results)