I have no idea what's wrong. Please help! ERROR: UndefVarError: i not defined

programista
Wed, 28 Jul 2021 06:48:47 +0000
General Usage

I hvave no idea what wrong . Please help!

julia> for i=1:length(przedzaly)-1
       var_name=Symbol("lista_polaczona_" * string(litery[i]))
       println(var_name)
       @eval $var_name=lista[przedzaly[i]+1:przedzaly[i+1],:]
       @eval  writedlm("listy_wysylkowe/$var_name.csv",$var_name)
       end
lista_polaczona_A
ERROR: UndefVarError: i not defined
Stacktrace:
 [1] top-level scope
   @ none:1
 [2] eval(m::Module, e::Any)
   @ Core .\boot.jl:360
 [3] top-level scope
   @ REPL[23]:4774:

7 posts - 6 participants

Read full topic