How do I make a random vector with intergers?

8 ビュー (過去 30 日間)
James Pain
James Pain 2017 年 3 月 17 日
コメント済み: James Pain 2017 年 3 月 17 日
Hello, I was wondering how I could make a random 3 dimensional vector in Matlab with each value being an integer between -9 to 9?

採用された回答

Matt J
Matt J 2017 年 3 月 17 日
randi([-9,9],3,1)
  1 件のコメント
James Pain
James Pain 2017 年 3 月 17 日
Thanks, that's exactly what I wanted

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by