MATLAB: Help me with a simple program

dice relic 4 faces random between 1 and 4

I don't know much about matlab so Im hoping for some help from u guys
I must create 1 dice that has 4 faces and roll it the results should be :
1=right
2=left
3=up
4=down
totally random and must be done 50 times plz reply 🙂

Best Answer

rolls = randi(4, 1, 50)
for i=1:50
switch rolls(i)
case 1
Results(i) = {'right'};
case 2
Results(i) = {'left'};
case 3
Results(i) = {'up'};
case 4
Results(i) = {'down'};
end
end