In Julia, I would like to write a function that prompts the user multiple times for matrix input, and then stores their inputs into an array. I have tried the following so far:
function acceptlist()
matrix_array=[]
while true:
matrix_input=read() #don't know what function to use?
if matrix_input="quit"
break
end
push!(matrix_array, matrix_input)
end
end
However, I am not sure how to accept matrix inputs in the way I desire. Is there any way for me to accept matrix inputs from the user? Also, I would like to user to NOT have to manually enter the matrices into the function (using readdlm or something similar). For example, I want the user to be able to read in the matrix from another file, assign it to some variable, and then enter that variable into this function acceptlist() as user input.