Script works on one computer, but not another

4 views (last 30 days)
My supervisor wrote a script that runs perfectly on her computer, but when she sent me the script (we also tried copy and pasting) it comes up with an error on mine. We have the exact same versions of Matlab and OSX and all the same toolboxes.
Does anyone know what else could cause this problem?
Thank you.
  3 Comments
Maria Y
Maria Y on 28 Jan 2019
Edited: Maria Y on 28 Jan 2019
Thanks for your reply. We are under the same license.
The error coming up says "Unable to perform assignment because the size of the left side is 795-by-1 and the size of the right side is 128-by-795." in the line of code
ertf_trial(:,e)=abs(segment); %for each trial, takes out ampltitude
and in this line
[ertf_mean(:,:,condition),... %generated a variable zertf (frequencies, time, conditons)
I'm new to Matlab so let me know if you need more info. Not sure if this can be answered without looking at the whole code.
Walter Roberson
Walter Roberson on 28 Jan 2019
Compare which .m files are in your current directory and compare whether your path() are the same . You might accidentally have a custom version of a .m file that you did not realise was being called.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!