Matlab command and matrixes

1 visualización (últimos 30 días)
Steph surry
Steph surry el 5 de Oct. de 2020
Comentada: Ameer Hamza el 5 de Oct. de 2020
Create the following vectors A=[1 2 2 3 1 2 2]; B=[1 2 2 2 2 2 2]; C=[1 2 2 3 3 3 4];
1.Concatenate A and B.
2.Calculate the sum of all elements in A and B respectively.
3.Add each element of A with the 7th element of C.
4.Use the operator ‘:’ (colon) to create vectors of number series from 1 to 20 stored to variable F and number series of 10 to 25 stored to variable G.
5.Create a vector with elements of 20 zeros in one column.
6.Create a vector with elements of ones in 20x20 matrix.
7.Generate a vector composed of first 4 elements of A and last 5 elements of C.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by