필터 지우기
필터 지우기

how do i create a random matrix with set size yet the numbers are in a range from 0-9

조회 수: 50 (최근 30일)
how do i create a random matrix with set size eg 4x6 yet the numbers are in a range from 0-9

채택된 답변

Matt J
Matt J 2019년 11월 14일
편집: Matt J 2019년 11월 14일
randi([0,9],4,6) %random integers
or
9*rand(4,6) %non-integers

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by