row vector with 15 elements

조회 수: 17 (최근 30일)
marie
marie 2013년 2월 20일
I need to create a row vector with 15 equally spaced elements in which the first element is 7 and the last element is 40. I already tried this row_vector=[7:2.2:40] but it gives me a matrix with 16 elements and row_vector=[7:3.5-1:40] but i keep getting 16 elements

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 2월 20일
편집: Azzi Abdelmalek 2013년 2월 20일
linspace(7,40,15)

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by