MATLAB: Syntax to store char in mat file text file sir, please can anyone tell me what is the syntax to store char in mat-file Best Answer var_name='c' % saves the char 'c' in var_namesave('new.mat','var_name') % saves the variable 'var_name' in new.mat file Related SolutionsMATLAB: MAT files p=load matfile1.matq=load matfile2.matsave newmatfile.mat MATLAB: Load syntax Use the function syntax rather than the command syntax:load(fname_,'-mat')For more details on the function vs. command syntax, see the documentation.HTH,Arnaud Related QuestionLoad .mat file from anyfolder‘load’ function bugHow to merge different dimension .mat files to single file*.mat file does not appear in workspace.
Best Answer