Script works on one computer, but not another

4 vues (au cours des 30 derniers jours)
Maria Y
Maria Y le 25 Jan 2019
Commenté : Walter Roberson le 28 Jan 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 commentaires
Maria Y
Maria Y le 28 Jan 2019
Modifié(e) : Maria Y le 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 le 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by