Matlab command and matrixes

조회 수: 1 (최근 30일)
Steph surry
Steph surry 2020년 10월 5일
댓글: Ameer Hamza 2020년 10월 5일
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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by