Script works on one computer, but not another

4 visualizzazioni (ultimi 30 giorni)
Maria Y
Maria Y il 25 Gen 2019
Commentato: Walter Roberson il 28 Gen 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 Commenti
Maria Y
Maria Y il 28 Gen 2019
Modificato: Maria Y il 28 Gen 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 il 28 Gen 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by