Matlab command and matrixes
조회 수: 1 (최근 30일)
이전 댓글 표시
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
Ameer Hamza
2020년 10월 5일
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!