i want to generate a vector of (1,10) size and value is in between 1 to 4

조회 수: 2 (최근 30일)
Sun Heat
Sun Heat 2018년 10월 15일
답변: KSSV 2018년 10월 15일
hh=[4 4 4 3 3 3 3 2 2 1]; like this

채택된 답변

KSSV
KSSV 2018년 10월 15일
r = randi([1 4],1,10)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by