How to insert a string into a sprint?
I want the input stored into name be displayed in the %s. How can I do it? it is possible?
name = input ('Enter the name of the voice command');
file = sprintf('%s.wav','name'); %name the sound file to be created
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
Try this more user friendly and robust way to “get the name of the sound file to be created”:
% Ask user for the name of the file to be created.
[baseFileName, folder] = uiputfile('*.wav', 'Enter the file name of the voice command to be created')
% Create the full file
SEE COMPLETE ANSWER CLICK THE LINK