??? Attempted to access barERRk(1); index out of bounds because numel(barERRk)=0

I wrote a Matlab program that run well with my desktop and I got the results I expected, but exactly the same program, when running with my laptop, I got the following error message:
??? Attempted to access barERRk(1); index out of bounds because numel(barERRk)=0.
Appreciate if anyone can help me in this. Thanks

Réponses (1)

Wayne King
Wayne King le 8 Jan 2013
Modifié(e) : Wayne King le 8 Jan 2013
If it is in fact the very same code, then I think there are a couple things to check.
1.) Are the versions of MATLAB the same?
2.) Perhaps there are M-files in on your laptop that are not the same as on your desktop and a local version of one or more M-files is causing the different results
3.) Are you really running a MATLAB program or a MATLAB script? If it is the latter, then perhaps you have different variables in the workspace that explains the difference.
It would really be best if you can isolate the code that creates the error and post that here.

Cette question est clôturée.

Question posée :

le 8 Jan 2013

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by