lundi 28 août 2017

Calling scripts in loops

Can I call scripts in a loop? I am trying to call two scripts in a MATLAB main code, but it keep freezing and I have to force quit MATLAB.

I am using this code:

pos=2;
for i=1:Size-1
    Electrification_limit(1,i)=electrification(pos-1,2);
    if Electrification_limit(1,i) == 1
       FUNCTION_E;
    else
       FUNCTION_FC;
    end
end

Am I doing something wrong?

Aucun commentaire:

Enregistrer un commentaire