Simple vector question.

조회 수: 1 (최근 30일)
Danny C
Danny C 2016년 9월 7일
답변: Image Analyst 2016년 9월 7일
If there is a vector C,
C = [3 8 9 7 3]
how can I make another vector that displays its position?
eg. D = [1 2 3 4 5]
eg2. E = [6 10 9 11 3 9 31 41]
F = [1 2 3 4 5 6 7 8]
eg3. Y = [7 5 3 1 8 6]
Z = [1 2 3 4 5 6]

채택된 답변

Image Analyst
Image Analyst 2016년 9월 7일
Try
D = 1 : length(C);
Similarly for the other letter-named vectors.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by