[Scilab-Dev] FW: Help !--error 21

OLIVIER Mathieu mathieu.olivier at cnrm.meteo.fr
Mon Nov 15 09:13:05 CET 2010


Hi,

Try with :

function lines0_K0=zeroslines(K0)
   lines0=[];
   cont=0;
   for j=1:size(K0,2)
     if K0(:,j)==0
       cont=cont+1;
       lines0_K0(cont)=j;
     else
     end
   end
endfunction

To my mind, the error come from the use of "length".

Best regards

Mathieu OLIVIER

On 14/11/2010 23:11, Lucas Benitez Demmler wrote:
> Hello, My name is Lucas , I'm from Argentina , and I'm a frecuently user
> of Scilab. I found a problem when I try to run "spdsolver.sci"
> I have a problem when i want to run "SPDsolver.sci"
> In command window appears an error after executing this:
> !--error 21
> Invalid index
>
> SPDSolve file use internally a function called SPDverif but i don't
> understand why it is not working.
> Both files were translated form MATLAB to SCILAB and i use loadmatfile
> command to load all the variables.
> I would like to know where the mistake is.
> I'm sending you the .sci files for testing
> thanks in advance for your help
>
> Lucas Benitez Demmler
> Universidad Tecnologica Nacional - FRHaedo - Bs As - Argentina

-- 
Mathieu OLIVIER
CNRM/GMEI/LISA
Navier Bureau 033
Météo-France
42 Av. G. Coriolis
31057 Toulouse Cedex
Tel : +33 5 61 07 98 01
Port : +33 6 88 48 73 20
Mail : mathieu.olivier at cnrm.meteo.fr



More information about the dev mailing list