Getting Coordinate input from user
Mostra commenti meno recenti
I want to get several point 2d coordinates from the user and store the x and y coordinates in separate arrays. I'm using a for loop to do it but it doesn't assign the input to the variables, here's how I'm doing it:
for i=1:5
[x(i),y(i)]=input('Coordinates of Node')
end
3 Commenti
Jan
il 16 Ott 2018
it doesn't assign the input to the variables
Please do not explain, what the code does not do, but mention, what the code does do. An exact description contains a hint of the way to solve the problem usually.
Morteza Ghafoori
il 16 Ott 2018
Jan
il 16 Ott 2018
Please post a complete copy of the message in the forum. You see, that the message explains the problem already.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!