Getting Coordinate input from user
Mostrar comentarios más antiguos
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 comentarios
Jan
el 16 de Oct. de 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
el 16 de Oct. de 2018
Jan
el 16 de Oct. de 2018
Please post a complete copy of the message in the forum. You see, that the message explains the problem already.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!