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_name
save('new.mat','var_name') % saves the variable 'var_name' in new.mat file