How do I make a random vector with intergers?

조회 수: 12 (최근 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)

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by