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!