MATLAB: How to assign a specific number to a row that depends on the user’s input

#rows#input

i want to assign a number to a row but that specific row depends on how many numbers the user enters. I hope this isn't too complicated to be understood >-<

Best Answer

YourMatrix(UserGivenRow, :) = NumberToAssign;
Related Question