Hi there,
I kept getting this message below. I would appreciate it if you could help me out.
Here is the the code I ran below
formatSpec = '%s\t %.15f\t %.15f\t %.15f\n';fid = fopen('sineBurstAnalysis.txt','w');fprintf (fid, '%s\t %s\t %s\t %s\n',... 'FileName','CVburstDuration','CVburstTP','CVburstAMP');for r = 1:8 fprintf(fid,formatSpec,ddd(1,r).name, cvDuration_1(1,r), cvTTP_1(1,r), cvAMP_1(1,r));endfclose(fid);
Here is the error message I got below.
Index exceeds matrix dimensions.Error in sineBurstAnalysis_test1 (line 160) fprintf(fid,formatSpec,cvDuration_1(1,r), cvDuration_1(1,r), cvTTP_1(1,r), cvAMP_1(1,r));
Thank you for your help!
Best Answer