Script works on one computer, but not another

4 visualizaciones (últimos 30 días)
Maria Y
Maria Y el 25 de En. de 2019
Comentada: Walter Roberson el 28 de En. de 2019
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 comentarios
Maria Y
Maria Y el 28 de En. de 2019
Editada: Maria Y el 28 de En. de 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 el 28 de En. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by