MATLAB: Using variable value to name a folder nameprogrammingtable hi, i have a variable called Name in workspace and would like to save a table to csv using the Name value. Example: Name=4205; writetable(T,?????); name of output file should be 4205.csv thanks! Best Answer Name=4205;writetable(T,sprintf('%d.csv',Name)); Related SolutionsMATLAB: Readtable – renaming variables after creating See the documentation for Change a Variable Name. MATLAB: Variable name Best not to do that.http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F Related QuestionNaming variablesRead name of csv-file and save as outputHow to rename a table to a stringUser input folder nameSpecify Folder Name with Variable for uigetfile
Best Answer