Matlab command and matrixes
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
1 commentaire
Ameer Hamza
le 5 Oct 2020
Before asking homework question, read here: https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Réponses (0)
Voir également
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!