eval alternative in Matlab reading from the workspace -


i'm reading matrix .mat file. alternative eval in case?

load([folder filename]); = eval(filename(1:end-4))*16 

i have heard eval slow...

if read mat file , contain matrix don't need eval statement:

mat = load([folder filename]); [a,matrixname,ext] = fileparts(filename);   = mat.(matrixname) * 16; 

please check contents of mat.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -