Script works on one computer, but not another

조회 수: 4 (최근 30일)
Maria Y
Maria Y 2019년 1월 25일
댓글: Walter Roberson 2019년 1월 28일
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
Maria Y
Maria Y 2019년 1월 28일
편집: Maria Y 2019년 1월 28일
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 2019년 1월 28일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by