It is possible to use sprintf to print a string input?
이전 댓글 표시
Hi, I´m trying to print what the user inputs as a string, but it´s not working with this code below:
Thanks!!
clc, clear, close
vi=input('Indicate the name of the independent variable: ','s');
c1= sprintf('Indicate the units of the variable %0.0s',vi);
vi_u=input(c1);
댓글 수: 3
Vilém Frynta
2023년 1월 15일
편집: Vilém Frynta
2023년 1월 15일
Are you doing this in Matlab Online, or do you have a directory or a script/function called "input"?
Madalena Francisco
2023년 1월 15일
Madalena Francisco
2023년 1월 15일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!