MATLAB: Help with Basic Matrix Exercise

basic

Hi 🙂 I'm learning Matlab by myself with some tutorial that i found online. I know, I'm a newbie but i can't solve this exercise. Could someone help me? Should be very easy cause i found this in a starter course.
Create a 6(rows)x4(columns) matrix filled with random integer values between 1 and 20; Create a zeroes matrix of the same dimensions; Replace each zero with a random number from the other matrix; Display each value in the new mixed matrix
Thank you 🙂

Best Answer

To get you started, check
doc rand
doc zeros
Probably this is the easy part. If you get to "Replace each zero with a random number from the other matrix;", you may want to share all the code you have to that time in a new question here with your specific struggle (if any).