Any suggestions for this code?

I'm trying to prompt the user for coordinates in the following matter, but it is not working. Any advice would be great. Thank you all for your time in advance.
[x1, y1] = input('Please enter the first coordinates in this form [# #]: ');
[x2, y2] = input('Please enter the second coordinates in this form [# #]: ');
[x3, y3] = input('Please enter the third coordinates in this form [# #]: ');

 Respuesta aceptada

pfb
pfb el 20 de Abr. de 2015

0 votos

tmp = input('Please enter the first coordinates in this form [# #]: ');
x1=tmp(1);
y1=tmp(2);
and so on...

Más respuestas (0)

Categorías

Más información sobre Cartesian Coordinate System Conversion en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

J
J
el 20 de Abr. de 2015

Comentada:

J
J
el 20 de Abr. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by