MATLAB input function error; Output arguments.
显示 更早的评论
The line of code is of the form:
line 23>Var_1 = input('prompt\n');
The error message is,
>Output argument "SA" (and maybe others) not assigned during call to "input".
>Error in %filename% (line 23)
If I'm not wrong, I have assigned a value to the output argument during the call to input, that being Var_1, right?
Could someone explain what might be the problem?
Exact code:
student_id_number = input('Enter students ID number:');
corresponding error message:
Output argument "SA" (and maybe others) not assigned during call to "input".
Error in lab4t5 (line 23)
student_id_number = input('Enter students ID number:');
2 个评论
per isakson
2021-3-28
I cannot reproduce the error you see (Win10/R2018b)
>> student_id_number = input('Enter students ID number:');
Enter students ID number:12345
>> student_id_number
student_id_number =
12345
The variable, SA, what's that?
Zane Gomes
2021-3-28
编辑:Zane Gomes
2021-3-28
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!