フィルターのクリア

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 Center および File ExchangeCreating 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