Hi,
I am using the following and works fine :
saveAs = [fPath '\' fPrefix fmid '_' trialNo{4} '_FVL.txt']; fid = fopen(saveAs, 'w'); fprintf(fid, '%s\t %s\t %s\n', 'Time [s]', 'FL [mm]','EMG [v]'); for v = 1: ufsize ; fprintf(fid, '%d\t %d\t %d\n', Ultratimefinal0(v), lfascicle(v), EMG(v) ); end fclose(fid);
The problem is when I am trying to cut some values from EMG ex. EMGc = EMG(16:end); then I am getting the "Index exceeds matrix dimensions" error. How can I save these different sized values ? I would like to have something like this:
1 1 1 1 1 1 1 1 1 1 1 1And something else... how can I move the whole matrix in a specific row ? 1 1 1 1 1 1 1 1 1 1 1 1
Thanks a lot.
Best Answer