Hey again, I found the problem. I had to put the second argument as a string. My code now looks like this:
chooseEquation = 'poggiolini';
for att_db=0.19/1e3:0.01/1e3:0.20/1e3 dirname =sprintf('C:\Documents and Settings\zceeg80\My Documents\MATLAB\simplifyCode %d',att_db); [ResultsPogQPSK1 ] = MaxReachAnalytical(chooseEquation ,att_db);
fname= sprintf(dirname,'\result.dat');
What I would like to know is how to load the data saved. I currently notice a result.dat and when I double click on it, it has three matrix (I only want to access the one called reach). How do I load this data followed by plotting it? Thanks in advance and also to the previous comment :)