I'm trying to use num2str in a load function as follows
route=3;
samples=1;
pct=100;
path('C:\')
load(['B2A_Sample_r',num2str(route),'_',num2str(pct),'%_',num2str(1000+samples)])
I also tried:
filename=char(['B2A_Sample_r',num2str(route),'_',num2str(pct),'%_',num2str(1000+samples)]);
load(filename,'-mat')
I'm having to shut down and reboot matlab every time I get this error.