How Create a vector given size(N) and the value of the max element(M)?

조회 수: 73 (최근 30일)
CMdC
CMdC 2021년 1월 21일
댓글: CMdC 2021년 1월 21일
How Create a vector given size(N) and the value of the max element(M)?

채택된 답변

Daniel Pollard
Daniel Pollard 2021년 1월 21일
Are those the only conditions?
linspace(1, M, N)
has N values which range from 1 to M.

추가 답변 (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