Hello nooblia, very nice iniciative!! As soon as i end my code, i’ll look into it, and share everything i’m learning here in the discourse forums.
So guys, i have another question now… here’s a part of my code:
for i = 1:17
i4[i] = conj((PLnlin[i]+im*QLnlin[i])/u[i]);
end
iaux1 = i4;
C = [100 0 0 0 20 0 14.3 0 0 0 9.1 0 7.7 0 0 0 5.9 0 5.3 0 0 0 4.3 0 4];
Ih = [];
for h = 3:2:25
for i = 1:17
if PLnlin[i] != 0
i4[i] = (C[h]/100)*i4[i];
end
end
Ih = [Ih;i4];
i4 = iaux1;
end
And here we got:
PLnlin = [0.0 0.0 0.0 0.0 0.0 3.0e6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0]
So,
PLnlin[6] = 3e6
But when i get into i = 6, that if
isn’t working. I’ve tried the following:
julia> PLnlin[6] != 0
true
Why it’s not working when i run my code? If you need any other info to analyze this, just let me know. Btw, QLnlin
and u
are also 1x17 vectors with numeric data.
.