Réponses (2)

KSSV
KSSV le 4 Avr 2020

1 vote

Read about input and unique.
Image Analyst
Image Analyst le 4 Avr 2020

1 vote

Hint: call input() or inputdlg() to get the numbers, and unique() inside a while statement to check for validity
while length(numbers) ~= length(unique(numbers)) && sum(numbers > 0) ~= 5

Catégories

Question posée :

le 4 Avr 2020

Modifié(e) :

le 5 Avr 2020

Community Treasure Hunt

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

Start Hunting!

Translated by