Matlab command and matrixes

1 vue (au cours des 30 derniers jours)
Steph surry
Steph surry le 5 Oct 2020
Commenté : Ameer Hamza le 5 Oct 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.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by