Filter löschen
Filter löschen

Any suggestions for this code?

2 Ansichten (letzte 30 Tage)
J
J am 20 Apr. 2015
Kommentiert: J am 20 Apr. 2015
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 [# #]: ');

Akzeptierte Antwort

pfb
pfb am 20 Apr. 2015
tmp = input('Please enter the first coordinates in this form [# #]: ');
x1=tmp(1);
y1=tmp(2);
and so on...
  1 Kommentar
J
J am 20 Apr. 2015
Outstanding! Many thanks pfb :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by