Any suggestions for this code?
1 次查看(过去 30 天)
显示 更早的评论
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 [# #]: ');
0 个评论
采纳的回答
pfb
2015-4-20
tmp = input('Please enter the first coordinates in this form [# #]: ');
x1=tmp(1);
y1=tmp(2);
and so on...
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assembly 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!