필터 지우기
필터 지우기

I am looking to use a user input to define how many rand 1 row by 6 columns matrices i need

조회 수: 2 (최근 30일)
SO I have the input defined as: I = input('How many lotto tickets do you require? (£2 per ticket) ')
Now I want to use the input entered by the user 'x' to create the 'X' number of rand 1x6 matrices. the matrices are in the range of 1 and 53. I am currently using the glowing script for the matrices:
randi (53,[1 6])

채택된 답변

David Fletcher
David Fletcher 2018년 4월 9일
randi(53,x,6)
Each row is a 'ticket'

추가 답변 (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