How do I make a random vector with intergers?

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일

0 개 추천

randi([-9,9],3,1)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

질문:

2017년 3월 17일

댓글:

2017년 3월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by