It is possible to use sprintf to print a string input?
4 ビュー (過去 30 日間)
Hi, I´m trying to print what the user inputs as a string, but it´s not working with this code below:
clc, clear, close
vi=input('Indicate the name of the independent variable: ','s');
c1= sprintf('Indicate the units of the variable %0.0s',vi);