Hello,
I am trying to create an array of length n that is completely dependent on user prompted inputs. Here is the code that I have so far:
N = input('Enter Number of Nodes: \n'); Nnodes = 1:1:N; Npipes = 1:1:N-1;for Nnode = 1:N X = input('Enter x-position: \n'); Y = input('Enter elevation: \n');end
For each iteration, I want the X and Y values to be stored as separate arrays.
Thank you!
Best Answer