There's an error using input function in my computer , how do I solve it?
1 次查看(过去 30 天)
显示 更早的评论
clear all;
close all;
clc;
name=input('Enter your name:','s')
surname=input('Enter your surname:','s')
location=input('Enter your current location:','s')
fprintf('My name is %s%6s and I am currently in %s\n',name,surname,location)
采纳的回答
更多回答(1 个)
Image Analyst
2018-3-19
print is a built-in function, so it is not a good idea to call your m-file print.m. Rename the file and see if that fixes it.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!